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

Feature: add option to delay new assignments after review has been submitted #2464

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

celestemartinez
Copy link
Member

@celestemartinez celestemartinez commented Jan 8, 2025

TMLR wants there to be a 2 week delay between when a reviewer submits their review and when they are once again available to be assigned to a new paper.

In this case, I implemented a post process that will run 2 weeks after the review was submitted to decrease the pending reviews counter. If the journal does not want a delay, the counter is decreased as soon as the review is posted.

if self.journal.get_assignment_delay_after_submitted_review() > 0:
weeks = datetime.timedelta(weeks=self.journal.get_assignment_delay_after_submitted_review())
milliseconds = int(weeks.total_seconds() * 1000)
invitation['postprocesses'] = [
Copy link
Member

Choose a reason for hiding this comment

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

when a postprocesses run?

Copy link
Member Author

Choose a reason for hiding this comment

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

The postprocess will run after a reply is posted to the invitation, so kind of like the process function. However, we can add a delay, so the postprocess will run after the specified delay (in ms). More info here: https://github.com/openreview/openreview-api/pull/630

Copy link
Member

Choose a reason for hiding this comment

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

can we always add this post process and if the delay is 0 then we update the pending review edge right away?

then we need to remove the code that updates the edge in the review process

@@ -8,7 +8,7 @@ parameters:
default: "master"
openreview-api-v2-branch:
type: string
default: "main"
default: "feature/postprocesses"
Copy link
Member

Choose a reason for hiding this comment

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

we need to wait until this is merged before merging this

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.

2 participants