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

fix: Allow deleting workflows without any crawls #2285

Merged
merged 3 commits into from
Jan 9, 2025

Conversation

SuaYoo
Copy link
Member

@SuaYoo SuaYoo commented Jan 8, 2025

Fixes #2122

Changes

  • Uses crawl count to determine whether workflow can be deleted instead of last crawl ID
  • Display delete confirmation dialog when trying to delete a workflow

Manual testing

  1. Log in as crawler
  2. Go to workflow with crawls
  3. Delete workflow crawls until there are none. Verify "Delete Workflow" item is shown in the action menu
  4. Click "Delete Workflow". Verify confirmation dialog is shown
  5. Confirm deletion. Verify workflow is removed
  6. Repeat 4-5 for deleteable workflow in list

Screenshots

Page Image/video
Workflow Detail Screenshot 2025-01-07 at 4 00 54 PM

: this.renderEmptyState()
: this.renderLoading(),
() => html`
<div class="pb-10">
Copy link
Member Author

Choose a reason for hiding this comment

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

Added some spacing to account for toast messages.

@SuaYoo SuaYoo marked this pull request as ready for review January 8, 2025 00:20
@SuaYoo SuaYoo requested review from Shrinks99 and emma-sg January 8, 2025 00:21
Copy link
Member

@Shrinks99 Shrinks99 left a comment

Choose a reason for hiding this comment

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

Wahoo! Works great!

@SuaYoo SuaYoo merged commit 6a5e070 into main Jan 9, 2025
5 checks passed
@SuaYoo SuaYoo deleted the frontend-fix-workflow-delete branch January 9, 2025 00:02
pertsevds pushed a commit to pertsevds/browsertrix that referenced this pull request Jan 9, 2025
- Uses crawl count to determine whether workflow can be deleted instead
of last crawl ID
- Display delete confirmation dialog when trying to delete a workflow
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.

[Bug]: No delete button on failed or successful workflow
3 participants