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: dry run failure when project transfer is configured along with other additional configs #726
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #726 +/- ##
==========================================
- Coverage 84.35% 84.06% -0.29%
==========================================
Files 69 69
Lines 2774 2780 +6
==========================================
- Hits 2340 2337 -3
- Misses 434 443 +9
|
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.
It feels like the logic (setting current project to the value set by transfer_source) will need to be repeated.. wherever the diff is supported. Otherwise this bug will continue to show up. For example: let's say diff is supported for branches
or members
etc. If the config contains project to be transferred first, when we do dry-run/noop, wouldn't we have the same issue 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.
Latest change looks good. Just one small change needed I think.
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.
Looks good. Thank you for the fix.
Released in v3.9.4 |
Fixes #725.
Project transfer config can fail when run with the
--noop
flag, if a processor's_print_diff
method makes a GitLab API call for the not yet existing project. This PR adds logic to check fortransfer_from
and makes the API call using the correct project path depending on the situation.