Skip to content

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

Merged
JackWilb merged 5 commits intomainfrom
starred-workspaces-sessions
Aug 10, 2023
Merged

Add starred field to Sessions and Workspaces, starred sessions are now readonly (state PUT does not work on them)#160
JackWilb merged 5 commits intomainfrom
starred-workspaces-sessions

Conversation

@JackWilb
Copy link
Copy Markdown
Member

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:

@JackWilb JackWilb changed the title Add starred field to Sessions and Workspaces, starred sessions are now readonly (state PUT does not work) Add starred field to Sessions and Workspaces, starred sessions are now readonly (state PUT does not work on them) Aug 10, 2023
@JackWilb JackWilb marked this pull request as ready for review August 10, 2023 22:10
@JackWilb JackWilb merged commit c2ab9f4 into main Aug 10, 2023
@JackWilb JackWilb deleted the starred-workspaces-sessions branch August 10, 2023 22:17
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

Successfully merging this pull request may close these issues.

1 participant