From a74ac6e4a5191caf5f9687dba419f8b0f1b13c0a Mon Sep 17 00:00:00 2001 From: Zahi Akiva Date: Wed, 9 Aug 2017 15:35:45 +0300 Subject: [PATCH] Add Report: Projects by Quota Items --- config/miq_expression.yml | 2 + .../140_Projects by Quota Items.yaml | 67 +++++++++++++++++++ spec/models/miq_report/seeding_spec.rb | 2 +- 3 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 product/reports/170_Configuration Management - Containers/140_Projects by Quota Items.yaml diff --git a/config/miq_expression.yml b/config/miq_expression.yml index f034f960045..4bbfb08cd5b 100644 --- a/config/miq_expression.yml +++ b/config/miq_expression.yml @@ -23,6 +23,7 @@ - ContainerNodePerformance - ContainerProject - ContainerProjectPerformance +- ContainerQuota - ContainerReplicator - ContainerRoute - ContainerService @@ -87,6 +88,7 @@ - container_projects - container_images - container_nodes +- container_quota_items - customization_scripts - customization_script_media - customization_script_ptables diff --git a/product/reports/170_Configuration Management - Containers/140_Projects by Quota Items.yaml b/product/reports/170_Configuration Management - Containers/140_Projects by Quota Items.yaml new file mode 100644 index 00000000000..b2a79e835d8 --- /dev/null +++ b/product/reports/170_Configuration Management - Containers/140_Projects by Quota Items.yaml @@ -0,0 +1,67 @@ +--- +title: Projects by Quota Items +rpt_group: Custom +rpt_type: Custom +priority: +db: ContainerQuota +cols: +- name +include: + container_project: + columns: + - name + container_quota_items: + columns: + - resource + - quota_desired_display + - quota_enforced_display + - quota_observed_display +col_order: +- container_project.name +- name +- container_quota_items.resource +- container_quota_items.quota_desired_display +- container_quota_items.quota_enforced_display +- container_quota_items.quota_observed_display +headers: +- Project Name +- Quota Name +- Resource +- Desired +- Enforced +- Observed +conditions: +order: Ascending +sortby: +- container_project.name +- container_quota_items.resource +group: +graph: +dims: +filename: +file_mtime: +categories: [] +timeline: +template_type: report +where_clause: +db_options: {} +generate_cols: +generate_rows: +col_formats: +- +- +- +- +- +- +tz: +time_profile_id: +display_filter: +col_options: {} +rpt_options: + :pdf: + :page_size: US-Letter + :queue_timeout: +miq_group_id: 2 +user_id: 1 +menu_name: Projects by Quota Items diff --git a/spec/models/miq_report/seeding_spec.rb b/spec/models/miq_report/seeding_spec.rb index 878404f5ce9..35c62b8aa95 100644 --- a/spec/models/miq_report/seeding_spec.rb +++ b/spec/models/miq_report/seeding_spec.rb @@ -1,5 +1,5 @@ describe MiqReport do context "Seeding" do - include_examples(".seed called multiple times", 144) + include_examples(".seed called multiple times", 145) end end