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

Like with exact=True returns empty results #12

Open
virtualengineer opened this issue Jan 16, 2020 · 1 comment
Open

Like with exact=True returns empty results #12

virtualengineer opened this issue Jan 16, 2020 · 1 comment

Comments

@virtualengineer
Copy link

I have a condition where doing a transform search for all children with like filtering returns an empty result if I try to do an exact match.

pseudo hierarchy

-my_model:root
  -- my_model:my_control_offset
      -- my_model:my_control_space
          --my_model:my_control_driven
             --my_model:my_control

doing: using(my_model:root).get(AllChildren).short().like('my_control')
results in: my_control, my_control_driven, my_control_space, my_control_offset

doing: using(my_model:root).get(AllChildren).short().like('my_control', exact=True)
results in: nothing

I think the correct behavior should be a returned result of: my_control
Please let me know if this is a bug or if I am not using the api correctly.

@theodox
Copy link
Owner

theodox commented Dec 23, 2024

Don't know how I missed this -- I guess it was the pandemic :(

I'm not sure if this is exactly a "bug", I believe it's because the exact test is very dumb, and thus it doesn't like namespaces. Did it work if you tried .like('mymodel:my_control', exact=True)?

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

No branches or pull requests

2 participants