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

Ability to clear The Graph data #121

Merged
merged 3 commits into from
Apr 29, 2020

Conversation

willmeister
Copy link

Description

Adding ability to clear The Graph data by setting CLEAR_DATA_KEY environment variable.

Metadata

Fixes

Contributing Agreement

Copy link
Contributor

@karlfloersch karlfloersch left a 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
Copy link
Contributor

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_*
Copy link
Contributor

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!

@willmeister willmeister merged commit 95d9449 into master Apr 29, 2020
@willmeister willmeister deleted the YAS-336/PersistentClearableGraphNode branch April 29, 2020 20:30
snario pushed a commit that referenced this pull request Apr 14, 2021
* abi.encodePacked

* rm _malloc
bnoieh pushed a commit to bnoieh/optimism that referenced this pull request Apr 3, 2024
OptimismBot pushed a commit that referenced this pull request Oct 23, 2024
…nflicts

fix: superweth permit2 conflicts
zhiqiangxu pushed a commit to zhiqiangxu/optimism that referenced this pull request Dec 12, 2024
* SGT: add batchDepositForAll

* follow op coding convention

* address comment
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