Skip to content
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

ARR: Fix ethics review tests #2070

Merged
merged 4 commits into from
Apr 3, 2024
Merged

Conversation

haroldrubio
Copy link
Member

@haroldrubio haroldrubio commented Apr 2, 2024

This PR sets the ethics review stage to be active in the future instead of activating it as soon as the tests start. This fixes a bug where all submissions had an ethics review invitation created since the ethics review super invitation was active while the submission process functions ran.

Edited to add: I changed the test to start the ethics review stage from the beginning, to make sure no Ethics_Review invitatinos are created since no papers are flagged.

@celestemartinez
Copy link
Member

celestemartinez commented Apr 2, 2024

I am a little bit confused about why ethics review invitations were created for all submissions, if it should be created only for flagged submissions? It shouldn't matter when the ethics review super invitation is active.

Edit: I see now why this is happening. Perhaps we should fix this in the submission process as well? Just like how we check if the invitation should be created for accepted submissions only, and if it is, we ignore the invitation:

accepted_only = ('accepted_submissions' == venue_invitation.content.get('source', {}).get('value', False)) if venue_invitation.content else False

@melisabok what do you think?

@melisabok
Copy link
Member

@celestemartinez should we make that change in this PR? Only create invitations for all_submissions source.

@celestemartinez
Copy link
Member

@celestemartinez should we make that change in this PR? Only create invitations for all_submissions source.

yes, I can work on this

@celestemartinez
Copy link
Member

This should be ready.

@melisabok
Copy link
Member

Thanks @celestemartinez! feel free to approve and merge it.

@celestemartinez celestemartinez merged commit 6712289 into master Apr 3, 2024
1 check passed
@celestemartinez celestemartinez deleted the fix/arr-ethics-reviews-all-subs branch April 3, 2024 13:11
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.

None yet

3 participants