Skip to content

Commit

Permalink
Save SLO and SLC Approvers' uids also
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavberi committed Mar 17, 2024
1 parent 7c6fd93 commit 13c775c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ class Event_Status:
room: bool = False
budget: bool = False
cc_approver: str | None = None
slo_approver: str | None = None
slc_approver: str | None = None

# def __init__ (self, state: Event_State_Status = None, room: Event_Room_Status = None, budget: Event_Budget_Status = None) :
# self.state: Event_State_Status = Event_State_Status.incomplete if state is None else state
Expand All @@ -67,11 +69,15 @@ def __init__(
room: bool = False,
budget: bool = False,
cc_approver: str | None = None,
slo_approver: str | None = None,
slc_approver: str | None = None,
):
self.state = state
self.room = room
self.budget = budget
self.cc_approver = cc_approver
self.slo_approver = slo_approver
self.slc_approver = slc_approver


# Event Modes
Expand Down
2 changes: 2 additions & 0 deletions mutations.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ def progressEvent(
"budget": True,
"room": event_instance.status.room,
# | len(event_instance.location) == 0,
"slc_approver": user["uid"],
}

if not updation["room"]:
Expand All @@ -308,6 +309,7 @@ def progressEvent(
"budget": event_instance.status.budget,
"room": True,
"state": Event_State_Status.approved.value,
"slo_approver": user["uid"],
}

elif event_instance.status.state == Event_State_Status.approved:
Expand Down

0 comments on commit 13c775c

Please sign in to comment.