Skip to content
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

ui: always delete workspace when deleting workflow #281

Merged
merged 2 commits into from
Jun 14, 2022

Conversation

mdonadoni
Copy link
Member

Closes #280

How to test:

  1. Run some demo workflows
  2. Delete one of them
  3. Open the details page of the deleted workflow

Expected result: The workspace is deleted together with the workflow and the workflow duration is shown in both the workflow list and in the details page

Copy link
Member

@audrium audrium left a comment

Choose a reason for hiding this comment

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

Works nicely!

@@ -92,7 +92,7 @@ export default function WorkflowActionsPopup({ workflow, className }) {
content: "Free up disk",
Copy link
Member

Choose a reason for hiding this comment

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

Technically we shouldn't need this option any more, but it might be useful to keep it for a while for users who have previously deleted the workflow without the workspace

/>
</>
<Message icon warning>
<Icon name="warning sign" />
Copy link
Member

Choose a reason for hiding this comment

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

Minor: for quota notifications warning message we used warning circle icon, it would be good to keep the same one for consistency.
Actually it would be even better to have a component similar to Notifications which would simply display these kind of messages and select an appropriate icon depending if it's a warning, info or an error. In profile page we use it exactly for this purpose, but it's not ideal since it have an additional logic to display the messages from getNotification selector. I think it would be nice to decouple it and use a dumb notification component everywhere in these kind of cases (something definitely for later)

Copy link
Member Author

Choose a reason for hiding this comment

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

Agree! I will open an issue about this

Copy link
Member Author

Choose a reason for hiding this comment

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

Related issue: #282

@audrium audrium merged commit 5b8b5f9 into reanahub:master Jun 14, 2022
@mdonadoni mdonadoni deleted the issue-280 branch October 13, 2022 14:07
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.

ui: when workflow is deleted, delete workspaces by default
2 participants