Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Marking Storage's key-based API as deprecated in the Category implementation. #3863

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

ruisebas
Copy link
Member

@ruisebas ruisebas commented Sep 13, 2024

Issue #

Description

When we introduced the new path: StoragePath parameters for the Storage APIs, we deprecated the old ones using key: String. However, we only did so in the category protocol and not in the category implementation itself, which results in the warning not being propagated to the users because Amplify.Storage is not typed to the protocol, but rather to the actual implementation.

So in order to discourage the usage of these APIs and raise awareness of the new ones, I'm adding the deprecation annotations to the category as well.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ruisebas ruisebas requested a review from a team as a code owner September 13, 2024 19:15
Copy link

codecov bot commented Sep 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.43%. Comparing base (806a75c) to head (90c315c).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3863      +/-   ##
==========================================
- Coverage   68.50%   68.43%   -0.08%     
==========================================
  Files        1082     1082              
  Lines       37699    37699              
==========================================
- Hits        25827    25799      -28     
- Misses      11872    11900      +28     
Flag Coverage Δ
API_plugin_unit_test 69.32% <ø> (ø)
AWSPluginsCore 68.53% <ø> (ø)
Amplify 47.59% <ø> (+0.03%) ⬆️
Analytics_plugin_unit_test 84.52% <ø> (ø)
Auth_plugin_unit_test 79.32% <ø> (-0.07%) ⬇️
DataStore_plugin_unit_test 81.47% <ø> (-0.34%) ⬇️
Geo_plugin_unit_test 72.00% <ø> (ø)
Logging_plugin_unit_test 62.95% <ø> (ø)
Predictions_plugin_unit_test 36.86% <ø> (ø)
PushNotifications_plugin_unit_test 86.21% <ø> (ø)
Storage_plugin_unit_test 76.81% <ø> (ø)
unit_tests 68.43% <ø> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ruisebas ruisebas merged commit 0b255bc into main Sep 13, 2024
79 checks passed
@ruisebas ruisebas deleted the ruisebas/storage_deprecated_apis branch September 13, 2024 19:46
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.

2 participants