-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(backend): Fix submitter of revoked sequences to be the revoker #3246
Conversation
…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).
Thanks! Oof, how did this live so long without us noticing 😬 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @theosanderson!
I'm adding a test for this in #3248 |
backend/src/test/kotlin/org/loculus/backend/controller/submission/RevokeEndpointTest.kt
Show resolved
Hide resolved
… errors from happening in future
@fengelniederhammer maybe you have some thoughts on how to better test the created sequence entries - we've now got a bunch of helpers, that's not terrible but maybe there's a neater way you know. Also, we might want to test similar basic things explicitly for other parts of the submission flow. |
The helpers already look pretty helpful to me. The tests are nice to read. |
@fengelniederhammer I just wasn't sure whether creating a helper for each property was a good way to go. Could come up with a better way (limited Kotlin knowledge). |
Let's merge? @theosanderson :) |
Fixes #3244
https://theosanderson-fix-revoked.loculus.org/
Update the submitter of a revoked sequence to the revoker
backend/src/main/kotlin/org/loculus/backend/service/submission/SubmissionDatabaseService.kt
to set thesubmitterColumn
to the revoker's account during the revocation processrevoke
function to use the revoker's username for thesubmitterColumn
instead of cloning the old submitter informationTested that autoapprove no longer happens:
For more details, open the Copilot Workspace session.