Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3154 from ZitaNemeckova/hide_policy_events_az
Availability Zone has only Management Events in Timelines (cherry picked from commit 46e1d85) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1533167
- Loading branch information
Showing
4 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
module AvailabilityZoneHelper | ||
include_concern 'TextualSummary' | ||
|
||
def accessible_select_event_types | ||
[[_('Management Events'), 'timeline']] | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
describe AvailabilityZoneHelper do | ||
|
||
context "#accessible_select_event_types" do | ||
it 'returns only Management Events' do | ||
expect(accessible_select_event_types).to eq([['Management Events', 'timeline']]) | ||
end | ||
end | ||
end |