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: Allow empty responses as well as null response in AppConfig #1673

Merged

Conversation

chrisclayson
Copy link
Contributor

@chrisclayson chrisclayson commented Jun 26, 2024

Issue #, if available:

#1672

Description of changes:

When checking for empty response from AWS AppConfig data plane, check whether response is an empty byte array rather as well as null.

Checklist

Breaking change checklist

RFC issue #:

  • Migration process documented
  • Implement warnings (if it can live side by side)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link
Contributor

@jeromevdl jeromevdl left a comment

Choose a reason for hiding this comment

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

Almost OK for me, please remove the unused import

- AppConfig responses, where config hasn't changed, seem to be result
in "empty" `SdkBytes` objects rather than `null` `Configuration` in
the response.
@chrisclayson chrisclayson force-pushed the fix-app-config-fetch-empty branch from 998188c to 6554f3e Compare August 8, 2024 21:02
Copy link

sonarqubecloud bot commented Aug 8, 2024

@chrisclayson chrisclayson requested a review from jeromevdl August 8, 2024 21:03
Copy link

codecov bot commented Aug 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.17%. Comparing base (58aaff2) to head (6554f3e).
Report is 22 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1673      +/-   ##
============================================
+ Coverage     79.07%   79.17%   +0.10%     
- Complexity      754      755       +1     
============================================
  Files            93       93              
  Lines          2877     2877              
  Branches        307      307              
============================================
+ Hits           2275     2278       +3     
+ Misses          503      501       -2     
+ Partials         99       98       -1     

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

@jeromevdl jeromevdl merged commit 3ab01b5 into aws-powertools:main Aug 20, 2024
10 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants