human-essentials icon indicating copy to clipboard operation
human-essentials copied to clipboard

Remove product drive delete if any donations for product drive

Open cielf opened this issue 1 year ago • 13 comments

Summary

Remove product drive delete capability if there are any donations for the product drive.

Why?

If someone deletes a product drive with donations attached, it breaks the donations page. It appears no one ever has used this function.

Details

The button in question can be seen by signing in as [email protected], then clicking "Community', then "Product Drives", then clicking "View" on one of the product drives.

Criteria for completion

  • [ ] removal of product drive delete, as described above
  • [ ] automated tests to confirm

cielf avatar Oct 27 '24 14:10 cielf

I'd like to work on this issue

jorgecoutinhobr avatar Nov 01 '24 03:11 jorgecoutinhobr

Please do!

cielf avatar Nov 01 '24 15:11 cielf

This issue is marked as stale due to no activity within 30 days. If no further activity is detected within 7 days, it will be unassigned.

github-actions[bot] avatar Dec 02 '24 00:12 github-actions[bot]

Automatically unassigned after 7 days of inactivity.

github-actions[bot] avatar Dec 09 '24 00:12 github-actions[bot]

There hasn't been any activity on the PR for this for a month, so we consider it open for someone to pick up and finish.

cielf avatar Dec 09 '24 00:12 cielf

Hello, im open to finishing the PR if that is alright?

MichaScant avatar Dec 13 '24 20:12 MichaScant

Yup!

cielf avatar Dec 14 '24 01:12 cielf

Hi, sorry this took so long, I made the changes but cannot figure out how to push to an existing branch in someone else's fork, should I create a new PR?

MichaScant avatar Jan 03 '25 19:01 MichaScant

That's a valid way to do it.

cielf avatar Jan 05 '25 18:01 cielf

This issue is marked as stale due to no activity within 30 days. If no further activity is detected within 7 days, it will be unassigned.

github-actions[bot] avatar Feb 05 '25 00:02 github-actions[bot]

Automatically unassigned after 7 days of inactivity.

github-actions[bot] avatar Feb 13 '25 00:02 github-actions[bot]

This has a PR in flight -- I've asked for a re-review of it.

cielf avatar Feb 13 '25 01:02 cielf

If someone would take that PR the last mile, that'd be great!

cielf avatar Mar 07 '25 18:03 cielf

I'd like to work on this issue.

hagiya0121 avatar Jul 27 '25 02:07 hagiya0121

Please do!

cielf avatar Jul 27 '25 02:07 cielf

Hi, quick question! I saw that the current PR uses the ProductDriveDestroyService to prevent deletion of ProductDrives with donations. Personally, I think using the model association option dependent: :restrict_with_error would be a better fit — it’s simpler and easier to maintain. What do you think?

hagiya0121 avatar Jul 27 '25 02:07 hagiya0121

Passing that one to @dorner

cielf avatar Jul 27 '25 17:07 cielf

Hi @dorner, just following up to see what you think. Thanks!

hagiya0121 avatar Jul 30 '25 02:07 hagiya0121

@hagiya0121 I'm good with that!

dorner avatar Aug 01 '25 17:08 dorner