tdm-calculator
tdm-calculator copied to clipboard
Dev: Bug: Share snapshot allows sharing with same email more than once
Describe the bug
Share snapshot is allowing users to add the same email more than once.
Steps to Reproduce
-
- Login as Admin
-
- Go to My Projects
-
- Filter by Snapshots
-
- Filter by projects owned by admin
-
- Click on kebab
-
- Click on Share Snapshot
-
- Add the same email twice
-
- See error: multiple emails are added (see screenshot
Example of error including Project where you can see problem now
- Project Name: snapshot
- Project ID: 00000-00799
Expected Result
Would only allow email to be added once. Give an error message if they try to add it twice
Snapshot is already shared with {email}
Device Configuration
- Device: Macbook pro
- OS version: not relevant
- Browser: Chrome
- Browser version: not relevant
- other: there was a problem with the application today, it was super slow. So if the current process relies on seeing whats in the database, that might have been what caused it to allow me to add so many of the same email addresses.
Action Items
- [ ] Fix bug.
- [ ] Review with development lead.
- [ ] Review with product, development, and research teams. Update if needed based on feedback.
- [ ] Once finalized, add a slide to the staging deck (see resources)
- [ ] Get Stakeholder sign-off via the stakeholder meeting slide deck.
Resources/Instructions
Staging and Release decks
- Staging Deck
- Release Deck
- [2025-MM-DD Release deck, slide ISSUE NUMBER]
- Already implemented under Issue #2600, PR #2652
-Should be closed as a duplicate issue.
Duplicate of #2600