-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Allow refresh tokens to use sf alias * Safer delete records script
- Loading branch information
1 parent
cb2d939
commit 4df4209
Showing
3 changed files
with
123 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
set -e -o pipefail | ||
|
||
cd "$(dirname "$0")/.." | ||
|
||
if [[ ! $(npm list --location=global | grep apex-log-filter) ]]; then | ||
echo "Install apex-log-filters:" | ||
echo "npm install -g apex-log-filter" | ||
exit 1 | ||
fi | ||
|
||
if [ -z "$1" ]; then | ||
echo "No alias specified" | ||
exit 1 | ||
else | ||
salesforceAlias=$1 | ||
fi | ||
|
||
echo "Using alias $salesforceAlias" | ||
|
||
while sleep 1; do | ||
echo -e "\n\n=== Deleting Apex Data ===\n\n\n" | ||
sfdx force:apex:execute \ | ||
-f bin/delete_test_record_data.apex \ | ||
-u $salesforceAlias | \ | ||
# https://github.com/amtrack/apex-log-filter/tree/4aa661e9e5b99175ecc9d31b5be228f3b7619924 | ||
npx apex-log-filter | ||
done |