Skip to content

Release status health api fixes#59163

Merged
nhsiehgit merged 3 commits into
masterfrom
release_status_health_api_fixes
Nov 1, 2023
Merged

Release status health api fixes#59163
nhsiehgit merged 3 commits into
masterfrom
release_status_health_api_fixes

Conversation

@nhsiehgit

Copy link
Copy Markdown
Contributor

Ran into an issue where if an environment does not exist on a threshold, then the api response would fail to construct a response.

Also realized that querying via release id is not useful, and instead we want to allow for querying by release version

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 31, 2023
@codecov

codecov Bot commented Nov 1, 2023

Copy link
Copy Markdown

Codecov Report

Merging #59163 (b17bd02) into master (28c52c8) will increase coverage by 0.01%.
Report is 23 commits behind head on master.
The diff coverage is 100.00%.

❗ Current head b17bd02 differs from pull request most recent head f249a38. Consider uploading reports for the commit f249a38 to get more accurate results

@@            Coverage Diff             @@
##           master   #59163      +/-   ##
==========================================
+ Coverage   80.64%   80.65%   +0.01%     
==========================================
  Files        5157     5157              
  Lines      226049   226062      +13     
  Branches    38078    38080       +2     
==========================================
+ Hits       182293   182339      +46     
+ Misses      38185    38151      -34     
- Partials     5571     5572       +1     
Files Coverage Δ
...lease_thresholds/release_threshold_status_index.py 84.37% <100.00%> (+0.12%) ⬆️

... and 12 files with indirect coverage changes

release_id = serializers.ListField(
required=False, allow_empty=True, child=serializers.IntegerField()
)
release = serializers.ListField(required=False, allow_empty=True, child=serializers.CharField())

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: maybe call this release_version or version?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'll update the help text to describe this.

Opting to keep it the shorter 'release' since typically you would reference a release by its version anyways

@nhsiehgit nhsiehgit enabled auto-merge (squash) November 1, 2023 16:18
@nhsiehgit nhsiehgit merged commit a7b8f02 into master Nov 1, 2023
@nhsiehgit nhsiehgit deleted the release_status_health_api_fixes branch November 1, 2023 16:49
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants