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

Add Amazon report to standard set of reports #15445

Merged
merged 3 commits into from
Jun 27, 2017
Merged

Add Amazon report to standard set of reports #15445

merged 3 commits into from
Jun 27, 2017

Conversation

vestival
Copy link
Contributor

During the CloudForms Hackathon we agreed to include some of the reports we usually deliver during POCs as part of the built in reports in the product. We will create separate PR for each of the reports

Steps for Testing/QA [Optional]

  • Add an Amazon provider with existing VMs
  • Create the report

@vestival
Copy link
Contributor Author

image

@lpichler
Copy link
Contributor

@miq-bot assign @lpichler
@miq-bot add_label reporting, enhancement

:queue_timeout:
:summary:
:hide_detail_rows: false
miq_group_id: 10000000000002
Copy link
Contributor

Choose a reason for hiding this comment

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

there is no need for specific miq_group_id neither user_id, everybody can see this report
(so these two lines can be removed)

rpt_group: Custom
rpt_type: Custom
priority: 20
db: VmCloud
Copy link
Contributor

@lpichler lpichler Jun 26, 2017

Choose a reason for hiding this comment

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

as this model VmCloud is not defined in
https://github.com/ManageIQ/manageiq/blob/master/config/miq_expression.yml#L2
please add it to this yaml.
this is will ensure that we can create the report based on this model:
screen shot 2017-06-26 at 21 22 48

Copy link
Contributor

@lpichler lpichler left a comment

Choose a reason for hiding this comment

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

I had some comments otherwise it looks good to me! 👍

@lpichler
Copy link
Contributor

@miq-bot unassign @lpichler
@miq-bot assign @gtanzillo

@miq-bot
Copy link
Member

miq-bot commented Jun 26, 2017

@lpichler unrecognized command 'unassign', ignoring...

Accepted commands are: add_label, assign, close_issue, move_issue, remove_label, rm_label, set_milestone

@miq-bot miq-bot assigned gtanzillo and unassigned lpichler Jun 26, 2017
@chessbyte chessbyte changed the title Adding Amazzon report to standard set of reports Add Amazon report to standard set of reports Jun 27, 2017
adding VmCloud to miq_expression.yml
@miq-bot
Copy link
Member

miq-bot commented Jun 27, 2017

Checked commits vestival/manageiq@79c6f6d~...f13185e with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
1 file checked, 0 offenses detected
Everything looks fine. 👍

@vestival
Copy link
Contributor Author

@lpichler thanks! I just changed what you suggested and submit the changes! :-) 👍

Copy link
Contributor

@lpichler lpichler left a comment

Choose a reason for hiding this comment

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

@vestival thanks!

@vestival
Copy link
Contributor Author

@gtanzillo ready to merge? 👍

@@ -63,6 +63,7 @@
- User
- VimPerformanceTrend
- Vm
- VmCloud
Copy link
Contributor

Choose a reason for hiding this comment

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

I think, to preserve 🔤 , this needs to go two lines below

and:
- REGULAR EXPRESSION MATCHES:
field: VmCloud-vendor
value: "/amazon/i"
Copy link
Contributor

@imtayadeway imtayadeway Jun 27, 2017

Choose a reason for hiding this comment

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

How important is case insensitivity here? Is there not a discreet list of possible values for vendor? The reason I ask is that REGULAR EXPRESSION MATCHES is inefficient in that it can only be evaluated in memory. Using an alternative operator (such as LIKE, which is case sensitive) can be evaluated in SQL

@gtanzillo gtanzillo added this to the Sprint 64 Ending Jul 3, 2017 milestone Jun 27, 2017
@gtanzillo gtanzillo merged commit d3e8e83 into ManageIQ:master Jun 27, 2017
@himdel
Copy link
Contributor

himdel commented Dec 12, 2017

Note that VmCloud is just an alias - the actual class is ManageIQ::Providers::CloudManager::Vm.

(caused a ui-classic spec fail)

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.

6 participants