Skip to content

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

Merged
aplanas merged 1 commit into
crowbar:stable/4.0from
aplanas:bsc1073703_stable
Jun 22, 2018
Merged

aodh: Add config for alarm_history_ttl (bsc#1073703)#1689
aplanas merged 1 commit into
crowbar:stable/4.0from
aplanas:bsc1073703_stable

Conversation

@aplanas

@aplanas aplanas commented Jun 20, 2018

Copy link
Copy Markdown
Contributor

The alarm_history_ttl config option for aodh was
not previously configurable.

(cherry picked from commit 47a7d26)

@aplanas

aplanas commented Jun 20, 2018

Copy link
Copy Markdown
Contributor Author

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.

@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.

Don't you need a new schema revision (101) ?

@aplanas

aplanas commented Jun 20, 2018

Copy link
Copy Markdown
Contributor Author

There is no 100 migration here, so I used this one as the first one (aodh is empty of migrations). There are other cases like barbican that start in 100, but there are other that choose 101 here.

I do not mind to use 101 as the first one.

The alarm_history_ttl config option for aodh was
not previously configurable.

(cherry picked from commit 47a7d26)
@aplanas aplanas force-pushed the bsc1073703_stable branch from d4fe231 to 25c1200 Compare June 20, 2018 15:15
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.

@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.

Thanks, looks good now.

@aplanas aplanas merged commit e0cdb50 into crowbar:stable/4.0 Jun 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants