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

[core] Include the node's type in the UID computation #2038

Merged
merged 1 commit into from
Jun 16, 2023

Conversation

cbentejac
Copy link
Contributor

Description

This PR adds the node's type in the tuple of each attribute that is used to compute its UID. The goal is to prevent getting the same UID for two nodes which are of different types but have an identical list of attributes.

⚠️ Warning: This will invalidate all the existing cached computations as all the nodes' UIDs will change.

@cbentejac cbentejac requested review from fabiencastan and mugulmd June 7, 2023 13:15
@cbentejac cbentejac self-assigned this Jun 7, 2023
@cbentejac cbentejac added this to the Meshroom 2023.2.0 milestone Jun 7, 2023
@cbentejac cbentejac changed the title [core] Add the node's type in the UID computation [core] Include the node's type in the UID computation Jun 7, 2023
@mugulmd mugulmd added the invalidate:graph Invalidates the cache of the entire computation graph. label Jun 9, 2023
This prevents getting the same UID for two nodes which are of different
types but have an identical list of attributes.
@cbentejac cbentejac force-pushed the fix/nodeTypeInUid branch from ff5cffd to 55d30ee Compare June 13, 2023 13:00
@mugulmd mugulmd merged commit b6e2239 into develop Jun 16, 2023
@mugulmd mugulmd deleted the fix/nodeTypeInUid branch June 16, 2023 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix invalidate:graph Invalidates the cache of the entire computation graph.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants