Skip to content

fix: upload-time and uploader refer to the original time and author - #1527

Closed
zzantares wants to merge 1 commit into
haskell:masterfrom
zzantares:fix-1145-pkg-uploader-and-time-attributions
Closed

zzantares wants to merge 1 commit into
haskell:masterfrom
zzantares:fix-1145-pkg-uploader-and-time-attributions

Conversation

@zzantares

Copy link
Copy Markdown
Contributor

The package sub-resources for upload-time and uploader used to
incorrectly refer to the latest revision and Hackage admin who performed
the revision, this is now fixed so that /uploader and /upload-time
now reference the original author that uploaded the package and the time
at wich the package was actually uploaded originally.

Fixes: #1145

The package sub-resources for upload-time and uploader used to
incorrectly refer to the latest revision and Hackage admin who performed
the revision, this is now fixed so that `/uploader` and `/upload-time`
now reference the original author that uploaded the package and the time
at wich the package was actually uploaded originally.

Fixes: haskell#1145
@mergify

mergify Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@ysangkok

Copy link
Copy Markdown
Member

How did you test this?

@ysangkok

Copy link
Copy Markdown
Member

I think this needs more discussion, and some concrete acceptance criteria. Since these patch-up endpoints are for the mirroring, and they are supposed to match their setters, it wouldn't be intuitive after merging this. A mirror client would be calling those endpoints to decide whether the uploader-time/uploader is in sync, and then it would fetch the state first revision, which is not necessarily the one the setters would be overriding.

@ysangkok ysangkok closed this Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The upload-time and uploader package resources refer to the latest revision and admin who did it.

2 participants