Skip to content

Commit 6943ecb

Browse files
committed
Added the creation of a WG state change event for WG state changes.
- Legacy-Id: 4915
1 parent b5ae9c5 commit 6943ecb

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

ietf/wgcharter/views.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,13 +588,23 @@ def approve(request, name):
588588

589589
new_state = GroupStateName.objects.get(slug="active")
590590
if wg.state != new_state:
591+
# update history with current state
591592
save_group_in_history(wg)
593+
# change wg state and save the wg
592594
prev_state = wg.state
593595
wg.state = new_state
594596
wg.time = e.time
595597
wg.save()
598+
# create an event for the wg state change, too
599+
e = ChangeStateGroupEvent(group=wg, type="changed_state")
600+
e.time = wg.time
601+
e.by = login
602+
e.state_id = "proposed"
603+
e.desc = "Proposed group"
604+
e.save()
605+
# update the change description for the email
596606
change_description += " and WG state has been changed to %s" % new_state.name
597-
607+
598608
e = log_state_changed(request, charter, login, prev_charter_state)
599609

600610
# according to spec, 00-02 becomes 01, so copy file and record new revision

0 commit comments

Comments
 (0)