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

Use constant to store ServiceResource status. #17256

Merged

Conversation

lfu
Copy link
Member

@lfu lfu commented Apr 5, 2018

These constants would be accessed from other classes.

Required by #17251.

@miq-bot assign @gmcculloug
@miq-bot add_label enhancement, transformation

cc @bzwei

STATUS_APPROVED = 'Approved'.freeze
STATUS_FAILED = 'Failed'.freeze
STATUS_COMPLETED = 'Completed'.freeze
STATUS_ACTIVE = 'Active'.freeze
Copy link
Member

Choose a reason for hiding this comment

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

Please sort this list alphabetically.

These constants would be accessed from other classes.
@lfu lfu force-pushed the contants_for_service_resource_status branch from 76cbd18 to 82253ef Compare April 5, 2018 20:29
@miq-bot
Copy link
Member

miq-bot commented Apr 5, 2018

Checked commit lfu@82253ef with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
7 files checked, 0 offenses detected
Everything looks fine. ⭐

@gmcculloug gmcculloug merged commit 2471626 into ManageIQ:master Apr 5, 2018
@gmcculloug gmcculloug added this to the Sprint 83 Ending Apr 9, 2018 milestone Apr 5, 2018
simaishi pushed a commit that referenced this pull request May 30, 2018
Use constant to store ServiceResource status.
(cherry picked from commit 2471626)
@simaishi
Copy link
Contributor

Gaprindashvili backport details:

$ git log -1
commit f8b8856468b003dfbc8616de43d28939781f58cd
Author: Greg McCullough <gmccullo@redhat.com>
Date:   Thu Apr 5 17:46:09 2018 -0400

    Merge pull request #17256 from lfu/contants_for_service_resource_status
    
    Use constant to store ServiceResource status.
    (cherry picked from commit 24716261b04c23738d73b492d07e1c5c0ef2fcb5)

@lfu lfu deleted the contants_for_service_resource_status branch September 29, 2018 14:30
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