How to Undo Deployed Assignments
If you deployed automatic assignments but would like to roll them back, you can do it using the python client.
- 1.
- 2.You will first need to delete all of the assignment edges. You can do this by getting all edges with your venue's assignment invitation and then setting a ddate for each one.
import datetime
grouped_edges = client.get_grouped_edges(invitation='Your/Venue/ID/Reviewers/-/Assignment', groupby='head')
for group in grouped_edges:
for edge in group['values']:
edge = openreview.api.Edge.from_json(edge)
edge.ddate = openreview.tools.datetime_millis(datetime.datetime.utcnow())
client.post_edge(edge)
3. Now all of the assignments have been reverted, but before you can deploy a new matching you will need to change the status of the deployed matching configuration from 'Deployed' to 'Complete'. In order to do this, you will first need to find the matching configuration ID.
- API V2
First, find the assignment configuration note with a status of 'Deployed':
notes = client.get_notes(invitation='Your/Venue/ID/Reviewers/-/Assignment_Configuration')
for note in notes:
if note.content['status']['value'] == 'Deployed':
configuration_note = note
break
Once you have this note, do the following:
client.post_note_edit(invitation='Your/Venue/ID/-/Edit',
signatures=['Your/Venue/ID'],
note=openreview.api.Note(
id=configuration_note.id,
content={
'status': { 'value': 'Complete' }
}
))
4. Now you should have the option to deploy a new matching configuration.
- API V1
First, find the assignment configuration note with a status of 'Deployed':
notes = client.get_notes(invitation='Your/Venue/ID/Reviewers/-/Assignment_Configuration')
for note in notes:
if note.content['status'] == 'Deployed:
configuration_note = note
break
Once you have this note, do the following:
configuration_note.content['status'] = 'Complete'
client.post_note(configuration_note)