multinet-app / multinet-api

Apache License 2.0
2 stars 2 forks source link

Add `starred` field to Sessions and Workspaces, `starred` sessions are now readonly (state PUT does not work on them) #160

Closed JackWilb closed 1 year ago

JackWilb commented 1 year ago

Does this PR close any open issues?

Helps towards multinet-app/multinet-client#285

Give a longer description of what this PR addresses and why it's needed

This adds the notion of starring to the workspaces and sessions. Starring is a boolean flag that can only be set through the admin panel and will allow us to move starred workspaces and sessions to the top of their respective areas. Starred sessions have a readonly state and will throw an error when a user tries to submit a PUT to the session state. This means we could ultimately change the session through the admin panel, but not the API route.

Provide pictures/videos of the behavior before and after these changes (optional)

N/A

Are there any additional TODOs before this PR is ready to go?

TODOs: