Skip to content

Handle Shopper Context title change @W-12969581#120

Merged
tarcang merged 9 commits intomainfrom
tg/handle-shopper-context-title-change
Apr 12, 2023
Merged

Handle Shopper Context title change @W-12969581#120
tarcang merged 9 commits intomainfrom
tg/handle-shopper-context-title-change

Conversation

@tarcang
Copy link
Contributor

@tarcang tarcang commented Apr 7, 2023

Background

  • The release process is blocked because of the title change in Shopper Context. The type name and the class name (which was derived from the title in raml) caused this issue.

How does these changes fix this?

  • In these changes, we overwrite the name property of the ShopperContext API model returned by the RAML Toolkit. To make the name change work with the template generation, we had to pass the updateName parameter for the init method in ApiModel (documentation) (for some reason ApiMetadata object doesn't have this parameter in its init method) as false. This is a crucial part in this fix since our name overwrite wouldn't matter, raml-toolkit would change the name property on its own.

  • Also some test cases are updated after the breaking changes in the API.

@tarcang tarcang marked this pull request as ready for review April 10, 2023 16:21
@tarcang tarcang requested a review from a team as a code owner April 10, 2023 16:21
@tarcang tarcang requested review from a team, joeluong-sfcc, p-biyani and unandyala April 11, 2023 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants