Skip to content

Add flows bulk actions#2263

Open
rmnsnpk wants to merge 16 commits into
openops-cloud:mainfrom
rmnsnpk:feat/add-flows-bulk-actions
Open

Add flows bulk actions#2263
rmnsnpk wants to merge 16 commits into
openops-cloud:mainfrom
rmnsnpk:feat/add-flows-bulk-actions

Conversation

@rmnsnpk
Copy link
Copy Markdown
Contributor

@rmnsnpk rmnsnpk commented May 5, 2026

it is possible to delete the workflow in case it's enabled, so I think we should keep this behaviour for bulk operations

image

rmnsnpk and others added 14 commits April 15, 2026 17:17
…ctions

Co-authored-by: Cursor <cursoragent@cursor.com>

# Conflicts:
#	packages/react-ui/src/app/routes/flows/index.tsx
#	packages/server/api/src/app/app-connection/app-connection-service/app-connection-service.ts
#	packages/server/api/test/unit/app-connection/app-connection-service.test.ts
#	packages/ui-components/src/ui/data-table.tsx
… deleting, and exporting selected flows. Refactor related functions for improved readability and maintainability.
@rmnsnpk rmnsnpk marked this pull request as ready for review May 5, 2026 18:12
Comment on lines +456 to +470
async deleteMany({
flowIds,
projectId,
userId,
}: DeleteManyParams): Promise<void> {
await Promise.all(
flowIds.map((id) =>
this.delete({
id,
projectId,
userId,
}),
),
);
},
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

would need validation:

  • load all requested flows for the project first, verify the count matches the requested IDs (this checks the flows are in the respective project)
  • no flow is internal (function could be accessed from other places)
  • no flow is enabled (toast to explain in the UI)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We allow user to delete single workflow when it's enabled. Are you sure we want to disable it for bulk?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would add it for sure to prevent mistakes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure, done

image

[onTableRefresh, resetSelectedRows],
);

const moveSelectedFlows = useCallback(
Copy link
Copy Markdown
Contributor

@alexandrudanpop alexandrudanpop May 6, 2026

Choose a reason for hiding this comment

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

move to Uncategoriezed does not work, I think we could remove that option (it does not exist also on flow level in the 3dots menu)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

thanks! it's fixed

@rmnsnpk rmnsnpk requested a review from alexandrudanpop May 7, 2026 12:21
… enabled workflows. Add corresponding assertions in the flow service and enhance the FlowsPage UI with tooltips for user guidance.
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 9, 2026

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.

2 participants