Skip to content

fix: hide actions and notifications from deleted workspaces #12563

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

aslilac
Copy link
Member

@aslilac aslilac commented Mar 12, 2024

Closes #12561

Don't bother showing the action buttons et al if the workspace has been deleted

@aslilac aslilac requested review from a team, code-asher and Parkreiner and removed request for a team and code-asher March 12, 2024 22:15
Copy link
Member

@Parkreiner Parkreiner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Left a comment, but I think the code is safe to merge as-is

Comment on lines +109 to +111
const isImmutable =
workspace.latest_build.status === "deleted" ||
workspace.latest_build.status === "deleting";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick shout: we do still have logic in the WorkspacesActions component to handle the deletion statuses. I'm not sure if you saw that, but I actually think we should keep them, as a form of double-bookkeeping. Not sure what you think, though

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, let's go with that. :) (it probably is helpful to make sure we don't regress in a big way)

@aslilac aslilac merged commit efba477 into main Mar 13, 2024
@aslilac aslilac deleted the hide-actions-on-deleted-workspaces branch March 13, 2024 17:43
@github-actions github-actions bot locked and limited conversation to collaborators Mar 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

remove the duplication on the workspace page when a workspace is deleted
3 participants