[stable-4.7] Repository URL - always use distro base_path, show in detail screen (#3737) #3757
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Manual backport of #3691 + #3737
Repository URL - always use distro base_path, show in detail screen (#3737)
page#addAlert - support alert ids
getRepoURL - make it clear we need distribution_base_path, not repository name
and published alone is special, not pipeline:approved
and rename Url to URL
when item.distributions is missing, load distribution, and either copy or alert no distribution when item.distributions is available, use disabled not alert
(detail view will have distributions available, list won't)
AnsibleRepository detail - load distributions
repository detail - load distributions only once, show url too
Repository URL - use copy component
(cherry picked from commit 295e36d)
Fix getRepoUrl so that it takes a parameter and returns the correct url. (#3691)
(cherry picked from commit 5d7c183)