Tests for creating/retrieving metadata revisions, remove broken alternative revision path #1448
+19
−23
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.
This adds test coverage for:
/package/testpackage-1.0.0.0/revision/1.cabal/package/testpackage-1.0.0.0/revision/testpackage-1.0.0.0-r1.cabalThe first and second tests pass. The third does not, this is #1439.
113d4df introduced version-revision paths. I question whether this feature ever worked. The
resourceAtdefinition here:hackage-server/src/Distribution/Server/Features/Core.hs
Line 461 in 113d4df
Is parsed as
[DynamicBranch "tarball-:revision",StaticBranch "revision",DynamicBranch "package",StaticBranch "package"]. The code expects to find separatetarballandrevisioninDynamicPathbut won't get them.I'm not sure what the proper way forward is here. Does it make sense to revert 113d4df? I'm not sure what use-case it was trying to fulfill.
Update: I went ahead and reverted 113d4df. The longer revision URLs don't work, probably never worked, aren't trivial to fix, and the purpose of them is unclear.