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

Change typ to 'service' for Service/Requests page #977

Merged

Conversation

jzigmund
Copy link

Distinguish 'Services/Requests' action and don't display pagination for the Request lists

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

@jzigmund
Copy link
Author

@miq-bot add_label bug

when /ae/ then "AutomateRequest"
when /system/ then "MiqProvisionConfiguredSystemRequest"
when /host/ then "MiqHostProvisionRequest"
when /vm|service/ then "MiqProvisionRequest"
Copy link
Contributor

Choose a reason for hiding this comment

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

We should not be using regex here, just plain strings. This code needs to be working for exact
@layout values and we need to know what the actual matching values are for potential future
refactoring efforts.

Choose a reason for hiding this comment

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

Hard to grep for regexp too.

Copy link
Author

Choose a reason for hiding this comment

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

ok, sounds reasonable, going to revise them

@jzigmund jzigmund force-pushed the bz1436316-remove_paging_from_requests branch from 82c7eec to 34eda33 Compare April 19, 2017 08:02
@miq-bot
Copy link
Member

miq-bot commented Apr 19, 2017

Checked commit jzigmund@34eda33 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
3 files checked, 0 offenses detected
Everything looks good. 👍

@mzazrivec mzazrivec added this to the Sprint 59 Ending Apr 24, 2017 milestone Apr 19, 2017
@mzazrivec mzazrivec merged commit 5e0f438 into ManageIQ:master Apr 19, 2017
simaishi pushed a commit that referenced this pull request Apr 19, 2017
…quests

Change typ to 'service' for Service/Requests page
(cherry picked from commit 5e0f438)
@simaishi
Copy link
Contributor

Fine backport details:

$ git log -1
commit b21065ad80f3dcd8e2ce49a0b20369a9814de03c
Author: Milan Zázrivec <mzazrivec@redhat.com>
Date:   Wed Apr 19 13:22:53 2017 +0200

    Merge pull request #977 from jzigmund/bz1436316-remove_paging_from_requests
    
    Change typ to 'service' for Service/Requests page
    (cherry picked from commit 5e0f43855bcd42f9e723a2aff6a76b425bf86fee)

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.

None yet

6 participants