-
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
Namespace detail - fix Sign all #3652
Conversation
…paces/:namespace and update on route change, but only when matching or unset
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
@@ -19,7 +19,8 @@ export function findDistroBasePathByRepo(distributions, repository) { | |||
const distro = distributions.find( | |||
(distro) => distro.name === repository.name, | |||
); | |||
return distro ? distro.base_path : distro[0].base_path; |
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.
oh :D, sorry for this 🤦
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.
very nice 👍 LGTM
Backport to stable-4.7: 💚 backport PR created✅ Backport PR branch: Backported as #3658 🤖 @patchback |
* 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)
* 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>
Issue: AAH-2308
Before: "sign all" would only sign collections in the repository of the first collection of the currently displayed list.
After: "sign all" only works when a repository is selected
Also updates
findDistroBasePathByRepo
to fix fallback,allows SignCollectionAPI.sign to find repository by name,
and when using the
myCollectionsByRepo
route, use the repo to preset the repository filter