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

Add support for automatic publishing and distributing #1938

Merged
merged 1 commit into from
Apr 9, 2021

Conversation

dralley
Copy link
Contributor

@dralley dralley commented Feb 15, 2021

@pulpbot
Copy link
Member

pulpbot commented Feb 15, 2021

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

@dralley dralley force-pushed the auto-publish-distribute branch 12 times, most recently from d2ea502 to e7c3450 Compare February 16, 2021 03:34
@dralley dralley marked this pull request as ready for review February 16, 2021 13:04
@dralley dralley force-pushed the auto-publish-distribute branch 4 times, most recently from bc6e5d5 to 0497c43 Compare February 18, 2021 04:44
@dralley dralley force-pushed the auto-publish-distribute branch 11 times, most recently from 338bbb8 to d71e00e Compare February 24, 2021 04:50
@dralley dralley force-pushed the auto-publish-distribute branch 3 times, most recently from e0c89d6 to bf9ae43 Compare February 24, 2021 04:57
@dralley dralley marked this pull request as draft March 11, 2021 16:28
@dralley dralley force-pushed the auto-publish-distribute branch 2 times, most recently from 80cfa20 to 5029773 Compare April 2, 2021 21:14
@dralley dralley marked this pull request as ready for review April 2, 2021 21:41
@dralley dralley force-pushed the auto-publish-distribute branch 5 times, most recently from 38abc38 to 0df4619 Compare April 8, 2021 18:06
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 really good! Thanks!

def delete_remaining_old_master_model_entries(apps, schema_editor):
with connection.cursor() as cursor:
for pk in pks_to_delete:
cursor.execute("DELETE from core_basedistribution WHERE pulp_id = %s", [pk])
Copy link
Member

Choose a reason for hiding this comment

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

Why are we deleting one by one? is it faster/better?

Copy link
Contributor Author

@dralley dralley Apr 8, 2021

Choose a reason for hiding this comment

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

Yeah I don't really get it either, but this was what Brian ended up doing. There was some discussion about it on the original file PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

At this point I'm not going to diverge from what was already tested / merged

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There's probably not enough distributions for it to make a lot of difference.

@@ -205,6 +205,7 @@ class RpmRepository(Repository):
ModulemdDefaults,
]
REMOTE_TYPES = [RpmRemote]
GPGCHECK_CHOICES = [(0, 0), (1, 1)]
Copy link
Member

Choose a reason for hiding this comment

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

👍

@dralley dralley force-pushed the auto-publish-distribute branch 4 times, most recently from e4130e2 to 80ddfe9 Compare April 8, 2021 22:34
@dralley dralley merged commit fbaadac into pulp:master Apr 9, 2021
@dralley dralley deleted the auto-publish-distribute branch April 9, 2021 00:11
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

3 participants