-
Notifications
You must be signed in to change notification settings - Fork 30
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 4294: snapshot on create for upload repo #732
Conversation
requires #728 to be merged first, will rebase once that happens |
it looks like the combined status on upload repos will always be pending since it takes into account introspection and that will never occur. maybe introspection should have a different initial status than pending for upload repos? either way the combined status logic in dao/repository_configs.go will need to be updated. let me know if you want me to file a ticket for any of these things |
good find! Updated and added to a test |
oh and i realized the api docs for the list repositories status filter was wrong, It had all lowercase examples (valid) instead of the camel case that is required: (Valid). So i fixed that |
nice, status looks good now and filtering still works! is it expected to only see upload repos listed if i explicitly set origin=upload? eg |
do we expect users to bulk create upload repos? when i bulk create a couple upload repos, in the response i see a blank introspection status so the combined status is Unknown. it eventually switches to Valid somewhere, because listing the repos a few seconds later shows them all as Valid EDIT: origin is also set to empty in the response on bulk create, but this is filled in as well somewhere further down in the creation process |
everything else is working as expected and looks good :) |
yes, this is controlled by the NewRepositoryFiltering 'feature'. We should be able to just get rid of that now and default to showing all repos when hitting /repositories/. Let me file a task! |
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.
this looks good! will just need a rebase once this is merged in as you mentioned
@jlsherrill Rebase please |
set introspection status for upload repos fix for bulk repos not returning introspection data
squashed and rebased |
Hi @jlsherrill |
Hi I deployed this PR's image. I generated new API docs. I created upload repo:
I logged into another pod and tried to get the snapshot:
|
Hi Checking for zero packages as expected in newly created upload repo. I had to do this in a debug pod (because you need write access to store the file):
|
Summary
Run the snapshot task at creation of upload repositories.
Modify the snapshot task to not create a remote and not perform a sync during the snapshot task. Instead it will grab the latest version href from the repository in pulp (which should be empty version 0)
Testing steps
Checklist