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: upgrade the update-feed and package-stats functions to SDK v3 #1451

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

mrgrain
Copy link
Contributor

@mrgrain mrgrain commented Sep 12, 2024

Refactor the update-feed and package-stats functions to use AWS SDK v3. Tests updated accordingly.

Migrated these two together because they both needed a change to the catalog-builder client.


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

@mrgrain mrgrain force-pushed the mrgrain/fix/update-feed-sdk-v3 branch from 2e0d193 to 6e3d5f2 Compare September 12, 2024 11:16
@mrgrain mrgrain marked this pull request as ready for review September 12, 2024 11:18
@mrgrain mrgrain changed the title fix: upgrade the update-feed function to SDK v3 fix: upgrade the update-feed and package-stats functions to SDK v3 Sep 12, 2024
@mrgrain mrgrain changed the title fix: upgrade the update-feed and package-stats functions to SDK v3 fix: upgrade the update-feed and package-stats functions to SDK v3 Sep 12, 2024
Refactor the update-feed function to use AWS SDK v3. Tests updated accordingly.
@mrgrain mrgrain force-pushed the mrgrain/fix/update-feed-sdk-v3 branch from 6e3d5f2 to 79ba526 Compare September 12, 2024 11:57
@cdklabs-automation cdklabs-automation added this pull request to the merge queue Sep 12, 2024
Merged via the queue into main with commit 78e992d Sep 12, 2024
6 checks passed
@cdklabs-automation cdklabs-automation deleted the mrgrain/fix/update-feed-sdk-v3 branch September 12, 2024 12:07
github-merge-queue bot pushed a commit that referenced this pull request Sep 12, 2024
…tes (#1453)

In #1451 the update-feed function was migrated to SDK v3. For the
migration the error handling needed to be adapted to SDK v3. With SDK v2
we checked for a `404` error status to conclude that no release notes
are available. SDK v3 does not use http error codes, so we needed to
convert to error names/types. Initially this was incompletely changed to
only check for a `NotFound` error. However it also needs to check for
`NoSuchKey` error.

This has been fixed and the testcase updated.

----

*By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache-2.0 license*
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