-
Notifications
You must be signed in to change notification settings - Fork 963
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Alternate Repository Location for PEP 708 (#15716)
* initial attempt at adding alternate repository location details * implement per-project alternate locations metadata * starting to add tests * starting to add tests * added tests Fixed rendering for detail.html. Moved api mimetypes to const vars. Check delete confirmation name matches. * updated translations * satisfy test coverage * update translations * update translations * register cache and purge keys for AlternateRepository objects * change db migration down revision to most recent migration This allows the migrations to run. * update test after adding alternate repository cache and purge key * increment api version to 1.2 * add url the response was fetched from * change db migration down revision to most recent migration This allows the migrations to run. * name is already normalized * update translations * match functionality between JSON and HTML simple API - route_path -> route_url to get full URL rather than path - move self reference to the _simple_detail helper * update migration * remove self-reference from Simple HTML and JSON The PEP reads as though they can be implied "When using alternate locations, clients MUST implicitly assume that the url the response was fetched from was included in the list." * add a callout in project management settings around Alternate Locations * translations --------- Co-authored-by: Ee Durbin <[email protected]>
- Loading branch information
Showing
17 changed files
with
1,101 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
I might be missing something, but I think this insertion causes the following test (
test_with_files_quarantined_omitted_from_index
) to be skipped since it's now indented within this helper function. I'll open a PR to fix that.