-
Notifications
You must be signed in to change notification settings - Fork 36
ARR: Merge Post-Submission and Preprint Release #2908
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
Open
haroldrubio
wants to merge
35
commits into
master
Choose a base branch
from
fix/arr-preprint-in-post
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 26 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
30d1122
Remove preprint release
haroldrubio fae13eb
Remove preprint process
haroldrubio 7fe70c3
Change post submission process function
haroldrubio 4d4c2fd
Change tests
haroldrubio 07895a9
Merge branch 'master' into fix/arr-preprint-in-post
haroldrubio 6406213
Remove old test
haroldrubio 55e4f45
Merge branch 'master' into fix/arr-preprint-in-post
haroldrubio 4aec93d
Merge branch 'master' into fix/arr-preprint-in-post
melisabok 0ab123c
Parameterize post submission
haroldrubio 9f1a738
Call venue invitation builder
haroldrubio b13b237
Duplicate Venue logic into ARR
haroldrubio da99720
Update process function
haroldrubio d3bfd13
Update tests
haroldrubio 0572c67
Merge branch 'master' into fix/arr-preprint-in-post
haroldrubio 59cb630
Refactor source
haroldrubio 9c7ea9a
Merge branch 'master' into fix/arr-preprint-in-post
haroldrubio 13a0fae
Fix level of nesting
haroldrubio 5134dbf
Merge branch 'fix/arr-preprint-in-post' of https://github.com/openrev…
haroldrubio f05db47
Remove process function and fix explanation logic
haroldrubio 811d2ca
Merge branch 'master' into fix/arr-preprint-in-post
haroldrubio 9e541c8
Merge branch 'master' into fix/arr-preprint-in-post
haroldrubio 3d3fc38
Merge branch 'master' into fix/arr-preprint-in-post
haroldrubio a3456a8
Merge branch 'master' into fix/arr-preprint-in-post
haroldrubio 07723c3
Remove process function
haroldrubio 1c40b6c
Update invitation schema
haroldrubio 347724d
Move explanation of revisions assertions
haroldrubio 1059204
Add back assertions
haroldrubio e2005b8
Merge branch 'master' into fix/arr-preprint-in-post
haroldrubio f342066
Merge branch 'master' into fix/arr-preprint-in-post
haroldrubio ee81cfd
Only keep custom source
haroldrubio a635ad7
Merge branch 'master' into fix/arr-preprint-in-post
haroldrubio bbe439d
Merge branch 'master' into fix/arr-preprint-in-post
celestemartinez 19ef4e4
Merge branch 'master' into fix/arr-preprint-in-post
haroldrubio e4a6bf9
Merge branch 'master' into fix/arr-preprint-in-post
haroldrubio e54da3f
Merge branch 'master' into fix/arr-preprint-in-post
melisabok File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -198,18 +198,145 @@ def set_preferred_emails_invitation(self): | |||||
| def set_submission_invitation(self): | ||||||
| return self.venue_invitation_builder.set_submission_invitation() | ||||||
|
|
||||||
| def set_post_submission_invitation(self, invitation_id=None, source=None): | ||||||
| if source is None: | ||||||
| source = { | ||||||
| 'venueid': self.venue.get_submission_venue_id(), | ||||||
| 'content':{ | ||||||
| 'preprint': 'no' | ||||||
| } | ||||||
| } | ||||||
|
|
||||||
| return self.venue_invitation_builder.set_post_submission_invitation( | ||||||
| invitation_id=invitation_id, | ||||||
| source=source | ||||||
| ) | ||||||
|
|
||||||
| def set_preprint_post_submission_invitation(self): | ||||||
| if self.venue.is_template_related_workflow(): | ||||||
| return | ||||||
|
|
||||||
| venue_id = self.venue_id | ||||||
| submission_stage = self.venue.submission_stage | ||||||
| submission_id = submission_stage.get_submission_id(self.venue) | ||||||
| invitation_id = self.venue.get_preprint_post_submission_id() | ||||||
| source = { | ||||||
| 'venueid': self.venue.get_submission_venue_id(), | ||||||
| 'content': { | ||||||
| 'preprint': 'yes' | ||||||
| } | ||||||
| } | ||||||
| post_submission_cdate = tools.datetime_millis(submission_stage.exp_date) if submission_stage.exp_date else None | ||||||
| number_param = '${{4/id}/number}' | ||||||
| authors_id = self.venue.get_authors_id(number_param) | ||||||
| hidden_field_names = submission_stage.get_hidden_field_names() | ||||||
| note_content = { | ||||||
| field: { | ||||||
| 'readers': [venue_id, authors_id] | ||||||
| } for field in hidden_field_names | ||||||
| } | ||||||
| committee_readers = [ | ||||||
| self.venue.get_program_chairs_id(), | ||||||
| self.venue.get_senior_area_chairs_id(number_param), | ||||||
| self.venue.get_area_chairs_id(number_param), | ||||||
| self.venue.get_reviewers_id(number_param), | ||||||
| authors_id | ||||||
| ] | ||||||
|
|
||||||
| existing_invitation = tools.get_invitation(self.client, invitation_id) | ||||||
| if existing_invitation and 'content' in existing_invitation.edit['note']: | ||||||
| for field, value in existing_invitation.edit['note']['content'].items(): | ||||||
| if field not in hidden_field_names and 'readers' in value: | ||||||
| note_content[field] = { | ||||||
| 'readers': { | ||||||
| 'param': { | ||||||
| 'const': { | ||||||
| 'delete': True | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
|
|
||||||
| for field in hide_fields_from_public: | ||||||
| note_content[field] = { | ||||||
| 'readers': committee_readers | ||||||
| } | ||||||
|
|
||||||
| note_content['_bibtex'] = { | ||||||
| 'value': { | ||||||
| 'param': { | ||||||
| 'type': 'string', | ||||||
| 'maxLength': 200000, | ||||||
| 'input': 'textarea', | ||||||
| 'optional': True, | ||||||
| 'deletable': True | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
|
|
||||||
| invitation = Invitation( | ||||||
| id=invitation_id, | ||||||
| invitees=[venue_id], | ||||||
| signatures=[venue_id], | ||||||
| readers=[venue_id], | ||||||
| writers=[venue_id], | ||||||
| cdate=post_submission_cdate, | ||||||
| date_processes=[{ | ||||||
| 'dates': ["#{4/cdate}", self.update_date_string], | ||||||
| 'script': self.get_process_content('../venue/process/post_submission_process.py') | ||||||
| }], | ||||||
| content={ | ||||||
| 'source': { | ||||||
| 'value': source | ||||||
| } | ||||||
| }, | ||||||
| edit={ | ||||||
| 'signatures': [venue_id], | ||||||
| 'readers': [venue_id, self.venue.get_authors_id('${{2/note/id}/number}')], | ||||||
| 'writers': [venue_id], | ||||||
| 'note': { | ||||||
| 'id': { | ||||||
| 'param': { | ||||||
| 'withInvitation': submission_id, | ||||||
| 'optional': True | ||||||
| } | ||||||
| }, | ||||||
| 'odate': { | ||||||
| 'param': { | ||||||
| 'range': [0, 9999999999999], | ||||||
| 'optional': True, | ||||||
| 'deletable': True | ||||||
| } | ||||||
| }, | ||||||
| 'signatures': [self.venue.get_authors_id('${{2/id}/number}')], | ||||||
| 'readers': ['everyone'], | ||||||
| 'writers': [venue_id, self.venue.get_authors_id('${{2/id}/number}')], | ||||||
| 'content': note_content | ||||||
| } | ||||||
| } | ||||||
| ) | ||||||
|
|
||||||
| self.save_invitation(invitation, replacement=False) | ||||||
| return invitation | ||||||
|
|
||||||
| def set_submission_deletion_invitation(self, submission_revision_stage): | ||||||
| return self.venue_invitation_builder.set_submission_deletion_invitation(submission_revision_stage) | ||||||
|
|
||||||
| def set_post_submission_invitation(self): | ||||||
| return self.venue_invitation_builder.set_post_submission_invitation() | ||||||
|
|
||||||
| def set_submission_change_invitation(self, name, activation_date): | ||||||
| return self.venue_invitation_builder.set_submission_change_invitation(name, activation_date) | ||||||
|
|
||||||
| def set_pc_submission_revision_invitation(self): | ||||||
| return self.venue_invitation_builder.set_pc_submission_revision_invitation() | ||||||
|
|
||||||
| def set_submission_message_invitation(self): | ||||||
| return self.venue_invitation_builder.set_submission_message_invitation() | ||||||
|
|
||||||
| def set_iThenticate_plagiarism_check_invitation(self): | ||||||
| return self.venue_invitation_builder.set_iThenticate_plagiarism_check_invitation() | ||||||
|
|
||||||
| def set_submission_deletion_invitation(self, submission_revision_stage): | ||||||
| return self.venue_invitation_builder.set_submission_deletion_invitation(submission_revision_stage) | ||||||
|
|
||||||
|
Comment on lines
+347
to
+349
|
||||||
| def set_submission_deletion_invitation(self, submission_revision_stage): | |
| return self.venue_invitation_builder.set_submission_deletion_invitation(submission_revision_stage) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.