topcoder-platform / work-manager

This is the frontend application for creating and managing challenges.
13 stars 48 forks source link

Tweak list of challenges for logged in user #1516

Closed jmgasper closed 1 year ago

jmgasper commented 1 year ago

REF: https://topcoder.atlassian.net/browse/PLAT-2423

Expected behavior

We changed the challenge list here to show createdBy challenges:
https://github.com/topcoder-platform/work-manager/issues/1493

This works for copilots, but not PMs / admins.

Instead

We are going to change this to:

  1. Remove the createdBy flag
  2. Add a new memberId= flag for the memberId of the logged in user, which will bring back challenges they are associated with, including challenges they created, but also challenges they may be associated with as an admin, PM, observer, manager, etc...

Example call, for my user ID, in prod:

https://api.topcoder.com/v5/challenges?memberId=151743

Actual behavior

Currently, we use the createdBy flag, which is too restrictive. This causes problems for PMs / admins who want to see challenges they manage, but didn't create