-
Notifications
You must be signed in to change notification settings - Fork 900
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
[WIP] Remove <value> nodes from MiqExpression#to_ruby #23104
base: master
Are you sure you want to change the base?
Conversation
@Fryguy When @jrafanie was working through performance for So I had started modifying Got a little bit of a wrench for the Question: Do you feel this is a good direction or too much of a tangent? |
This pull request has been automatically marked as stale because it has not been updated for at least 3 months. If these changes are still valid, please remove the |
This allows us to use `rec` in the expression and not have to post evaluate the to_ruby output Skipped over the associations and the find clauses Also skipped the hash contexts
8021a8c
to
e9d9f18
Compare
Some comments on commits kbrock/manageiq@12d5b91~...e9d9f18 spec/lib/miq_expression_spec.rb
|
Checked commits kbrock/manageiq@12d5b91~...e9d9f18 with ruby 3.1.5, rubocop 1.56.3, haml-lint 0.51.0, and yamllint app/models/condition.rb
lib/miq_expression.rb
|
Overview
For now, this is only changes simple expressions like
Host-name
and not those with an associationVm.host-name
.It also does not change
<find>
clauses.Looking for feedback on whether this is a good route. (I'm happy to merge code)
Before
After