-
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: Preserve transitive membership (#2429)
* Fix: Preserve transitive membership * Update openreview/api/client.py --------- Co-authored-by: celestemartinez <[email protected]>
- Loading branch information
1 parent
ae2acb8
commit fcfc1f6
Showing
3 changed files
with
54 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 |
---|---|---|
|
@@ -2227,6 +2227,36 @@ def test_remove_email_address(self, openreview_client, helpers): | |
assert openreview_client.get_group('~Harold_Last1').members == ['[email protected]'] | ||
assert openreview_client.get_group('[email protected]').members == ['~Harold_Last1'] | ||
|
||
def test_remove_email_from_merged_profile(self, openreview_client, helpers): | ||
|
||
tidus_client = helpers.create_user('[email protected]', 'Tidus', 'Mondragon', alternates=[], institution='google.com') | ||
|
||
profile = tidus_client.get_profile() | ||
profile.content['homepage'] = 'https://carlos.google.com' | ||
|
||
tidus_client.post_profile(profile) | ||
|
||
helpers.create_user('[email protected]', 'Tidus', 'Chapa', alternates=[], institution='deepmind.com') | ||
|
||
openreview_client.merge_profiles('~Tidus_Mondragon1', '~Tidus_Chapa1') | ||
|
||
edit = openreview_client.post_note_edit( | ||
invitation = 'openreview.net/Support/-/Profile_Email_Removal', | ||
signatures=['openreview.net/Support'], | ||
note = openreview.api.Note( | ||
content={ | ||
'email': { 'value': '[email protected]' }, | ||
'profile_id': { 'value':'~Tidus_Mondragon1' }, | ||
'comment': { 'value': 'email is silly' } | ||
} | ||
) | ||
) | ||
|
||
helpers.await_queue_edit(openreview_client, edit_id=edit['id']) | ||
|
||
profile = tidus_client.get_profile() | ||
|
||
tidus_client.post_profile(profile) | ||
|
||
def test_update_relation_after_signup(self, helpers): | ||
|
||
|