Skip to content
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

Merged
merged 1 commit into from
Oct 21, 2020

Conversation

parthaa
Copy link
Contributor

@parthaa parthaa commented Oct 15, 2020

Fixes #7716 - Incremental export not enabled even if start_version is provided.

@parthaa parthaa force-pushed the increment-with-start-versions branch 2 times, most recently from 67bbd14 to 26446e7 Compare October 15, 2020 21:13
@pulp pulp deleted a comment from pulpbot Oct 16, 2020
@pulpbot
Copy link
Member

pulpbot commented Oct 16, 2020

Attached issue: https://pulp.plan.io/issues/7716

@@ -0,0 +1 @@
Incremental export not happening if last export was null even if start_version is provided
Copy link
Contributor

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
Copy link
Contributor

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.

@parthaa parthaa force-pushed the increment-with-start-versions branch from 26446e7 to 5ec2e63 Compare October 20, 2020 15:03
Copy link
Member

@goosemania goosemania left a 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.

@goosemania goosemania merged commit 8b1531c into pulp:master Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants