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

Fixed syntax with orderby in RSS Feed YAML files #16493

Merged
merged 1 commit into from
Nov 22, 2017

Conversation

gtanzillo
Copy link
Member

@gtanzillo gtanzillo commented Nov 17, 2017

The issue was causing the orderby column and direction to be pulled in as a single symbol instead of a hash causing a SQL error while generating the feed.

SQL before -
SELECT "event_streams".* FROM "event_streams" WHERE "event_streams"."type" IN ('EmsEvent') AND (event_type = 'VmPoweredOffEvent') ORDER BY "event_streams"."created_on :desc" ASC LIMIT $1

After -
SELECT "event_streams".* FROM "event_streams" WHERE "event_streams"."type" IN ('EmsEvent') AND (event_type = 'VmPoweredOffEvent') ORDER BY "event_streams"."created_on" DESC LIMIT $1

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

The issue was causing the orderby column and direction to be pulled in as a single symbol in stead of a hash
causing a SQL error while generating the feed.

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

miq-bot commented Nov 17, 2017

Checked commit gtanzillo@9b39936 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 1 offense detected

**

  • 💣 💥 🔥 🚒 - Linter/Yaml - missing config files

Copy link
Contributor

@imtayadeway imtayadeway left a comment

Choose a reason for hiding this comment

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

LGTM!

@imtayadeway imtayadeway added this to the Sprint 74 Ending Nov 27, 2017 milestone Nov 22, 2017
@imtayadeway imtayadeway merged commit 5522a1e into ManageIQ:master Nov 22, 2017
simaishi pushed a commit that referenced this pull request Nov 27, 2017
Fixed syntax with `orderby` in RSS Feed YAML files
(cherry picked from commit 5522a1e)

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

Gaprindashvili backport details:

$ git log -1
commit 585e4ce4c9251a8ca5da443ff865b94fc863cade
Author: Tim Wade <imtayadeway@users.noreply.github.com>
Date:   Wed Nov 22 12:03:37 2017 -0800

    Merge pull request #16493 from gtanzillo/rss-yaml-syntax
    
    Fixed syntax with `orderby` in RSS Feed YAML files
    (cherry picked from commit 5522a1eddb93cc6065efea442adfa7d0a16fc264)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1517826

simaishi pushed a commit that referenced this pull request Feb 7, 2018
Fixed syntax with `orderby` in RSS Feed YAML files
(cherry picked from commit 5522a1e)

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

simaishi commented Feb 7, 2018

Fine backport details:

$ git log -1
commit 6a23bc9fa0b3493df815b9a3100821dd35992a65
Author: Tim Wade <imtayadeway@users.noreply.github.com>
Date:   Wed Nov 22 12:03:37 2017 -0800

    Merge pull request #16493 from gtanzillo/rss-yaml-syntax
    
    Fixed syntax with `orderby` in RSS Feed YAML files
    (cherry picked from commit 5522a1eddb93cc6065efea442adfa7d0a16fc264)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1542577

d-m-u pushed a commit to d-m-u/manageiq that referenced this pull request Jun 6, 2018
Fixed syntax with `orderby` in RSS Feed YAML files
(cherry picked from commit 5522a1e)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1542577
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.

4 participants