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
Extract getting key and fields to method in chargeback #11645
Extract getting key and fields to method in chargeback #11645
Conversation
596bf7a
to
7caf205
Compare
<pr_mergeability_checker />This pull request is not mergeable. Please rebase and repush. |
7caf205
to
406fd9a
Compare
def self.date_fields(metric_rollup_record, interval, tz) | ||
start_ts, end_ts, display_range = get_time_range(metric_rollup_record, interval, tz) | ||
|
||
{"start_date" => start_ts, "end_date" => end_ts, "display_range" => display_range, "interval_name" => interval, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small nit, but I think that would be more readable if each k/v pair was on a separate line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes,thanks, done 👍
(cherry picked from commit bcfb5577bffcd1895a9a5ae124d1080209c9f584)
406fd9a
to
577e69a
Compare
Checked commit lpichler@577e69a with ruby 2.2.5, rubocop 0.37.2, and haml-lint 0.16.1 |
Extract getting key and fields to method in chargeback (cherry picked from commit becd152)
Euwe Backport details: $ git log
commit 2e90dfad39bffdc8a0b738739177a447a1d7ebda
Author: Gregg Tanzillo <gtanzill@redhat.com>
Date: Tue Oct 4 08:54:30 2016 -0400
Merge pull request #11645 from lpichler/extract_key_and_fields_to_method
Extract getting key and fields to method in chargeback
(cherry picked from commit becd152459bb2914feeb755a7bde981108b54672) |
…s_to_method Extract getting key and fields to method in chargeback (cherry picked from commit becd152)
method 'key_and_fields' will not be used for each MetricRollup record but for groups records according to interval(weekly, hourly, monthly)
@miq-bot add_label chargeback, refactoring
@miq-bot assign @gtanzillo