Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8d953b4

Browse files
committedAug 4, 2023
Better choice of distribution when multiple per repo (#4007)
when a repository has multiple distributions, UI will just use the first candidate that leads to `inbound-*` distros being used instead of, say, `published` change the logic to first search for distribution where the name matches the repo name (and is still associated with the right repo), and only then fall back to the first candidate, but sorted so it will be the oldest distribution Issue: AAH-2586 * add `repositoryBasePath(name, pulp_href?): Promise<string>`, replace `RepositoriesUtils.distributionByRepoName` * use repositoryBasePath instead of manual or findDistroBasePathByRepo * use helper in even more places * rm unused api methods * types cleanup, merge ansible repository and repository * merge Repositories into AnsibleRepositoryAPI * fix imports, lint. sort-exports, tests (cherry picked from commit 367295f)
1 parent df4b253 commit 8d953b4

File tree

71 files changed

+738
-843
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+738
-843
lines changed
 

‎CHANGES/2586.bug

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Better choice of distribution when multiple per repo

‎package.json

+1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
"lint:yaml:setup": "pip install --upgrade yamllint",
8888
"prettier": "prettier --write 'src/**' 'config/**' 'test/**'",
8989
"prettier:check": "prettier -l 'src/**' 'config/**' 'test/**'",
90+
"sort-exports": "perl -i -pe 's/^export/import/' src/**/index.ts ; npm run prettier ; perl -i -pe 's/^import/export/' src/**/index.ts",
9091
"start-pulp": "NODE_ENV=development API_PROXY_PORT=8080 API_BASE_PATH='/api/galaxy/' webpack serve --host 0.0.0.0 --config config/standalone.dev.webpack.config.js",
9192
"start-standalone": "NODE_ENV=development webpack serve --host 0.0.0.0 --config config/standalone.dev.webpack.config.js",
9293
"test": "npm run test-build && npm run test-run",

0 commit comments

Comments
 (0)
Please sign in to comment.