-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[version descriptors] redirect versioned URLs
The desired behaviour is that (e.g.) dengue/denv1@version redirects to dengue/denv1/genome@version, similarly to how the non-versioned URL currently behaves. This failed because of three inter-related aspects: 1. The previous commit removed (e.g.) "dengue/denv1" from the index, choosing instead to place that data under the "dengue/denv1/genome" ID. 2. The server instantiates the Resource (Dataset) class for the request before resolving/redirecting the URL. During this instantiation the requested version was checked against the index and since the resource wasn't present in the index this failed (NotFound error). This was solved by deferring the version lookup until after the URL resolving/redirecting stage. 3. The redirect URL didn't include the version descriptor.
- Loading branch information
1 parent
ecf2134
commit c88a87d
Showing
3 changed files
with
60 additions
and
7 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
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