-
Notifications
You must be signed in to change notification settings - Fork 107
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
Fixes #7716 - Incremental export not enabled even if start_version is… #967
Conversation
67bbd14
to
26446e7
Compare
Attached issue: https://pulp.plan.io/issues/7716 |
CHANGES/7716.bugfix
Outdated
@@ -0,0 +1 @@ | |||
Incremental export not happening if last export was null even if start_version is provided |
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.
See https://docs.pulpproject.org/pulpcore/contributing/git.html#changelog-update for changelog style. 'Past simple tense' suggests changing this to something more like:
"Fixed incremental export to happen if start_version provided, even if last_export is null."
@@ -142,8 +142,9 @@ def _incremental_requested(the_export): | |||
full = the_export.params.get("full", True) | |||
if isinstance(full, str): | |||
full = bool(strtobool(full)) | |||
starting_versions_provided = len(the_export.params.get("start_versions", [])) > 0 |
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.
Tested in my env and confirm it works as desired.
… even if last_export is null
26446e7
to
5ec2e63
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.
Looks fine and straightforward. I trust ggainey's testing.
Fixes #7716 - Incremental export not enabled even if start_version is provided.