-
Notifications
You must be signed in to change notification settings - Fork 81
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
Fix manual approve/reject when repository name is different from distribution base_path #3655
Conversation
…n base_path when calling the collection version copy/move API, the endpoint accepts source base path and destination base path, those are usually identical to repository name, but not always .. any repo with spaces in the name will have a different base path This ensures we call the endpoint with actual distribution base paths, not repository names. No-Issue
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.
LGTM 👍
Interesting is that error was here for very long time and nobody noticed, because we were working only with default repos :-) |
Backport to stable-4.7: 💚 backport PR created✅ Backport PR branch: Backported as #3656 🤖 @patchback |
…n base_path (#3655) when calling the collection version copy/move API, the endpoint accepts source base path and destination base path, those are usually identical to repository name, but not always .. any repo with spaces in the name will have a different base path This ensures we call the endpoint with actual distribution base paths, not repository names. No-Issue (cherry picked from commit d4196c4)
* CollectionFilter: change filter names to sentence case * NamespaceDetail: set repository_name filter from /repo/:repo/my-namespaces/:namespace and update on route change, but only when matching or unset * findDistroBasePathByRepo - fall back to first distribution if any, not null[0] * SignCollectionsAPI - support signing by repository name in addition to pulp_href * Namespace detail: sign all collections only signs current repo now make Sign all disabled when a repository is not selected, don't disable it when no collections are found (other filters may be in place), Issue: AAH-2308 * sync fail messages with #3655
* CollectionFilter: change filter names to sentence case * NamespaceDetail: set repository_name filter from /repo/:repo/my-namespaces/:namespace and update on route change, but only when matching or unset * findDistroBasePathByRepo - fall back to first distribution if any, not null[0] * SignCollectionsAPI - support signing by repository name in addition to pulp_href * Namespace detail: sign all collections only signs current repo now make Sign all disabled when a repository is not selected, don't disable it when no collections are found (other filters may be in place), Issue: AAH-2308 * sync fail messages with #3655 (cherry picked from commit 7dd6688)
…n base_path (#3655) (#3656) when calling the collection version copy/move API, the endpoint accepts source base path and destination base path, those are usually identical to repository name, but not always .. any repo with spaces in the name will have a different base path This ensures we call the endpoint with actual distribution base paths, not repository names. No-Issue (cherry picked from commit d4196c4) Co-authored-by: Martin Hradil <mhradil@redhat.com>
* CollectionFilter: change filter names to sentence case * NamespaceDetail: set repository_name filter from /repo/:repo/my-namespaces/:namespace and update on route change, but only when matching or unset * findDistroBasePathByRepo - fall back to first distribution if any, not null[0] * SignCollectionsAPI - support signing by repository name in addition to pulp_href * Namespace detail: sign all collections only signs current repo now make Sign all disabled when a repository is not selected, don't disable it when no collections are found (other filters may be in place), Issue: AAH-2308 * sync fail messages with #3655 (cherry picked from commit 7dd6688) Co-authored-by: Martin Hradil <mhradil@redhat.com>
when calling the collection version copy/move API, the endpoint accepts source base path and destination base path, those are usually identical to repository name, but not always .. any repo with spaces in the name will have a different base path
This ensures we call the endpoint with actual distribution base paths, not repository names.
(There may be room for improvement, the first thing the API does with the base path is look up the repository (galaxy_ng/app/api/v3/viewsets/collection.py:239), but not sure that would be backportable.)
Cc @MilanPospisil good catch finding this :)