-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AJ-1234: Use helmchart name for pact identifiers. #384
Conversation
.github/workflows/publish-pacts.yml
Outdated
@@ -65,12 +65,12 @@ jobs: | |||
- name: Output consumer contract as non-breaking base64 string | |||
id: encode-pact | |||
run: | | |||
NON_BREAKING_B64=$(cat service/build/pacts/wds-consumer-sam-provider.json | base64 -w 0) | |||
NON_BREAKING_B64=$(cat service/build/pacts/terra-workspace-data-service-sam.json | base64 -w 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry about the whitespace churn. This is the only significant line change for this file.
@@ -37,7 +37,7 @@ void setUp() { | |||
RequestContextHolder.setRequestAttributes(new ServletRequestAttributes(request)); | |||
} | |||
|
|||
@Pact(consumer = "wds-consumer", provider = "sam-provider") | |||
@Pact(consumer = "terra-workspace-data-service", provider = "sam") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rename of sam-provider
-> sam
will need to be accompanied by a similar PR in the sam repo.
Advice welcome on who to ping to add as a reviewer to this PR for context.
This pairs with DataBiosphere/terra-workspace-data-service#384, where `wds` also renames its reference from `sam-provider` to just `sam`. * See [thread](https://broadinstitute.slack.com/archives/C043YJ40719/p1698068076950019) discussing the `-consumer` and `-provider` suffix anti-pattern. * See [thread](https://broadinstitute.slack.com/archives/C043YJ40719/p1698241095600099) discussing the recommendation to use the helm chart name. * See [thread](https://broadinstitute.slack.com/archives/C043YJ40719/p1698262189799389) discussing doing this for `sam`.
7a031e7
to
77c6712
Compare
This pairs with broadinstitute/sam#1234, where `sam` also renames its reference from `sam-consumer` to just `sam`. * See [thread](https://broadinstitute.slack.com/archives/C043YJ40719/p1698068076950019) discussing the `-consumer` and `-provider` suffix anti-pattern. * See [thread](https://broadinstitute.slack.com/archives/C043YJ40719/p1698241095600099) discussing the recommendation to use the helmchart name.
77c6712
to
7393b8d
Compare
@@ -65,12 +65,12 @@ jobs: | |||
- name: Output consumer contract as non-breaking base64 string | |||
id: encode-pact | |||
run: | | |||
NON_BREAKING_B64=$(cat service/build/pacts/wds-consumer-sam-provider.json | base64 -w 0) | |||
NON_BREAKING_B64=$(cat service/build/pacts/wds-sam.json | base64 -w 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the whitespace churn, this is the only relevant change in this file.
Re-requested review as I tweaked the WDS pacticipant name, per: https://broadinstitute.slack.com/archives/C043YJ40719/p1698415650981769 |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
This pairs with DataBiosphere/terra-workspace-data-service#384, where `wds` also renames its reference from `sam-provider` to just `sam`. * See [thread](https://broadinstitute.slack.com/archives/C043YJ40719/p1698068076950019) discussing the `-consumer` and `-provider` suffix anti-pattern. * See [thread](https://broadinstitute.slack.com/archives/C043YJ40719/p1698241095600099) discussing the recommendation to use the helm chart name. * See [thread](https://broadinstitute.slack.com/archives/C043YJ40719/p1698262189799389) discussing doing this for `sam`.
This pairs with DataBiosphere/terra-workspace-data-service#384, where `wds` also renames its reference from `sam-provider` to just `sam`. * See [thread](https://broadinstitute.slack.com/archives/C043YJ40719/p1698068076950019) discussing the `-consumer` and `-provider` suffix anti-pattern. * See [thread](https://broadinstitute.slack.com/archives/C043YJ40719/p1698241095600099) discussing the recommendation to use the helm chart name. * See [thread](https://broadinstitute.slack.com/archives/C043YJ40719/p1698262189799389) discussing doing this for `sam`.
This is prefactoring work for AJ-1234
This pairs with broadinstitute/sam#1234, where
sam
also renames its reference fromsam-consumer
to justsam
.-consumer
and-provider
suffix anti-pattern.