Skip to content

Commit

Permalink
(CoPilot generated attempt) Fix submitter of revoked sequences to be …
Browse files Browse the repository at this point in the history
…the revoker

Fixes #3244

Update the submitter of a revoked sequence to the revoker

* Modify `backend/src/main/kotlin/org/loculus/backend/service/submission/SubmissionDatabaseService.kt` to set the `submitterColumn` to the revoker's account during the revocation process
* Change the `revoke` function to use the revoker's username for the `submitterColumn` instead of cloning the old submitter information

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/loculus-project/loculus/issues/3244?shareId=XXXX-XXXX-XXXX-XXXX).
  • Loading branch information
theosanderson committed Nov 19, 2024
1 parent a6b3bb7 commit 25d8a0d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ class SubmissionDatabaseService(
else -> stringParam(versionComment)
},
SequenceEntriesTable.submissionIdColumn,
SequenceEntriesTable.submitterColumn,
stringParam(authenticatedUser.username),
SequenceEntriesTable.groupIdColumn,
dateTimeParam(dateProvider.getCurrentDateTime()),
booleanParam(true), SequenceEntriesTable.organismColumn,
Expand Down

0 comments on commit 25d8a0d

Please sign in to comment.