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

Fix/ Submission Revision Stage: update field readers accordingly #2091

Merged
merged 7 commits into from
Apr 17, 2024

Conversation

celestemartinez
Copy link
Member

@celestemartinez celestemartinez commented Apr 11, 2024

This PR removes hide_fields from the Revision invitation and allows to hide fields only using the Post_Submission.

This PR also adds all possible content fields to the hide_fields dropdown (we were not adding the second_deadline_additional_options)

This issue has happened twice, once to MIDL and once to AutoML.
I believe what happened was both venues had an abstract deadline, which created the /Revision invitations. At some point, the pdf was hidden for all submissions. Then the Post Submission was used to unhide the pdfs. Later on, they re- run the Revision stage to allow authors to revise their papers, but they used the default name /Revision. Since pdfs were hidden in these invitations, pdfs started being hidden after authors edited their submission.

This PR checks if the field is in hide_fields and if it isn't, it removes the readers.

**Edit: I have now also noticed that if we used replacement=True when posting revision invitations, we would not have this issue. I am unsure why we sometimes use replacement=True and sometimes we use replacement=False**

@melisabok
Copy link
Member

We try to not use replacement=True because that will always post an edit and run the date process function that syncs all the child invitations.

Sometimes PCs make some changes that don't affect the child invitations so we don't want to be re-running the expensive date process function.

@celestemartinez celestemartinez changed the title Fix/ Submission Revision Stage: remove readers if field not in hide_fields Fix/ Submission Revision Stage: do not add readers to any field Apr 12, 2024
@melisabok melisabok requested a review from enrubio April 15, 2024 14:36
for field in content:
if field in hidden_field_names:
content[field]['readers'] = [venue_id, self.venue.get_authors_id('${{4/id}/number}')]
if field not in hidden_field_names and invitation_content.get(field, {}).get('readers', []):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@melisabok I reverted back to adding readers to hidden fields. However, I also now check if the invitation exists and if a field has readers that shouldn't be hidden anymore, I remove the readers.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would prevent the issue we had with NAACL today.

@melisabok melisabok merged commit 0220227 into master Apr 17, 2024
1 check passed
@melisabok melisabok deleted the fix/revision-stage-hidden-fields branch April 17, 2024 14:17
@celestemartinez celestemartinez changed the title Fix/ Submission Revision Stage: do not add readers to any field Fix/ Submission Revision Stage: update field readers accordingly Apr 17, 2024
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