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

fix(storage): make getProperties param optional #11413

Merged
merged 4 commits into from
May 26, 2023

Conversation

israx
Copy link
Contributor

@israx israx commented May 26, 2023

Description of changes

Release 5.2.3 brought a braking change by introducing a getProperties required field in the StorageProvider interface. The solution was to make this field optional

Issue #, if available

Description of how you validated changes

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)

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

@israx israx requested a review from a team as a code owner May 26, 2023 16:25
throw new Error(
`.getProperties is not implemented on provider ${plugin.getProviderName()}`
)
}

Choose a reason for hiding this comment

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

What would a test look like for this? We should probably include one here.

@israx israx changed the title fix(Storage): make getProperties param optional fix(storage): make getProperties param optional May 26, 2023
@jimblanc jimblanc merged commit 5d00b1f into aws-amplify:main May 26, 2023
5 checks passed
jimblanc added a commit to jimblanc/amplify-js that referenced this pull request May 26, 2023
erinleigh90 added a commit that referenced this pull request May 26, 2023
* chore(release): Publish [ci skip]

 - aws-amplify@5.2.3
 - @aws-amplify/datastore-storage-adapter@2.0.33
 - @aws-amplify/datastore@4.4.0
 - @aws-amplify/predictions@5.2.0
 - @aws-amplify/storage@5.3.0

* chore(release): update API docs [ci skip]

* fix(notifications): Add babel plugins to devDependencies (#11414)

* fix(storage): make getProperties param optional (#11413)

* Revert "fix(storage): make getProperties param optional (#11413)"

This reverts commit 5d00b1f.

* Revert "feat(storage): getProperties API (#11378)"

This reverts commit 3bed12b.

---------

Co-authored-by: israx <70438514+israx@users.noreply.github.com>
Co-authored-by: aws-amplify-bot <aws@amazon.com>
Co-authored-by: Chris F <5827964+cshfang@users.noreply.github.com>
Co-authored-by: Jim Blanchard <jablanch@amazon.com>
Co-authored-by: Jim Blanchard <jim.l.blanchard@gmail.com>
erinleigh90 added a commit that referenced this pull request May 29, 2023
* chore(release): Publish [ci skip]

 - aws-amplify@5.2.3
 - @aws-amplify/datastore-storage-adapter@2.0.33
 - @aws-amplify/datastore@4.4.0
 - @aws-amplify/predictions@5.2.0
 - @aws-amplify/storage@5.3.0

* chore(release): update API docs [ci skip]

* fix(notifications): Add babel plugins to devDependencies (#11414)

* fix(storage): make getProperties param optional (#11413)

* Revert "fix(storage): make getProperties param optional (#11413)"

This reverts commit 5d00b1f.

* Revert "feat(storage): getProperties API (#11378)"

This reverts commit 3bed12b.

* fix(core): bundle react-native-url-polyfill to unblock jest test failure (#11422)

* fix(core): bundle react-native-url-polyfill to unblock jest test failure

* Revert "test(notification): unblock unit test failure of rn url polyfill"

This reverts commit dbacebc.

* chore: remove unused code

* chore: remove unused polyfills/URL/package.json

* chore(release): Publish [ci skip]

 - @aws-amplify/analytics@6.1.1
 - @aws-amplify/api-graphql@3.2.1
 - @aws-amplify/api-rest@3.1.1
 - @aws-amplify/api@5.1.1
 - @aws-amplify/auth@5.3.7
 - aws-amplify@5.2.4
 - @aws-amplify/cache@5.0.33
 - @aws-amplify/core@5.3.1
 - @aws-amplify/datastore-storage-adapter@2.0.34
 - @aws-amplify/datastore@4.4.1
 - @aws-amplify/geo@2.0.33
 - @aws-amplify/interactions@5.0.33
 - @aws-amplify/notifications@1.1.7
 - @aws-amplify/predictions@5.2.1
 - @aws-amplify/pubsub@5.1.16
 - @aws-amplify/pushnotification@5.0.33
 - @aws-amplify/storage@5.3.1

* chore(release): update API docs [ci skip]

---------

Co-authored-by: israx <70438514+israx@users.noreply.github.com>
Co-authored-by: aws-amplify-bot <aws@amazon.com>
Co-authored-by: Chris F <5827964+cshfang@users.noreply.github.com>
Co-authored-by: Jim Blanchard <jablanch@amazon.com>
Co-authored-by: Jim Blanchard <jim.l.blanchard@gmail.com>
Co-authored-by: AllanZhengYP <zheallan@amazon.com>
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.

None yet

4 participants