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/add test confidential comment #2102

Merged
merged 9 commits into from
Apr 25, 2024
Merged

Conversation

enrubio
Copy link
Member

@enrubio enrubio commented Apr 18, 2024

Add test for Author-AC confidential comments.

@@ -49,7 +52,7 @@ def process(client, edit, invitation):
sender=sender,
recipients=[program_chairs_id],
ignoreRecipients = ignore_groups,
subject=f'''[{short_name}] A {invitation_name} has been received on Paper Number: {submission.number}, Paper Title: "{submission.content['title']['value']}"''',
subject=f'''[{short_name}] {before_invitation} {invitation_name} has been received on Paper Number: {submission.number}, Paper Title: "{submission.content['title']['value']}"''',
message=f'''We have received a {invitation_name} on a submission to {short_name} for which you are serving as Program Chair.
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 use before_invitation in the message text as well?

We have received a author ac confidential comment on a submission to ICML 2023 for which you are an official area chair.

Copy link
Member Author

Choose a reason for hiding this comment

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

You're right, I missed that change. Fixed now.

@@ -152,7 +155,7 @@ def process(client, edit, invitation):
recipients=submission.content['authorids']['value'],
ignoreRecipients=ignore_groups,
replyTo=contact,
subject=f'''[{short_name}] A {invitation_name} has been received on your Paper Number: {submission.number}, Paper Title: "{submission.content['title']['value']}"''',
subject=f'''[{short_name}] {before_invitation} {invitation_name} has been received on your Paper Number: {submission.number}, Paper Title: "{submission.content['title']['value']}"''',
message=f'''We have recieved a {invitation_name} on your submission to {short_name}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
message=f'''We have recieved a {invitation_name} on your submission to {short_name}
message=f'''We have received a {invitation_name} on your submission to {short_name}.

Copy link
Member

Choose a reason for hiding this comment

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

please include a test for the message content.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

@melisabok melisabok merged commit fac20c1 into master Apr 25, 2024
1 check passed
@melisabok melisabok deleted the fix/add-test-confidential-comment branch April 25, 2024 14:09
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