File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -170,15 +170,16 @@ def create(self, request):
170170 channel = team .slack_channel
171171 )
172172
173+ message = json .dumps ({
174+ 'notification_channel' : cohort .slack_channel ,
175+ 'source_repo' : "/" .join (project .client_template_url .split ('/' )[- 2 :]),
176+ 'all_target_repositories' : issue_target_repos
177+ })
178+ valkey_client .publish ('channel_migrate_issue_tickets' , message )
179+
173180 serialized_team = StudentTeamSerializer (team , many = False ).data
174181
175182 # Publish a message to the channel_migrate_issue_tickets channel on redis to start migrating tickets
176- message = json .dumps ({
177- 'notification_channel' : cohort .slack_channel ,
178- 'source_repo' : "/" .join (project .client_template_url .split ('/' )[- 2 :]),
179- 'all_target_repositories' : issue_target_repos
180- })
181- valkey_client .publish ('channel_migrate_issue_tickets' , message )
182183
183184 return Response (serialized_team , status = status .HTTP_201_CREATED )
184185
You can’t perform that action at this time.
0 commit comments