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

Rounds missing from my-studies API endpoint for contributors #16177

Closed
fitztrev opened this issue Oct 6, 2024 · 0 comments
Closed

Rounds missing from my-studies API endpoint for contributors #16177

fitztrev opened this issue Oct 6, 2024 · 0 comments

Comments

@fitztrev
Copy link
Member

fitztrev commented Oct 6, 2024

Steps to reproduce

2 user accounts used: bobby (the owner) and mary (a contributor)

  1. As bobby
    1. Create a broadcast with 2 rounds:

      http -A bearer -a lip_bobby POST http://localhost:8080/broadcast/new name=Testing
      TOUR_ID=keWiXSoM
      http -A bearer -a lip_bobby POST http://localhost:8080/broadcast/$TOUR_ID/new name=round1
      http -A bearer -a lip_bobby POST http://localhost:8080/broadcast/$TOUR_ID/new name=round2
    2. In the UI, add mary as a member/contributor

  2. As mary
    1. Get your rounds
      http -A bearer -a lip_mary http://localhost:8080/api/broadcast/my-rounds
      One of the 2 rounds is missing

In the mongodb study collection, mary is added a member but is missing from the uids of the other document. Manually adding mary to uids causes the round to be included in the my-rounds response.

@ornicar ornicar closed this as completed in 969ea01 Oct 6, 2024
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

No branches or pull requests

1 participant