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

Partner request units display (packs-4) #4399 #4531

Merged
merged 4 commits into from
Jul 27, 2024

Conversation

awwaiid
Copy link
Collaborator

@awwaiid awwaiid commented Jul 14, 2024

Implements #4399, aka Packs-4.

Validated through interactive testing locally with mock data, along with unit tests.


trait :fulfilled do
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm not sure these ever worked since they weren't nested inside of the factory block.

Copy link
Collaborator

Choose a reason for hiding this comment

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

If they didn't work, can we just delete them?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sorry they WORK but they were being defined globally instead of scoped to only the Requests factory. So any other factory could have been using these traits on accident, though lucky us nothing else is using them. I verified that all of them ARE being used.

There are unfortunately existing specs which don't pass in valid data
for building out the item_requests, so here we make it an explicit trait
that must be requested.

[#4399]
@awwaiid
Copy link
Collaborator Author

awwaiid commented Jul 14, 2024

Here is a screenshot. It does pluralization and such.
image

Comment on lines +34 to +35
trait :with_item_requests do
after(:build) do |request|
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I ended up making this an explicit trait so that it doesn't interfere with existing specs that don't pass in valid data.

@awwaiid awwaiid requested review from dorner and cielf July 14, 2024 20:38
@awwaiid awwaiid changed the title Partner req units display 4399 Partner request units display (packs-4) #4399 Jul 14, 2024
@awwaiid awwaiid linked an issue Jul 14, 2024 that may be closed by this pull request
2 tasks
@cielf
Copy link
Collaborator

cielf commented Jul 15, 2024

It is, alas, a tad hard to properly test this one out until packs-3 is also in place.

Copy link
Collaborator

@dorner dorner left a comment

Choose a reason for hiding this comment

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

One silly question. :)


trait :fulfilled do
Copy link
Collaborator

Choose a reason for hiding this comment

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

If they didn't work, can we just delete them?

@awwaiid awwaiid added this to the Request Units (Packs) milestone Jul 21, 2024
@awwaiid awwaiid requested a review from dorner July 21, 2024 14:21
@dorner
Copy link
Collaborator

dorner commented Jul 26, 2024

@cielf any issue merging this? It seems really safe since the only behavior change is locked behind the feature flag.

@cielf cielf merged commit 3d073eb into main Jul 27, 2024
38 checks passed
@cielf cielf deleted the partner-req-units-display-4399 branch July 27, 2024 02:43
Copy link
Contributor

@awwaiid: Your PR Partner request units display (packs-4) #4399 is part of today's Human Essentials production release: 2024.08.11.
Thank you very much for your contribution!

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.

[PACKS] # 4 Show the custom units when displaying the request to the partner
3 participants