New issue
Advanced search Search tips

Issue 618964 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Feb 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

Enterprise.Policies histogram: Replace textual bucket descriptions by actual policy names.

Project Member Reported by tnagel@chromium.org, Jun 10 2016

Issue description

https://uma.googleplex.com/p/chrome/histograms/?endDate=06-06-2016&dayCount=1&histograms=Enterprise.Policies&fixupData=true&showMax=true&filters=channel%2Ceq%2C4%2Cisofficial%2Ceq%2CTrue&implicitFilters=isofficial

Bonus points for automating histogram generation in some way / adding a presubmit script to ensure there are no regressions.  (bartfab@ says a script already exists.)
 

Comment 1 by pbond@chromium.org, Jun 22 2016

Labels: Enterprise-triaged
Status: Available (was: Untriaged)

Comment 2 by pmarko@chromium.org, Jan 24 2017

Labels: -Enterprise-triaged Enterprise-Triaged
The mentioned script is
tools/metrics/histograms/update_policies.py

see https://cs.chromium.org/chromium/src/tools/metrics/histograms/update_policies.py?q=update_policies&sq=package:chromium&dr .

Comment 3 by pmarko@chromium.org, Jan 31 2017

Owner: pmarko@chromium.org

Comment 4 by pmarko@chromium.org, Jan 31 2017

When we do this, we should also mention the existence of the script in policy_templates.json around the comments
#   And don't forget to also update the EnterprisePolicies enum of
#   histograms.xml.
Status: Started (was: Available)
Project Member

Comment 6 by bugdroid1@chromium.org, Feb 14 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/afdfa8058e3d9e8fcfab6fd09ebf68d9ec31d3c7

commit afdfa8058e3d9e8fcfab6fd09ebf68d9ec31d3c7
Author: pmarko <pmarko@chromium.org>
Date: Tue Feb 14 10:34:54 2017

Change Enterprise.Policies histogram bucket descriptions to policy names

Adapt the python script generating Enterprise.Policies in histograms.xml
to use policy names instead of captions for bucket descriptions.
Also, mention the script in policy_templates.json and the PRESUBMIT
script for cross-checking if every policy has a bucket in
histograms.xml.

BUG= 618964 

Review-Url: https://codereview.chromium.org/2667373003
Cr-Commit-Position: refs/heads/master@{#450316}

[modify] https://crrev.com/afdfa8058e3d9e8fcfab6fd09ebf68d9ec31d3c7/components/policy/resources/PRESUBMIT.py
[modify] https://crrev.com/afdfa8058e3d9e8fcfab6fd09ebf68d9ec31d3c7/components/policy/resources/policy_templates.json
[modify] https://crrev.com/afdfa8058e3d9e8fcfab6fd09ebf68d9ec31d3c7/tools/metrics/histograms/histograms.xml
[modify] https://crrev.com/afdfa8058e3d9e8fcfab6fd09ebf68d9ec31d3c7/tools/metrics/histograms/update_policies.py

Comment 7 by pmarko@chromium.org, Feb 14 2017

Status: Fixed (was: Started)

Sign in to add a comment