Skip to content

aodh: Add config for alarm_history_ttl (bsc#1073703)#1674

Merged
aplanas merged 1 commit into
crowbar:masterfrom
aplanas:cinerama70-bz1073703
Jun 20, 2018
Merged

aodh: Add config for alarm_history_ttl (bsc#1073703)#1674
aplanas merged 1 commit into
crowbar:masterfrom
aplanas:cinerama70-bz1073703

Conversation

@aplanas

@aplanas aplanas commented May 28, 2018

Copy link
Copy Markdown
Contributor

The alarm_history_ttl config option for aodh was
not previously configurable.

The alarm_history_ttl config option for aodh was
not previously configurable.
end

def downgrade(ta, td, a, d)
unless ta.key? "alarm_history_ttl"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Style/IfUnlessModifier: Favor modifier unless usage when having a single-line body. Another good alternative is the usage of control flow &&/||. (https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier)

return a, d
end

def downgrade(ta, td, a, d)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Naming/UncommunicativeMethodParamName: Method parameter must be at least 3 characters long.

@@ -0,0 +1,13 @@
def upgrade(ta, td, a, d)
unless a.key? "alarm_history_ttl"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Style/IfUnlessModifier: Favor modifier unless usage when having a single-line body. Another good alternative is the usage of control flow &&/||. (https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier)

@@ -0,0 +1,13 @@
def upgrade(ta, td, a, d)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Naming/UncommunicativeMethodParamName: Method parameter must be at least 3 characters long.

end

def downgrade(ta, td, a, d)
unless ta.key? "alarm_history_ttl"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Style/IfUnlessModifier: Favor modifier unless usage when having a single-line body. Another good alternative is the usage of control flow &&/||. (https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier)

return a, d
end

def downgrade(ta, td, a, d)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Naming/UncommunicativeMethodParamName: Method parameter must be at least 3 characters long.

@@ -0,0 +1,13 @@
def upgrade(ta, td, a, d)
unless a.key? "alarm_history_ttl"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Style/IfUnlessModifier: Favor modifier unless usage when having a single-line body. Another good alternative is the usage of control flow &&/||. (https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier)

@@ -0,0 +1,13 @@
def upgrade(ta, td, a, d)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Naming/UncommunicativeMethodParamName: Method parameter must be at least 3 characters long.

@aplanas

aplanas commented May 28, 2018

Copy link
Copy Markdown
Contributor Author

As I cannot update the original PR (#1655) I open this instead. Is the full work from @cinerama70 with some of the concern addressed.

@aplanas

aplanas commented May 28, 2018

Copy link
Copy Markdown
Contributor Author

@JanZerebecki JanZerebecki requested a review from stefannica May 28, 2018 14:27

@stefannica stefannica left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, thanks !

@stefannica

Copy link
Copy Markdown
Contributor

Needs backport to SOC7 ? Looking at the bug report, it appears so.

@aplanas aplanas merged commit 49f035d into crowbar:master Jun 20, 2018
@aplanas

aplanas commented Jun 20, 2018

Copy link
Copy Markdown
Contributor Author

Backport here: #1689

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

6 participants