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

Bulkify flow deletions #416

Closed
przemekrcloudity opened this issue Sep 8, 2023 · 4 comments
Closed

Bulkify flow deletions #416

przemekrcloudity opened this issue Sep 8, 2023 · 4 comments

Comments

@przemekrcloudity
Copy link
Contributor

Today I used this plugin to delete obsolete flows and I had over 150 flow versions to delete and it took around 10 minutes to execute (still a LOT faster than manually deleting flows).
If I understand correctly, command for flow deletions calls sfdx to delete flow versions using tooling API.
Is there a way to bulkify this process? Tooling API supports bulk deletions (but to be fair I haven't used it for flow deletions so I can't guarantee it will work in this application). If this doesn't work maybe using composite API woudl be good idea?

@nvuillam
Copy link
Member

nvuillam commented Sep 8, 2023

When I created the command I tried to but didn't succeed with included SDK (I probably did not look for long)

I think we need to create a CSV then call the tooling bulk API, would you like to make a PR ? :)

@przemekrcloudity
Copy link
Contributor Author

@nvuillam I am sorry but due to my responsibilities, I don't have any free time :(, I am just sharing ideas for improvement

masaner added a commit to masaner/sfdx-hardis that referenced this issue May 21, 2024
masaner added a commit to masaner/sfdx-hardis that referenced this issue May 31, 2024
@masaner
Copy link
Contributor

masaner commented May 31, 2024

This issue is resolved in PR #617
@nvuillam We can mark this as closed if that PR gets approved.

nvuillam added a commit that referenced this issue May 31, 2024
* Bulkify flow deletions #416 - TOOLING DELETE ADDED

* Working Version - Bulk Tooling Delete

* refactoring and bug fixes

* Refactoring of Util Class

* Delete src/commands/hardis/org/purge/test.csv

Forgot to delete test file.

* Formatting & cleaning & changelog

---------

Co-authored-by: Nicolas Vuillamy <nicolas.vuillamy@gmail.com>
@nvuillam
Copy link
Member

nvuillam commented Jun 4, 2024

Solved by @masaner :) https://github.com/hardisgroupcom/sfdx-hardis/releases/tag/v4.37.5

@nvuillam nvuillam closed this as completed Jun 4, 2024
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

No branches or pull requests

3 participants