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

Added a way to list the product drive participants for a product drive #3762

Merged

Conversation

patelkrunal31
Copy link
Collaborator

Resolves #3668

Description

  • Updated logic to include participants as part of product_drive
  • Updated participant model to count items donated for specific product_drive

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

  • Added relevant tests to make sure correct number of items

Screenshots

Screenshot 2023-07-21 at 5 53 44 PM

Co-authored-by: Scott Steele <scottlsteele@gmail.com>
Copy link
Collaborator

@scooter-dangle scooter-dangle left a comment

Choose a reason for hiding this comment

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

Left a couple comments, aside from which this looks good. Being a non Rails expert myself, maybe @awwaiid could give a quick skim for the Rails-idiomaticity?

patelkrunal31 and others added 2 commits August 6, 2023 12:20
Co-authored-by: Scott Steele <scottlsteele@gmail.com>
Co-authored-by: Scott Steele <scottlsteele@gmail.com>
@patelkrunal31
Copy link
Collaborator Author

Left a couple comments, aside from which this looks good. Being a non Rails expert myself, maybe @awwaiid could give a quick skim for the Rails-idiomaticity?

I have addressed your feedback and it is ready for rereview.

Copy link
Collaborator

@cielf cielf left a comment

Choose a reason for hiding this comment

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

LGTM as far as trying out the functionality goes. Fine with it going forward if it passes technical review. @awwaiid ?

app/models/product_drive_participant.rb Show resolved Hide resolved
@@ -100,3 +100,48 @@
</div>
</div>
</section>

<section class="content">
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we add a check in the request spec for this to see that the right information is being displayed? If there isn't a request spec, we should create one :)

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 have added a test in my latest commit.

@dorner dorner merged commit d16d69d into rubyforgood:main Aug 18, 2023
12 checks passed
@dorner
Copy link
Collaborator

dorner commented Aug 18, 2023

Thanks for the contribution!

@patelkrunal31 patelkrunal31 deleted the 3668-list-product-drive-participants branch August 22, 2023 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants