-
Notifications
You must be signed in to change notification settings - Fork 13
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
Wr/hard delete #959
Wr/hard delete #959
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used the same language as in the MD docs.
messages/bulkv2.delete.md
Outdated
@@ -16,4 +16,12 @@ When you execute this command, it starts a job, displays the ID, and then immedi | |||
|
|||
- Bulk delete records from a custom object in an org with alias my-scratch and wait 5 minutes for the command to complete: | |||
|
|||
<%= config.bin %> <%= command.id %> --sobject MyObject__c --file files/delete.csv --wait 5 --target-org my-scratch | |||
<%= config.bin %> <%= command.id %> --sobject MyObject\_\_c --file files/delete.csv --wait 5 --target-org my-scratch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<%= config.bin %> <%= command.id %> --sobject MyObject\_\_c --file files/delete.csv --wait 5 --target-org my-scratch | |
<%= config.bin %> <%= command.id %> --sobject MyObject__c --file files/delete.csv --wait 5 --target-org my-scratch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@WillieRuemmele , please ensure that this doesn't get changed again -- there's something in an IDE that automatically switches "__c" to "\_\_c" so we need to be vigilant :)
messages/bulkv2.delete.md
Outdated
|
||
# flags.hard-delete.summary | ||
|
||
summary for Juliet here :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
summary for Juliet here :) | |
Mark the records as immediately eligible for deletion by your org. If you don't specify this flag, the deleted records go into the Recycle Bin. |
messages/bulkv2.delete.md
Outdated
|
||
# flags.hard-delete.description | ||
|
||
description here :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description here :) | |
You must have the "Bulk API Hard Delete" system permission to use this flag. The permission is disabled by default and can be enabled only by a system administrator. |
QA notes: setupdreamhouse project with this csv of accounts to insert:
then generate a csv for deletion running:
used default sysadmin profile with no hard-delete perms and a clone of the same profile with hard-delete enabled and a new user with that profile assigned. ✅
✅
🟡 can resume after a timeout but
https://github.com/salesforcecli/plugin-data/blob/main/messages/batcher.md#timeout EDIT |
What does this PR do?
adds a
--hard-delete
flag todata:delete:bulk
from discussion forcedotcom/cli#2904adds
data:delete:bulk
UTs, NUTs seemed too hard to setup given user permission requirementsmassages server error when user isn't permitted to help self-diagnose
What issues does this PR fix or reference?
@W-15903600@