Skip to content

Commit

Permalink
Fix MTA recipients were lost with the stateDataFilter
Browse files Browse the repository at this point in the history
Signed-off-by: gabriel-farache <[email protected]>
  • Loading branch information
gabriel-farache committed Aug 1, 2024
1 parent cb0c14b commit 2fdaa42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mta-v7.x/mta.sw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ states:
actionDataFilter:
toStateData: ".jiraTickets"
stateDataFilter:
output: "{repositoryURL: .repositoryURL, tracker: .tracker, trackerProject: .trackerProject, trackerProjectIssueTypes: .trackerProjectIssueTypes, application: .application, migrationWaveJiraTicket: .repositoryURL as $r| if .jiraTickets == null then null else .jiraTickets|map(select(.application.name == $r))[0] end}"
output: "{recipients: .recipients, repositoryURL: .repositoryURL, tracker: .tracker, trackerProject: .trackerProject, trackerProjectIssueTypes: .trackerProjectIssueTypes, application: .application, migrationWaveJiraTicket: .repositoryURL as $r| if .jiraTickets == null then null else .jiraTickets|map(select(.application.name == $r))[0] end}"
transition: MigrationWaveJiraTicketExists
- name: MigrationWaveJiraTicketExists
type: switch
Expand Down Expand Up @@ -442,7 +442,7 @@ states:
- name: report
type: operation
stateDataFilter:
output: '{mtaAnalysisResultURL: ($SECRET.mta.url + "/hub/applications/" + (.application.id|tostring) + "/bucket/windup/report/"), migrationWaveJiraTicketURL: .migrationWaveJiraTicket.link, repositoryURL: .repositoryURL, workflowOptions: {migrationOptions: [{id: "m2k", name: "Move2Kube workflow"}]}}'
output: '{recipients: .recipients, mtaAnalysisResultURL: ($SECRET.mta.url + "/hub/applications/" + (.application.id|tostring) + "/bucket/windup/report/"), migrationWaveJiraTicketURL: .migrationWaveJiraTicket.link, repositoryURL: .repositoryURL, workflowOptions: {migrationOptions: [{id: "m2k", name: "Move2Kube workflow"}]}}'
end: true
- name: NotifyMandatoriesIncidentsInApplication
type: operation
Expand Down

0 comments on commit 2fdaa42

Please sign in to comment.