bcgov / platform-services-registry-api

Platform services registry API
Apache License 2.0
2 stars 1 forks source link

add alliance label to nats message #20

Closed ShovelHand closed 1 year ago

ShovelHand commented 1 year ago

based on this task: https://app.zenhub.com/workspaces/platform-experience-5bb7c5ab4b5806bc2beb9d15/issues/gh/bcdevops/developer-experience/2926

All this does is add an "alliance" parameter to the NATS json created when a project is created or updated. It's added right below "merge_type"

It works by just checking the ministry NATS/message.ts, line 29: const allianceLabel = (ministry as string).toLocaleLowerCase() == 'ag' ? "JAG" : "none";

and then on line 89 with the rest of the JSON data: alliance: allianceLabel, // "JAG" for Justice Attornies Group, else "none"

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication