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 #13208 - Enabled 'Mirror On Sync' for repositories #5709

Merged
merged 2 commits into from Feb 23, 2016

Conversation

parthaa
Copy link
Contributor

@parthaa parthaa commented Jan 15, 2016

Added code to mirror the upstream feed repository by default.
Scenario:
If feed had packages A1, B1 at some point and the katello host repo synced this , it would have A1,B1
Now if the feed updated its repo and now has A2, B1 and the user resynced, the host repo would now have A1,A2, B1.

This commit adds the mirroring option and enables it by default

@@ -5,6 +5,7 @@ extends 'katello/api/v2/common/timestamps'

attributes :content_type
attributes :docker_upstream_name
attributes :mirror_on_syncP
Copy link
Member

Choose a reason for hiding this comment

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

extra 'P' there :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I could ve sworn I tested this!. Oh well must ve been an accidental typo

type="checkbox"
tabindex="8"/>
<h6 translate>
Selecting this option will result in content that are no longer part of the upstream repository being removed during synchronization.
Copy link
Contributor

Choose a reason for hiding this comment

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

Fix subject/verb agreement. contents are or content is.

@parthaa parthaa force-pushed the mirror-on-sync branch 4 times, most recently from 1a94c72 to c4b64c6 Compare January 15, 2016 23:25
@jlsherrill
Copy link
Member

I'm actually starting to question whether we should default to the mirroring to 'true' for new repositories. Maybe an email is in order?

@ehelms
Copy link
Member

ehelms commented Jan 18, 2016

What are your thoughts on why not to have that be the default?

@ehelms
Copy link
Member

ehelms commented Jan 26, 2016

@jlsherrill waiting on your response

@parthaa needs a rebase

@jlsherrill
Copy link
Member

you know honestly the next day i couldn't even remember and still can't really. Feel free to ignore :)

@ehelms
Copy link
Member

ehelms commented Jan 27, 2016

Does this require 2.8? If not, a rebase and tests passing and this will be good to go.

@parthaa
Copy link
Contributor Author

parthaa commented Feb 11, 2016

waiting on https://pulp.plan.io/issues/1621 to get to the nightly

@parthaa
Copy link
Contributor Author

parthaa commented Feb 19, 2016

@ehelms @jlsherrill updated. Few merge conflicts and cassette regeneration. I was selective on the cassettes and didnt generate all. Anyway the cassettes are in a separate commit.

@ehelms
Copy link
Member

ehelms commented Feb 19, 2016

LGTM - @jlsherrill ?

@jlsherrill
Copy link
Member

I'm good with the code. I think we should wait for a new beta so nightly isn't completely broken out of the box though. Hopefully will only be a ~day?

@ehelms
Copy link
Member

ehelms commented Feb 22, 2016

New Pulp beta has been pushed to our nightly repositories. Does this need a cassette re-run or is it GTG?

@jlsherrill
Copy link
Member

Gtg ack
On Feb 22, 2016 3:38 PM, "Eric D Helms" notifications@github.com wrote:

New Pulp beta has been pushed to our nightly repositories. Does this need
a cassette re-run or is it GTG?


Reply to this email directly or view it on GitHub
#5709 (comment).

Added code to mirror the upstream feed repository by default.
Scenario:
If feed had packages A1, B1 at some point and the katello host repo
synced this , it would have A1,B1
Now if the feed updated its repo and now has A2, B1 and the user
resynced, the host repo would now have A1,A2, B1.

This commit adds the mirroring option and enables it by default
@parthaa
Copy link
Contributor Author

parthaa commented Feb 23, 2016

@jlsherrill @ehelms there were some merge conflicts.. Hopefully they worked out..

parthaa added a commit that referenced this pull request Feb 23, 2016
Fixes #13208 - Enabled 'Mirror On Sync' for repositories
@parthaa parthaa merged commit 3a0ea56 into Katello:master Feb 23, 2016
@parthaa parthaa deleted the mirror-on-sync branch February 23, 2016 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants