-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Ability to clear The Graph data #121
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.
LGTM!
fi | ||
} | ||
|
||
clear_data_if_necessary |
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.
That looks right to me!
if [[ -n "$CLEAR_DATA_KEY" && ! -f "$CLEAR_DATA_FILE_PATH" ]]; then | ||
echo "Detected change in CLEAR_DATA_KEY. Purging data." | ||
rm -rf ${DATA_DIRECTORY}/* | ||
rm -rf ${DATA_DIRECTORY}/.clear_data_key_* |
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.
Always forget that *
doesn't apply to dot files!
* abi.encodePacked * rm _malloc
…m-v1.3.0 Merge upstream v1.3.0
…nflicts fix: superweth permit2 conflicts
* SGT: add batchDepositForAll * follow op coding convention * address comment
Description
Adding ability to clear The Graph data by setting CLEAR_DATA_KEY environment variable.
Metadata
Fixes
Contributing Agreement