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

Allow operator characters on the RHS of filter #15534

Merged

Conversation

imtayadeway
Copy link
Contributor

Fixes an issue where filters with operator characters on the RHS would
return 400s. This is because it parses the operator as the first one
found anywhere in the filter. By taking a more LALR-ish approach, we
can avoid this problem by parsing it as the first operator found in
the string.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1365013

@miq-bot add-label bug, api
@miq-bot assign @abellotti

Fixes an issue where filters with operator characters on the RHS would
return 400s. This is because it parses the operator as the first one
found anywhere in the filter. By taking a more LALR-ish approach, we
can avoid this problem by parsing it as the first operator found in
the string.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1365013
@miq-bot
Copy link
Member

miq-bot commented Jul 11, 2017

Checked commit imtayadeway@1a21138 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
2 files checked, 0 offenses detected
Everything looks fine. ⭐

@imtayadeway
Copy link
Contributor Author

@miq-bot assign @gtanzillo

@miq-bot miq-bot assigned gtanzillo and unassigned abellotti Jul 13, 2017
@imtayadeway
Copy link
Contributor Author

@miq-bot assign @abellotti

@miq-bot miq-bot assigned abellotti and unassigned gtanzillo Jul 25, 2017
@abellotti
Copy link
Member

LGTM !! Thanks @imtayadeway 🎵

@abellotti abellotti merged commit d9cd967 into ManageIQ:master Aug 3, 2017
@abellotti abellotti added this to the Sprint 66 Ending Aug 7, 2017 milestone Aug 3, 2017
@simaishi
Copy link
Contributor

simaishi commented Aug 8, 2017

@imtayadeway @abellotti can/should this be backported to Fine/Euwe branch?

@imtayadeway
Copy link
Contributor Author

@simaishi it should be possible to backport this to Fine, but can't be easily backported to Euwe

simaishi pushed a commit that referenced this pull request Aug 14, 2017
…n-rhs

Allow operator characters on the RHS of filter
(cherry picked from commit d9cd967)

https://bugzilla.redhat.com/show_bug.cgi?id=1481296
@simaishi
Copy link
Contributor

Fine backport details:

$ git log -1
commit f5a310f483823b1862176d67f3f318e131d5ae09
Author: Alberto Bellotti <abellotti@users.noreply.github.com>
Date:   Thu Aug 3 16:27:46 2017 -0400

    Merge pull request #15534 from imtayadeway/bug/api-filter-operators-on-rhs
    
    Allow operator characters on the RHS of filter
    (cherry picked from commit d9cd967808d3ae037937a1be3a342b7a82406885)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1481296

d-m-u pushed a commit to d-m-u/manageiq that referenced this pull request Jun 6, 2018
…rators-on-rhs

Allow operator characters on the RHS of filter
(cherry picked from commit d9cd967)

https://bugzilla.redhat.com/show_bug.cgi?id=1481296
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants