challenge-api icon indicating copy to clipboard operation
challenge-api copied to clipboard

Add support for isActive on resources

Open ThomasKranitsas opened this issue 4 years ago • 0 comments

  1. Update the challenge resource processor to listen for challenge updated and update the resource to set an active flag to the same value as the challenge active status. Basically, if a challenge is active, the resource is active..
  2. Add to GET /resources the ability to filter by Active (null (no filter - both states), false, true)
  3. Add to the query on Resources to listChallengesByMember to to filter by Active, (null (no filter - both states), false, true)
  4. Create a migration in resources to update that resource active flag based on challenge id

cc @rootelement

ThomasKranitsas avatar Jul 29 '20 15:07 ThomasKranitsas