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

Extract getting key and fields to method in chargeback #11645

Merged

Conversation

lpichler
Copy link
Contributor

@lpichler lpichler commented Oct 2, 2016

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

@miq-bot
Copy link
Member

miq-bot commented Oct 3, 2016

<pr_mergeability_checker />This pull request is not mergeable. Please rebase and repush.

@lpichler lpichler force-pushed the extract_key_and_fields_to_method branch from 7caf205 to 406fd9a Compare October 3, 2016 13:59
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,
Copy link
Member

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.

Copy link
Contributor Author

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)
@lpichler lpichler force-pushed the extract_key_and_fields_to_method branch from 406fd9a to 577e69a Compare October 4, 2016 09:31
@miq-bot
Copy link
Member

miq-bot commented Oct 4, 2016

Checked commit lpichler@577e69a with ruby 2.2.5, rubocop 0.37.2, and haml-lint 0.16.1
1 file checked, 0 offenses detected
Everything looks good. 🍰

@gtanzillo gtanzillo merged commit becd152 into ManageIQ:master Oct 4, 2016
@gtanzillo gtanzillo added this to the Sprint 48 Ending Oct 24, 2016 milestone Oct 4, 2016
chessbyte pushed a commit that referenced this pull request Oct 5, 2016
Extract getting key and fields to method in chargeback
(cherry picked from commit becd152)
@chessbyte
Copy link
Member

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)

lpichler pushed a commit to lpichler/manageiq that referenced this pull request Oct 21, 2016
…s_to_method

Extract getting key and fields to method in chargeback
(cherry picked from commit becd152)
@lpichler lpichler deleted the extract_key_and_fields_to_method branch March 3, 2017 09:41
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.

None yet

4 participants