-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix/Venue: Chat process and date process (#2328)
* check groups exist * fix test
- Loading branch information
1 parent
40ce8d5
commit b85a906
Showing
3 changed files
with
43 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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 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 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 |
---|---|---|
|
@@ -5525,7 +5525,7 @@ def test_forum_chat(self, openreview_client, helpers): | |
|
||
invitation = openreview_client.get_invitation('ICML.cc/2023/Conference/Submission1/-/Chat') | ||
assert invitation.date_processes[0].get('dates') is None | ||
assert invitation.date_processes[0].get('cron') == '0 */4 * * *' | ||
assert invitation.date_processes[0].get('cron') == '0 */4 * * *' | ||
|
||
assert len(openreview_client.get_messages(to='[email protected]', subject='[ICML 2023] New conversation in committee members chat for submission 1: Paper title 1 Version 2 UPDATED')) == 0 | ||
assert len(openreview_client.get_messages(to='[email protected]', subject='[ICML 2023] New conversation in committee members chat for submission 1: Paper title 1 Version 2 UPDATED')) == 1 | ||
|
@@ -5667,6 +5667,34 @@ def test_forum_chat(self, openreview_client, helpers): | |
tags = openreview_client.get_tags(invitation='ICML.cc/2023/Conference/Submission1/-/Chat_Reaction', mintmdate=tag.tmdate - 5000) | ||
assert len(tags) == 1 | ||
|
||
submission = openreview_client.get_notes(invitation='ICML.cc/2023/Conference/-/Submission', number=4)[0] | ||
|
||
reviewer_client = openreview.api.OpenReviewClient(username='[email protected]', password=helpers.strong_password) | ||
|
||
anon_groups = reviewer_client.get_groups(prefix='ICML.cc/2023/Conference/Submission4/Reviewer_', signatory='~Reviewer_ICMLOne1') | ||
anon_group_id = anon_groups[0].id | ||
|
||
# assert there is no error if Reviewer/Submitted group does not exist | ||
invitation = openreview_client.get_invitation('ICML.cc/2023/Conference/Submission4/-/Chat') | ||
assert invitation.date_processes[0].get('dates') == [] | ||
|
||
note_edit = reviewer_client.post_note_edit( | ||
invitation='ICML.cc/2023/Conference/Submission4/-/Chat', | ||
signatures=[anon_group_id], | ||
note=openreview.api.Note( | ||
replyto=submission.id, | ||
content={ | ||
'message': { 'value': 'Hi AC, I will be late in completing my review.' } | ||
} | ||
) | ||
) | ||
|
||
helpers.await_queue_edit(openreview_client, edit_id=note_edit['id']) | ||
|
||
invitation = openreview_client.get_invitation('ICML.cc/2023/Conference/Submission4/-/Chat') | ||
assert invitation.date_processes[0].get('dates') is None | ||
assert invitation.date_processes[0].get('cron') == '0 */4 * * *' | ||
|
||
## Disable chat | ||
pc_client=openreview.Client(username='[email protected]', password=helpers.strong_password) | ||
request_form=pc_client.get_notes(invitation='openreview.net/Support/-/Request_Form')[0] | ||
|