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

FOPTS-5507 Added hide_skip_approvals to All Active Policies #2830

Merged
merged 10 commits into from
Nov 14, 2024

Conversation

ramyadmz
Copy link
Collaborator

Description

This PR marks the last update for the Hide Skip Approval task.
✅ The first phase, updating AWS Right Size policies, is complete in PR-2799.
✅ Additionally, the metaparent policy compiler and Rakefile have been successfully updated : PR-2813

Current Phase (Phase 2):
In this phase, we have added the hide_skip_approvals field to the info section of policy templates that do not use the request approval option in any escalation. This field allows the UI to dynamically show or hide the "Skip Approval" option based on the policy’s configuration. Following the AWS Right Size policy updates, these changes have now been applied to all remaining active policies.

More context: Seeking Your Input: Proposed Solution for Conditional "Skip Approvals" Visibility

Issues Resolved

FLEX-5397

Contribution Check List

  • New functionality includes testing.
  • New functionality has been documented in the README if applicable
  • New functionality has been documented in CHANGELOG.MD

Copy link
Contributor

github-actions bot commented Nov 12, 2024

5 Errors
🚫

cost/azure/databricks/rightsize_compute/azure_databricks_rightsize_compute.pt

Policy Template file has not yet been enabled for automated permission generation. Please help us improve coverage by following the steps documented in tools/policy_master_permission_generation/ to resolve this.


Recommendation policy has export that is missing required fields. These fields are scraped by the Flexera platform for dashboards:

Line 1170: accountID, accountName, resourceID, service, savingsCurrency
Line 1332: accountID, accountName, resourceID, service, savingsCurrency

🚫

cost/flexera/cco/new_usage/new_usage.pt

run_script statements found whose parameters are not in the correct order. run_script parameters should be in the following order: script, val(iter_item, string), datasources, parameters, variables, raw values:

Line 253: ds_current_bill / run_script $js_get_bill

🚫

cost/oracle/oracle_cbi/oracle_cbi.pt

Policy Template file has not yet been enabled for automated permission generation. Please help us improve coverage by following the steps documented in tools/policy_master_permission_generation/ to resolve this.

🚫

operational/azure/marketplace_new_products/azure_marketplace_new_products.pt

run_script statements found whose parameters are not in the correct order. run_script parameters should be in the following order: script, val(iter_item, string), datasources, parameters, variables, raw values:

Line 230: ds_current_products_oldconnection / run_script $js_get_products_oldconnection
Line 326: ds_current_products_newconnection / run_script $js_get_products_newconnection

🚫

operational/flexera/fnms/schedule_fnms_reports/schedule_fnms_report.pt

Policy Template file has not yet been enabled for automated permission generation. Please help us improve coverage by following the steps documented in tools/policy_master_permission_generation/ to resolve this.

247 Warnings
⚠️

automation/flexera/outdated_applied_policies/outdated_applied_policies.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

compliance/aws/disallowed_regions/aws_disallowed_regions.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

compliance/aws/ecs_unused/aws_unused_ecs_clusters.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

compliance/aws/iam_role_audit/aws_iam_role_audit.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

compliance/aws/instances_without_fnm_agent/aws_instances_not_running_flexnet_inventory_agent.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

compliance/aws/long_stopped_instances/aws_long_stopped_instances.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

compliance/aws/missing_scps/aws_missing_scps.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

compliance/aws/rds_backup/aws_rds_backup.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

compliance/aws/untagged_resources/aws_untagged_resources.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

compliance/azure/advisor_carbon/azure_advisor_carbon.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

compliance/azure/ahub_manual/azure_ahub_utilization_with_manual_entry.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

compliance/azure/azure_disallowed_regions/azure_disallowed_regions.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

compliance/azure/azure_long_stopped_instances/long_stopped_instances_azure.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

compliance/azure/azure_policy_audit/azure_policy_audit.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

compliance/azure/azure_untagged_resources/untagged_resources.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

compliance/azure/azure_untagged_vms/untagged_vms.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

compliance/azure/compliance_score/azure_regulatory_compliance_report.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

compliance/azure/instances_without_fnm_agent/azure_instances_not_running_flexnet_inventory_agent.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.


Policy Template has indentation issues. Code should be indented with 2 spaces inside each do/end block, info() block, and EOS block, with additional spacing for nested blocks as appropriate:

Line 168: Expected indentation of 6 spaces but found 8 spaces.
Line 169: Expected indentation of 6 spaces but found 8 spaces.
Line 170: Expected indentation of 6 spaces but found 8 spaces.
Line 171: Expected indentation of 6 spaces but found 8 spaces.
Line 172: Expected indentation of 6 spaces but found 8 spaces.
Line 173: Expected indentation of 6 spaces but found 8 spaces.
Line 174: Expected indentation of 6 spaces but found 8 spaces.
Line 175: Expected indentation of 6 spaces but found 8 spaces.
Line 176: Expected indentation of 6 spaces but found 8 spaces.
Line 192: Expected indentation of 4 spaces but found 16 spaces.
Line 193: Expected indentation of 4 spaces but found 16 spaces.
Line 194: Expected indentation of 4 spaces but found 16 spaces.
Line 195: Expected indentation of 4 spaces but found 16 spaces.
Line 196: Expected indentation of 4 spaces but found 16 spaces.
Line 197: Expected indentation of 4 spaces but found 16 spaces.
Line 198: Expected indentation of 4 spaces but found 16 spaces.
Line 199: Expected indentation of 4 spaces but found 16 spaces.


parameter code blocks with missing default field found. Please add the default field to these blocks:

Line 54
Line 63

Optionally, you can add a comment within the parameter code blocks to indicate that the parameter requires user input and avoid this message.

  • # No default value, user input required

While not required, it is recommended that every parameter have a default value unless user input for that parameter is required and too specific for any default value to make sense


Datasources and scripts with mismatched names found. These names should match; for example, a datasource named ds_currency should be paired with a script named js_currency. This convention should only be ignored when the same script is called by multiple datasources. The following datasource/script pairs have mismatched names:

Line 209: ds_formatted_instances / js_format_instances


Possible invalid spacing between comma-separated items found:

Line 123: field "subscriptionId", jmes_path(col_item,"subscriptionId")

Line 124: field "displayName", jmes_path(col_item,"displayName")

Line 125: field "state", jmes_path(col_item,"state")

Line 159: path join(["/subscriptions/", val(iter_item,"subscriptionId"), "/providers/Microsoft.Compute/virtualMachines"])

Line 168: field "id", jmes_path(col_item,"id")

Line 169: field "name", jmes_path(col_item,"name")

Line 170: field "resourcename", get(4, split(jmes_path(col_item, "id"),"/"))

Line 171: field "location", jmes_path(col_item,"location")

Line 172: field "vmSize", jmes_path(col_item,"properties.hardwareProfile.vmSize")

Line 173: field "osType", jmes_path(col_item,"properties.storageProfile.osDisk.osType")

Line 174: field "tags", jmes_path(col_item,"tags")

Line 175: field "subscriptionId",val(iter_item,"subscriptionId")

Line 176: field "subscriptionName",val(iter_item,"displayName")

Line 203: collect xpath(response,"//NewDataSet/SearchResults") do

Line 294: path join(["/api/governance/projects/", rs_project_id, "/applied_policies/", switch(ne(meta_parent_policy_id,""), meta_parent_policy_id, policy_id) ])

Comma separated items should be organized as follows, with a single space following each comma: apple, banana, pear

⚠️

compliance/flexera/cco/billing_center_access_report/bc_access_report.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

compliance/flexera/fnms/fnms_licenses_expiring/expiring_licenses.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.


parameter code blocks with missing default field found. Please add the default field to these blocks:

Line 29

Optionally, you can add a comment within the parameter code blocks to indicate that the parameter requires user input and avoid this message.

  • # No default value, user input required

While not required, it is recommended that every parameter have a default value unless user input for that parameter is required and too specific for any default value to make sense


Possible invalid spacing between comma-separated items found:

Line 110: check eq(to_n(val(item,"expiring")),0)

Comma separated items should be organized as follows, with a single space following each comma: apple, banana, pear

⚠️

compliance/flexera/fnms/ignored_recent_inventory_dates/ignored_recent_inventory_dates.pt

parameter code blocks with missing default field found. Please add the default field to these blocks:

Line 30

Optionally, you can add a comment within the parameter code blocks to indicate that the parameter requires user input and avoid this message.

  • # No default value, user input required

While not required, it is recommended that every parameter have a default value unless user input for that parameter is required and too specific for any default value to make sense


Possible invalid spacing between comma-separated items found:

Line 108: check eq(to_n(val(item,"ignored")),0)

Comma separated items should be organized as follows, with a single space following each comma: apple, banana, pear

⚠️

compliance/flexera/fnms/missing_active_machines/missing_active_machines.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.


parameter code blocks with missing default field found. Please add the default field to these blocks:

Line 30

Optionally, you can add a comment within the parameter code blocks to indicate that the parameter requires user input and avoid this message.

  • # No default value, user input required

While not required, it is recommended that every parameter have a default value unless user input for that parameter is required and too specific for any default value to make sense


Possible invalid spacing between comma-separated items found:

Line 108: check eq(to_n(val(item,"missing")),0)

Comma separated items should be organized as follows, with a single space following each comma: apple, banana, pear

⚠️

compliance/flexera/fnms/overused_licenses/overused_licenses.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

compliance/flexera/fnms/vms_missing_hostid/vms_missing_hostid.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.


parameter code blocks with missing default field found. Please add the default field to these blocks:

Line 21

Optionally, you can add a comment within the parameter code blocks to indicate that the parameter requires user input and avoid this message.

  • # No default value, user input required

While not required, it is recommended that every parameter have a default value unless user input for that parameter is required and too specific for any default value to make sense


Possible invalid spacing between comma-separated items found:

Line 100: check eq(size(data),0)

Comma separated items should be organized as follows, with a single space following each comma: apple, banana, pear

⚠️

compliance/flexera/iam/iam_explicit_user_roles/flexera_iam_explicit_user_roles.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

compliance/github/available_seats/available_seats.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

compliance/github/outside_collaborators/outside_collaborators.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

compliance/github/repository_admin_team/repository_admin_team.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

compliance/github/repository_branch_protection/repository_branch_protection.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

compliance/github/repository_naming/repository_naming.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

compliance/github/repository_size/repository_size.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

compliance/github/toplevel_teams/toplevel_teams.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

compliance/google/long_stopped_instances/google_long_stopped_instances.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

compliance/google/unlabeled_resources/unlabeled_resources.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/aws/burstable_ec2_instances/aws_burstable_ec2_instances.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/aws/cheaper_regions/aws_cheaper_regions.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/aws/cloudtrail_read_logging/aws_cloudtrail_read_logging.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/aws/eks_without_spot/aws_eks_without_spot.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/aws/extended_support/aws_extended_support.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.


Recommendation policy has export that is missing recommended fields. These fields are scraped by the Flexera platform for dashboards:

Line 430: resourceName, tags

⚠️

cost/aws/idle_nat_gateways/aws_idle_nat_gateways.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/aws/old_snapshots/aws_delete_old_snapshots.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/aws/reserved_instances/coverage/reserved_instance_coverage.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/aws/reserved_instances/expiration/aws_reserved_instance_expiration.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/aws/reserved_instances/recommendations/aws_reserved_instance_recommendations.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/aws/reserved_instances/utilization/utilization_ris.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/aws/s3_bucket_size/aws_bucket_size.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.


Possible invalid spacing between comma-separated items found:

Line 41: description "The number of GiB of space a bucket needs to exceed to include it in the results. Binary gibibytes (e.g. 1,073,741,824 bytes in a gibibyte) are used to maintain parity with how AWS S3 storage is billed."

Comma separated items should be organized as follows, with a single space following each comma: apple, banana, pear

⚠️

cost/aws/s3_lifecycle/aws_s3_lifecycle.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/aws/s3_storage_policy/aws_s3_bucket_policy_check.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/aws/savings_plan/expiration/aws_savings_plan_expiration.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/aws/savings_plan/recommendations/aws_savings_plan_recommendations.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/aws/savings_plan/utilization/aws_savings_plan_utilization.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/aws/savings_realized/aws_savings_realized.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/aws/schedule_instance/aws_schedule_instance.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/aws/superseded_ebs_volumes/aws_superseded_ebs_volumes.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/aws/superseded_instances/aws_superseded_instances.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/aws/unused_albs/aws_unused_albs.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/aws/unused_clbs/aws_unused_clbs.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/aws/unused_ip_addresses/aws_unused_ip_addresses.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/aws/unused_nlbs/aws_unused_nlbs.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/azure/azure_china_cbi/azure_china_cbi.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/azure/cheaper_regions/azure_cheaper_regions.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/azure/databricks/rightsize_compute/azure_databricks_rightsize_compute.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.


Recommendation policy has export that is missing recommended fields. These fields are scraped by the Flexera platform for dashboards:

Line 1170: resourceName, tags
Line 1332: resourceName, tags


Possible invalid spacing between comma-separated items found:

Line 592: "aggregation": "minimum,average,maximum",

Line 595: "metricnames": "Percentage CPU,Available Memory Bytes",

Comma separated items should be organized as follows, with a single space following each comma: apple, banana, pear

⚠️

cost/azure/hybrid_use_benefit/azure_hybrid_use_benefit.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/azure/hybrid_use_benefit_linux/ahub_linux.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/azure/hybrid_use_benefit_sql/ahub_sql.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/azure/old_snapshots/azure_delete_old_snapshots.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/azure/reserved_instances/expiration/azure_reserved_instance_expiration.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/azure/reserved_instances/recommendations/azure_reserved_instance_recommendations.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/azure/reserved_instances/utilization/azure_reserved_instance_utilization.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/azure/reserved_instances/utilization_mca/azure_reserved_instance_utilization_mca.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/azure/rightsize_compute_instances/azure_compute_rightsizing.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.


Possible invalid spacing between comma-separated items found:

Line 767: "metricnames": "Percentage CPU,Available Memory Bytes",

Line 768: "aggregation": "average,maximum,minimum"

Comma separated items should be organized as follows, with a single space following each comma: apple, banana, pear

⚠️

cost/azure/rightsize_managed_disks/azure_rightsize_managed_disks.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.


Possible invalid spacing between comma-separated items found:

Line 569: "metricnames": "OS Disk IOPS Consumed Percentage,OS Disk Bandwidth Consumed Percentage,Data Disk IOPS Consumed Percentage,Data Disk Bandwidth Consumed Percentage",

Comma separated items should be organized as follows, with a single space following each comma: apple, banana, pear

⚠️

cost/azure/rightsize_managed_sql/azure_rightsize_managed_sql.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.


Possible invalid spacing between comma-separated items found:

Line 571: "aggregation": "Average,Minimum,Maximum",

Comma separated items should be organized as follows, with a single space following each comma: apple, banana, pear

⚠️

cost/azure/rightsize_managed_sql_storage/azure_rightsize_managed_sql_storage.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/azure/rightsize_mysql_flexible/azure_rightsize_mysql_flexible.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.


Possible invalid spacing between comma-separated items found:

Line 577: "metricnames": "cpu_percent,total_connections",

Line 578: "aggregation": "Average,Minimum,Maximum,count",

Comma separated items should be organized as follows, with a single space following each comma: apple, banana, pear

⚠️

cost/azure/rightsize_mysql_single/azure_rightsize_mysql_single.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.


Possible invalid spacing between comma-separated items found:

Line 577: "metricnames": "cpu_percent,active_connections",

Line 578: "aggregation": "Average,Minimum,Maximum,count",

Comma separated items should be organized as follows, with a single space following each comma: apple, banana, pear

⚠️

cost/azure/rightsize_netapp/azure_rightsize_netapp.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.


Possible invalid spacing between comma-separated items found:

Line 489: "metricnames": "VolumePoolAllocatedUsed,VolumePoolTotalLogicalSize,VolumePoolAllocatedSize",

Line 638: "metricnames": "VolumeLogicalSize,VolumeConsumedSizePercentage",

Comma separated items should be organized as follows, with a single space following each comma: apple, banana, pear

⚠️

cost/azure/rightsize_sql_instances/azure_rightsize_sql_instances.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.


Possible invalid spacing between comma-separated items found:

Line 648: "metricnames": "cpu_percent,connection_successful",

Line 649: "aggregation": "Average,Minimum,Maximum,count",

Comma separated items should be organized as follows, with a single space following each comma: apple, banana, pear

⚠️

cost/azure/rightsize_sql_storage/azure_rightsize_sql_storage.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/azure/rightsize_synapse_sql_pools/azure_rightsize_synapse_sql_pools.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.


Recommendation policy has export that is missing recommended fields. These fields are scraped by the Flexera platform for dashboards:

Line 1452: tags
Line 1532: tags
Line 1640: tags

⚠️

cost/azure/savings_plan/expiration/azure_savings_plan_expiration.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/azure/savings_plan/recommendations/azure_savings_plan_recommendations.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/azure/savings_plan/utilization/azure_savings_plan_utilization.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/azure/savings_realized/azure_savings_realized.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/azure/schedule_instance/azure_schedule_instance.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.


Possible invalid spacing between comma-separated items found:

Line 408: // schedule="8:00-17:30;MO,TU,WE,TH,FR;America/Los_Angeles"

Line 443: days = "SU,MO,TU,WE,TH,FR,SA"

Comma separated items should be organized as follows, with a single space following each comma: apple, banana, pear

⚠️

cost/azure/sql_servers_without_elastic_pool/azure_sql_servers_without_elastic_pool.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/azure/storage_account_lifecycle_management/storage_account_lifecycle_management.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/azure/superseded_instances/azure_superseded_instances.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/azure/unoptimized_web_app_scaling/azure_unoptimized_web_app_scaling.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/azure/unused_app_service_plans/azure_unused_app_service_plans.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/azure/unused_firewalls/azure_unused_firewalls.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/azure/unused_ip_addresses/azure_unused_ip_addresses.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/azure/unused_load_balancers/azure_unused_load_balancers.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.


Possible invalid spacing between comma-separated items found:

Line 473: "metricnames": "ByteCount,PacketCount",

Comma separated items should be organized as follows, with a single space following each comma: apple, banana, pear

⚠️

cost/azure/unused_vngs/azure_unused_vngs.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/azure/unused_volumes/azure_unused_volumes.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.


Possible invalid spacing between comma-separated items found:

Line 542: "metricnames": "Composite Disk Read Operations/sec,Composite Disk Write Operations/sec",

Comma separated items should be organized as follows, with a single space following each comma: apple, banana, pear

⚠️

cost/flexera/cco/budget_report_alerts/budget_report_alerts.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/flexera/cco/budget_v_actual_spend_report/budget_v_actual_spend_report.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/flexera/cco/cloud_cost_anomaly_alerts/cloud_cost_anomaly_alerts.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/flexera/cco/currency_conversion/currency_conversion.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/flexera/cco/email_recommendations/email_recommendations.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/flexera/cco/fixed_cost_cbi/fixed_cost_cbi.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/flexera/cco/focus_report/focus_report.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/flexera/cco/forecasting/commitment_forecast/commitment_forecast.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.


Possible invalid spacing between comma-separated items found:

Line 373: over_commitment_data = over_commitment_amount_value.toString() + ",0"

Line 382: chart_data = encodeURI("chd=t:" + ds_forecasted_spend['actual_spend'] + ",0|" + ds_forecasted_spend['forecasted_spend'] +",0|0," + ds_forecasted_spend['commitment_target'] + "|" + over_commitment_data)

Comma separated items should be organized as follows, with a single space following each comma: apple, banana, pear

⚠️

cost/flexera/cco/forecasting/straight_line_forecast/straight_line_forecast.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.


Possible invalid spacing between comma-separated items found:

Line 584: chart_axis = "chxt=x,y"

Line 585: chart_axis_format = "chxs=1N*cUSD0sz*|0,min40"

Line 587: chart_line_color = "chco=6929c4,9f1853,198038,b28600,1192e8,009d9a,005d5d,007d79"

Line 589: chart_legend_size = "chdls=000000,10"

Comma separated items should be organized as follows, with a single space following each comma: apple, banana, pear

⚠️

cost/flexera/cco/low_usage/low_usage.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/flexera/cco/moving_average/moving_average.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/flexera/cco/new_usage/new_usage.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/flexera/cco/scheduled_report_unallocated/scheduled_report_unallocated.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/flexera/cco/scheduled_reports/scheduled_report.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/google/cheaper_regions/google_cheaper_regions.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/google/cloud_storage_lifecycle/google_cloud_storage_lifecycle.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/google/cud_expiration/google_cud_expiration_report.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/google/cud_recommendations/google_committed_use_discount_recommendations.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/google/cud_report/google_committed_use_discount_report.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/google/idle_ip_address_recommendations/google_idle_ip_address_recommendations.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/google/idle_persistent_disk_recommendations/google_idle_persistent_disk_recommendations.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/google/old_snapshots/google_delete_old_snapshots.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/google/recommender/recommender.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/google/rightsize_cloudsql_recommendations/google_rightsize_cloudsql_recommendations.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/google/rightsize_vm_recommendations/google_rightsize_vm_recommendations.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/google/schedule_instance/google_schedule_instance.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.

⚠️

cost/kubecost/cluster/kubecost_cluster_rightsizing_recommendations.pt

Policy template updated but associated README.md file has not been. Please verify that any necessary changes have been made to the README.


Recommendation policy has export that is missing recommended fields. These fields are scraped by the Flexera platform for dashboards:

Line 303: tags

⚠️ Danger found 247 violations with this PR. Due to GitHub's max issue comment size, the number shown has been truncated to 122.

Generated by 🚫 Danger

@ramyadmz ramyadmz marked this pull request as ready for review November 13, 2024 21:27
@ramyadmz ramyadmz requested a review from a team as a code owner November 13, 2024 21:27
@ramyadmz ramyadmz added the enhancement New feature or request label Nov 13, 2024
@ramyadmz ramyadmz self-assigned this Nov 14, 2024
Copy link
Contributor

@XOmniverse XOmniverse left a comment

Choose a reason for hiding this comment

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

LGTM

@XOmniverse XOmniverse merged commit b72571a into master Nov 14, 2024
10 of 11 checks passed
@XOmniverse XOmniverse deleted the FLEX-5397-update-all-remaining-policies branch November 14, 2024 19:55
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.

2 participants