Skip to content

Commit 7f06949

Browse files
committed
Expand rule serialization
Refs getsentryGH-1631
1 parent 9fd58b5 commit 7f06949

File tree

1 file changed

+3
-0
lines changed
  • src/sentry/api/serializers/models

1 file changed

+3
-0
lines changed

src/sentry/api/serializers/models/rule.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ class RuleSerializer(Serializer):
99
def serialize(self, obj, attrs, user):
1010
d = {
1111
'id': str(obj.id),
12+
'conditions': obj.data.get('conditions', []),
13+
'actions': obj.data.get('actions', []),
14+
'actionMatch': obj.data.get('action_match', 'all'),
1215
'name': obj.label,
1316
'dateCreated': obj.date_added,
1417
}

0 commit comments

Comments
 (0)