MobilityLabs / pdredesign-server

PDredesign client and server
http://pdredesign.org
MIT License
0 stars 1 forks source link

Add new CRUD resource for tool members #402

Closed MakotoTheKnight closed 7 years ago

MakotoTheKnight commented 8 years ago

We will rely on this particular endpoint to handle any updates or changes needed to revise the membership status of anyone attached to an assessment, inventory, or analysis.

Business rules:

MakotoTheKnight commented 8 years ago

Scope expansion: We intend to remove the Participants table after this is all said and done (final task in the epic); that noted, we need to migrate all Responses over from the Participant type to use the new ToolMember type. In addition to this, we will also migrate over the InventoryResponse model to use Response instead.

MakotoTheKnight commented 7 years ago

After investigating, it turns out that we don't make any uses of the InventoryResponse table anywhere in live code. We can safely disregard it and capture its removal in another task.

MakotoTheKnight commented 7 years ago

After some more digging, it seems like we don't (luckily) have any responses created by facilitators with semi-live data. We'll move forward with this assumption, but let's keep it in the back of our mind.

MakotoTheKnight commented 7 years ago

Scope expansion: Due to the way that permissions are granted on tools, we're going to need to make the model AccessRequest polymorphic to take this into account. While no data in production exists for the ancillary models InventoryAccessRequest and AnalysisAccessRequest, we will author a full migration path for all three of these models regardless.