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

remove parent tag caching #375

Merged
merged 3 commits into from Dec 7, 2021

Conversation

kulgan
Copy link
Contributor

@kulgan kulgan commented Dec 3, 2021

Issue: tag computation relies on the previously computed tag of the parent node, sometimes this value can be wrong even when trying to fix the generated tag, sometimes the old tag (wrong tag) is used instead of the newly fixed tags. This happened a lot during export of the v36 nodes.

Fix: remove the use of the parent's tag and force a complete recompute every time.

@@ -20,6 +28,7 @@ def __generate_hash(seed, label):
return six.ensure_str(str(uuid.uuid5(namespace, name)))


@lru_cache(maxsize=None)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

caches based on hash, see impl

Copy link

@sxwcasd sxwcasd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the refresh works as expected

@kulgan kulgan merged commit 5c08012 into develop Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants