Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@SpecLad
Copy link
Contributor

@SpecLad SpecLad commented Oct 22, 2025

Motivation and context

Currently, the naming pattern is inconsistent and sometimes doesn't match the official name of the external service. This patch renames such identifiers, starting from the following official names:

Specifically, I renamed the members of CloudProviderChoice, and the names of the _CloudStorage subclasses.

I didn't change the values of CloudProviderChoice, because this would be a breaking API change, and I don't think that's worth doing.

In addition, I:

  • Removed the GOOGLE_DRIVE member, which has no implementation.
  • Used TextChoices to give each member a human-readable description.

How has this been tested?

Checklist

  • I submit my changes into the develop branch
  • I have created a changelog fragment
  • [ ] I have updated the documentation accordingly
  • [ ] I have added tests to cover my changes
  • [ ] I have linked related issues (see GitHub docs)

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

Currently, the naming pattern is inconsistent and sometimes doesn't match
the official name of the external service. This patch renames such
identifiers, starting from the following official names:

* Amazon S3 (ref: <https://aws.amazon.com/s3/>).

* Azure Blob Storage (ref:
  <https://azure.microsoft.com/en-us/products/storage/blobs>).

* Google Cloud Storage (ref: <https://cloud.google.com/storage?hl=en>). I
  guess technically they just call it "Cloud Storage", but it would be
  ambiguous without Google.

Specifically, I renamed the members of `CloudProviderChoice`, and the
names of the `_CloudStorage` subclasses.

I didn't change the _values_ of `CloudProviderChoice`, because this would be
a breaking API change, and I don't think that's worth doing.

In addition, I:

* Removed the `GOOGLE_DRIVE` member, which has no implementation.
* Used `TextChoices` to give each member a human-readable description.
@SpecLad SpecLad force-pushed the clean-up-cloud-providers branch from e9f869d to fcc1989 Compare October 22, 2025 12:50
@SpecLad SpecLad marked this pull request as ready for review October 22, 2025 12:50
@SpecLad SpecLad requested a review from nmanovic as a code owner October 22, 2025 12:50
@sonarqubecloud
Copy link

@SpecLad SpecLad requested a review from zhiltsov-max October 22, 2025 12:54
@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 81.25000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.11%. Comparing base (cf9ce57) to head (fcc1989).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #9928      +/-   ##
===========================================
+ Coverage    75.35%   82.11%   +6.75%     
===========================================
  Files          427      427              
  Lines        46353    46342      -11     
  Branches      4131     4131              
===========================================
+ Hits         34931    38053    +3122     
+ Misses       11422     8289    -3133     
Components Coverage Δ
cvat-ui 76.72% <ø> (ø)
cvat-server 86.64% <81.25%> (+12.43%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.



class AzureBlobContainer(_CloudStorage):
class AbsCloudStorage(_CloudStorage):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure Abs can be considered the established abbreviation for this service. Have you seen it anywhere? I'd prefer calling it Azure....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants