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

Prevent node_set materialization for @libary with integers #276

Merged
merged 1 commit into from
Jun 23, 2023

Conversation

mgeplf
Copy link
Contributor

@mgeplf mgeplf commented Jun 16, 2023

  • If a node_set contains something like:
    {"layer1": {"layer": 1} ... # < note it's 1 and not a string "1"

this would previously resolved if "layer" was a set of @library strings,
because it would have matched the numeric 1 to the enum-like values stored
in the /nodes/.../0/layer and not /nodes/.../0/@library/layer

* If a node_set contains something like:
    {"layer1": {"layer": 1} ...  # < note it's 1 and not a string "1"
  this would previously resolved if "layer" was a set of @library strings,
  because it would have matched the numeric 1 to the enum-like values
  stored in the /nodes/.../0/layer and not /nodes/.../0/@library/layer
@mgeplf mgeplf requested a review from WeinaJi June 16, 2023 14:22
@mgeplf
Copy link
Contributor Author

mgeplf commented Jun 23, 2023

@WeinaJi can you have a look at this? I'd like to get it merged before we do a release.

Copy link
Collaborator

@WeinaJi WeinaJi left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@mgeplf mgeplf merged commit e081b6c into master Jun 23, 2023
@mgeplf mgeplf deleted the prevent-library-match-with-numbers branch June 23, 2023 08:37
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