-
Notifications
You must be signed in to change notification settings - Fork 87
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: transfer project not working when target is ALL or ALL_DEFINED or group or subgroup #714
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #714 +/- ##
==========================================
- Coverage 84.46% 84.31% -0.15%
==========================================
Files 69 69
Lines 2749 2774 +25
==========================================
+ Hits 2322 2339 +17
- Misses 427 435 +8
|
bfeb8fe
to
3abffb4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @long-wan-ep for the PR. Have couple questions/requests.
Could you please add 2 more test cases that covers the scenario where gitlabform's target is a group or subgroup. It might be an issue for that type of target too, although not sure if this has been caught in the related github issue.
There are some code duplications. For example: checking if it's a project that needs to be transferred, finding project transfer source. Do you think we can reduce the duplication? Maybe move the common code in a function?
Thanks for the feedback, looking into reducing duplication and adding tests. |
4d97297
to
abdffec
Compare
@amimas I've refactored the code a bit to reduce duplication and added 2 more tests for group and subgroup targets. Ready for review again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly looks good. Left couple more comments to discuss. Also, could you please add couple more tests to capture the scenarios where:
- project doesn't exist and is not configured to be transferred
- project doesn't exist but configured to be transferred and transfer source project is not found
Added test for "project doesn't exist but configured to be transferred and transfer source project is not found", the |
Co-authored-by: amimas <aver.mimas@gmail.com>
507312e
to
1d78b28
Compare
Fix for #689.
Adds logic to check for projects being transferred when the target is set to
ALL
orALL_DEFINED
or a group or subgroup.