Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Adds predistributor logic to the publish controller #2665

Merged
merged 1 commit into from Jul 31, 2016

Conversation

dkliban
Copy link
Member

@dkliban dkliban commented Jul 31, 2016

If a distributor has a predistributor_id configured, the publish is skipped when the
predistributor has not published since the last publish by the distributor. This includes
situations where the predistributor has not published at all.

re #1887
https://pulp.plan.io/issues/1887

"""

r = cls(repo_id, distributor_id, distributor_type_id, started, completed,
cls.RESULT_SKIPPED)
message = 'Skipped. Nothing changed since last publish'
message = _('Skipped: %(reason)s' % {'reason': message})
Copy link
Member

Choose a reason for hiding this comment

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

The variable replacement is happening before the call to _(), but it needs to happen afterwards.

@dkliban
Copy link
Member Author

dkliban commented Jul 31, 2016

ok test

1 similar comment
@dkliban
Copy link
Member Author

dkliban commented Jul 31, 2016

ok test

@bmbouter
Copy link
Member

@dkliban I just did a round of testing against the latest and functionally it all worked. Since the test runner here is being strange I'm going to run the tests locally.

@bmbouter
Copy link
Member

All tests pass for me locally, and all comments have been addressed. I'm adding the LGTM.

@bmbouter bmbouter added the LGTM label Jul 31, 2016
If a distributor has a predistributor_id configured, the publish is skipped when the
predistributor has not published since the last publish by the distributor. This includes
situations where the predistributor has not published at all.

re pulp#1887
https://pulp.plan.io/issues/1887
@dkliban dkliban merged commit d376b2a into pulp:master Jul 31, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants