Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

V2 list region by version #593 #688

Merged
merged 3 commits into from
Jul 26, 2023

Conversation

miyunari
Copy link
Member

closes #593

@miyunari miyunari requested review from major and F-X64 July 26, 2023 11:54
@miyunari miyunari self-assigned this Jul 26, 2023
@codecov
Copy link

codecov bot commented Jul 26, 2023

Codecov Report

Patch coverage: 93.10% and project coverage change: +0.05% 🎉

Comparison is base (950b8c1) 92.04% compared to head (5e9d3f1) 92.10%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #688      +/-   ##
==========================================
+ Coverage   92.04%   92.10%   +0.05%     
==========================================
  Files           9        9              
  Lines         528      557      +29     
  Branches      116      126      +10     
==========================================
+ Hits          486      513      +27     
- Misses         22       23       +1     
- Partials       20       21       +1     
Files Changed Coverage Δ
src/cloudimagedirectory/transformer.py 77.77% <ø> (ø)
src/cloudimagedirectory/transform/transform.py 91.22% <93.10%> (+0.17%) ⬆️

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

Copy link
Member

@major major left a comment

Choose a reason for hiding this comment

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

Just one minor linting issue.

class TransformerV2ListRegionByVersion(Transformer):
"""Generate a list for all available regions for one version."""

def run(self, data):
Copy link
Member

Choose a reason for hiding this comment

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

Add # noqa: C901 here to silence the complexity linter. It would be good to revisit how we could make this less complex later. 😉

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah right, I added it :)

Signed-off-by: Janine Olear <[email protected]>
Copy link
Member

@major major left a comment

Choose a reason for hiding this comment

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

Thanks for catching the no_type_check in there. This looks okay now but we will need to work on this complexity later. 😉

@miyunari
Copy link
Member Author

Yes, alright - I created an issue, so we don't forget about it :) #689

@miyunari miyunari merged commit b07c877 into redhatcloudx:main Jul 26, 2023
6 checks passed
@miyunari miyunari deleted the v2_list_region_#593 branch July 26, 2023 14:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API v2: list all regions selected
2 participants