Skip to content

Commit

Permalink
Pass slack group id with project information api (#796)
Browse files Browse the repository at this point in the history
* Pass slack group id with project information api

* Fix tests

Co-authored-by: Aditya Bharadwaj <aditya@b12.io>
  • Loading branch information
adbharadwaj and Aditya Bharadwaj committed Jul 29, 2021
1 parent bcdbd5d commit 7bec130
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def test_project_information_api(self):
# Skipping the `tasks` key/value pair for this test
expected_project = {
'task_class': project.task_class,
'slack_group_id': project.slack_group_id,
'start_datetime': '2015-10-12T00:00:00Z',
'scratchpad_url': None,
'admin_url': settings.ORCHESTRA_URL + reverse(
Expand Down
3 changes: 2 additions & 1 deletion orchestra/project_api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ class Meta:
'project_data',
'scratchpad_url',
'task_class',
'status'
'status',
'slack_group_id'
)

workflow_slug = serializers.SerializerMethodField()
Expand Down
1 change: 1 addition & 0 deletions orchestra/project_api/tests/test_project_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def test_project_information(self):
'workflow_version_slug': 'test_workflow',
'project_data': {},
'scratchpad_url': None,
'slack_group_id': project.slack_group_id,
'priority': 0,
'status': 0
},
Expand Down

0 comments on commit 7bec130

Please sign in to comment.