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

V2 list version by provider #592 #687

Merged
merged 3 commits into from
Jul 26, 2023

Conversation

miyunari
Copy link
Member

closes #592

Signed-off-by: Janine Olear <pninak@web.de>
Signed-off-by: Janine Olear <pninak@web.de>
@miyunari miyunari self-assigned this Jul 26, 2023
@codecov
Copy link

codecov bot commented Jul 26, 2023

Codecov Report

Patch coverage: 92.00% and project coverage change: -0.01% ⚠️

Comparison is base (e274b30) 92.04% compared to head (0ac79b4) 92.04%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #687      +/-   ##
==========================================
- Coverage   92.04%   92.04%   -0.01%     
==========================================
  Files           9        9              
  Lines         503      528      +25     
  Branches      108      116       +8     
==========================================
+ Hits          463      486      +23     
- Misses         21       22       +1     
- Partials       19       20       +1     
Files Changed Coverage Δ
src/cloudimagedirectory/transformer.py 77.77% <ø> (ø)
src/cloudimagedirectory/transform/transform.py 91.05% <92.00%> (+0.08%) ⬆️

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

@miyunari miyunari requested review from F-X64 and major July 26, 2023 10:44
Copy link
Member

@F-X64 F-X64 left a comment

Choose a reason for hiding this comment

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

LGTM! As usual I'd like to see more failing test cases but as I understand there is a huge discussion about redesigning our tests already in progress, so I'll patiently wait for the conclusion ;) .


@no_type_check
def run(self, data: type[Transformer]) -> list:
# TODO: check that its the v2 data entries.
Copy link
Member

Choose a reason for hiding this comment

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

Nitpick, but I assume that this should have been "# NOTE: Verify that the data is from api v2." as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh haha - yes I will change this 😄

Signed-off-by: Janine Olear <pninak@web.de>
@miyunari
Copy link
Member Author

Yes, we already have the issues for adding more failing test cases and add unit tests :) I hope we can maybe tackle this right after the new API version :) #421 #424

@miyunari miyunari merged commit 950b8c1 into redhatcloudx:main Jul 26, 2023
4 of 6 checks passed
@miyunari miyunari deleted the v2_list_version_#592 branch July 26, 2023 11:34
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 available versions by specific provider
2 participants