Skip to content

Ability to clear The Graph data#121

Merged
willmeister merged 3 commits intomasterfrom
YAS-336/PersistentClearableGraphNode
Apr 29, 2020
Merged

Ability to clear The Graph data#121
willmeister merged 3 commits intomasterfrom
YAS-336/PersistentClearableGraphNode

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
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
theochap pushed a commit that referenced this pull request Dec 10, 2025
* feat(derive): span batch validation

* feat(derive): span batch validity unit tests

* feat(derive): span batch unit tests with acceptance test

* fix(derive): unit tests

* fix(derive): add more unit tests

* feat(derive): span batch validity unit tests for txs
Zena-park added a commit to tokamak-network/optimism that referenced this pull request Dec 30, 2025
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