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

Availability Zone has only Management Events in Timelines #3154

Merged
merged 2 commits into from
Jan 3, 2018

Conversation

ZitaNemeckova
Copy link
Contributor

@ZitaNemeckova ZitaNemeckova commented Jan 3, 2018

As Policy Events are not yet implemented for Availability Zones this hides them until they will be implemented. And it's present in Darga as well.

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

Compute -> Cloud -> Availability Zone -> select one that has timelines -> Monitoring -> Timelines

Before:
image
After applying Policy Events
image
After:
image

@miq-bot add_label bug, blocker, compute/cloud, gaprindashvili/yes, euwe/yes, darga/yes

As Policy Events are not yet implemented for Availability Zones this hides them until they will be implemented.
@miq-bot
Copy link
Member

miq-bot commented Jan 3, 2018

@ZitaNemeckova Cannot apply the following label because they are not recognized: gapridashvili/yes

@ZitaNemeckova
Copy link
Contributor Author

@miq-bot add_label gaprindashvili/yes

@@ -1,3 +1,7 @@
module AvailabilityZoneHelper
include_concern 'TextualSummary'

def accessible_select_event_types
[[_('Management Events'), 'timeline']]
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't timeline be i18n too?

Copy link
Member

Choose a reason for hiding this comment

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

and tests please ? 😊

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's value in select picker not text displayed to user so it should never be translated :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

And rspec is added :)

Make sure method accessible_select_event_types returns only Management Events
@miq-bot
Copy link
Member

miq-bot commented Jan 3, 2018

Checked commits ZitaNemeckova/manageiq-ui-classic@7a8306a~...2851067 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0
3 files checked, 3 offenses detected

app/helpers/application_helper.rb

spec/helpers/availability_zone_helper_spec.rb

@h-kataria
Copy link
Contributor

looks good.

@h-kataria h-kataria added this to the Sprint 77 Ending Jan 15, 2018 milestone Jan 3, 2018
@h-kataria h-kataria merged commit 46e1d85 into ManageIQ:master Jan 3, 2018
simaishi pushed a commit that referenced this pull request Jan 4, 2018
Availability Zone has only Management Events in Timelines
(cherry picked from commit 46e1d85)

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

simaishi commented Jan 4, 2018

Gaprindashvili backport details:

$ git log -1
commit 620444548600dd7402fb329240964135c562b218
Author: Harpreet Kataria <[email protected]>
Date:   Wed Jan 3 13:40:54 2018 -0500

    Merge pull request #3154 from ZitaNemeckova/hide_policy_events_az
    
    Availability Zone has only Management Events in Timelines
    (cherry picked from commit 46e1d855d4dff8a155f20071e82b6ee28a4b9e34)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1531308

@simaishi
Copy link
Contributor

simaishi commented Jan 4, 2018

@ZitaNemeckova I assume you meant fine/yes too 😄

@ZitaNemeckova
Copy link
Contributor Author

@simaishi I did. Thanks :)

@ZitaNemeckova ZitaNemeckova deleted the hide_policy_events_az branch January 8, 2018 20:36
simaishi pushed a commit that referenced this pull request Jan 10, 2018
Availability Zone has only Management Events in Timelines
(cherry picked from commit 46e1d85)

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

Fine backport details:

$ git log -1
commit 0d33481aecfea67cac88846edd3766807ce9d142
Author: Harpreet Kataria <[email protected]>
Date:   Wed Jan 3 13:40:54 2018 -0500

    Merge pull request #3154 from ZitaNemeckova/hide_policy_events_az
    
    Availability Zone has only Management Events in Timelines
    (cherry picked from commit 46e1d855d4dff8a155f20071e82b6ee28a4b9e34)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1533167

@simaishi
Copy link
Contributor

Euwe backport (to manageiq repo) details:

$ git log -1
commit 2493f76b533583b5f3c34f6788aefbfbd084a84f
Author: Harpreet Kataria <[email protected]>
Date:   Wed Jan 3 13:40:54 2018 -0500

    Merge pull request #3154 from ZitaNemeckova/hide_policy_events_az
    
    Availability Zone has only Management Events in Timelines
    (cherry picked from commit 46e1d855d4dff8a155f20071e82b6ee28a4b9e34)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1549650

@simaishi simaishi removed the euwe/yes label Feb 27, 2018
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