Skip to content
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

Set correct contention type when creating contention #235

Merged
merged 2 commits into from
Sep 24, 2019

Conversation

Sjones352
Copy link
Contributor

Connects #11401

Before setting contention_type. It shows type_code: "REP"
Screen Shot 2019-09-24 at 10 48 44 AM

After setting contention_type. It shows type_code: "HLR"
Screen Shot 2019-09-24 at 11 08 04 AM

@Sjones352 Sjones352 self-assigned this Sep 24, 2019
Copy link
Contributor

@leikkisa leikkisa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Sandra - the test is incorrect, but your test against UAT looks correct!

@@ -8,7 +8,8 @@
contentions: [
{ description: "Billy One" },
{ description: "Billy Two" },
{ description: "Billy Three", original_contention_ids: [1, 2] }
{ description: "Billy Three", original_contention_ids: [1, 2] },
{ contention_type: "HLR" }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The way it's coded, it should look more like this:
{ description: "Billy Three", original_contention_ids: [1, 2], contention_type: "HLR" }

Each of these lines represents 1 contention being created, and above when you're checking for contention_type, you're iterating through each of these. So the way it's written now, the code would interpret the last line as a new contention with a contention type, but no description.

Your test against UAT looks correct.

Copy link
Contributor Author

@Sjones352 Sjones352 Sep 24, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lol I had done this { description: "Billy Three", original_contention_ids: [1, 2], contention_type: "HLR" } but removed it coz I was testing something else in the spec. Fixed now

Copy link
Contributor

@leikkisa leikkisa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bam! 🐎

@Sjones352 Sjones352 merged commit 5c34ab8 into master Sep 24, 2019
@pkarman pkarman deleted the sandra/11401-contention-type branch December 20, 2019 22:13
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.

2 participants