{"action":"opened","issue":{"url":"https://api.github.com/repos/catapult-project/catapult/issues/2159","repository_url":"https://api.github.com/repos/catapult-project/catapult","labels_url":"https://api.github.com/repos/catapult-project/catapult/issues/2159/labels{/name}","comments_url":"https://api.github.com/repos/catapult-project/catapult/issues/2159/comments","events_url":"https://api.github.com/repos/catapult-project/catapult/issues/2159/events","html_url":"https://github.com/catapult-project/catapult/issues/2159","id":142384451,"number":2159,"title":"Add presubmit check to see whether new metrics are registered","user":{"login":"eakuefner","id":75990,"avatar_url":"https://avatars.githubusercontent.com/u/75990?v=3","gravatar_id":"","url":"https://api.github.com/users/eakuefner","html_url":"https://github.com/eakuefner","followers_url":"https://api.github.com/users/eakuefner/followers","following_url":"https://api.github.com/users/eakuefner/following{/other_user}","gists_url":"https://api.github.com/users/eakuefner/gists{/gist_id}","starred_url":"https://api.github.com/users/eakuefner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eakuefner/subscriptions","organizations_url":"https://api.github.com/users/eakuefner/orgs","repos_url":"https://api.github.com/users/eakuefner/repos","events_url":"https://api.github.com/users/eakuefner/events{/privacy}","received_events_url":"https://api.github.com/users/eakuefner/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/catapult-project/catapult/labels/TBMv2","name":"TBMv2","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"eakuefner","id":75990,"avatar_url":"https://avatars.githubusercontent.com/u/75990?v=3","gravatar_id":"","url":"https://api.github.com/users/eakuefner","html_url":"https://github.com/eakuefner","followers_url":"https://api.github.com/users/eakuefner/followers","following_url":"https://api.github.com/users/eakuefner/following{/other_user}","gists_url":"https://api.github.com/users/eakuefner/gists{/gist_id}","starred_url":"https://api.github.com/users/eakuefner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eakuefner/subscriptions","organizations_url":"https://api.github.com/users/eakuefner/orgs","repos_url":"https://api.github.com/users/eakuefner/repos","events_url":"https://api.github.com/users/eakuefner/events{/privacy}","received_events_url":"https://api.github.com/users/eakuefner/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/catapult-project/catapult/milestones/6","html_url":"https://github.com/catapult-project/catapult/milestones/M51","labels_url":"https://api.github.com/repos/catapult-project/catapult/milestones/6/labels","id":1343034,"number":6,"title":"M51","description":"","creator":{"login":"natduca","id":412396,"avatar_url":"https://avatars.githubusercontent.com/u/412396?v=3","gravatar_id":"","url":"https://api.github.com/users/natduca","html_url":"https://github.com/natduca","followers_url":"https://api.github.com/users/natduca/followers","following_url":"https://api.github.com/users/natduca/following{/other_user}","gists_url":"https://api.github.com/users/natduca/gists{/gist_id}","starred_url":"https://api.github.com/users/natduca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natduca/subscriptions","organizations_url":"https://api.github.com/users/natduca/orgs","repos_url":"https://api.github.com/users/natduca/repos","events_url":"https://api.github.com/users/natduca/events{/privacy}","received_events_url":"https://api.github.com/users/natduca/received_events","type":"User","site_admin":false},"open_issues":53,"closed_issues":13,"state":"open","created_at":"2015-10-07T16:07:09Z","updated_at":"2016-03-21T15:31:09Z","due_on":"2016-04-08T04:00:00Z","closed_at":null},"comments":0,"created_at":"2016-03-21T15:31:09Z","updated_at":"2016-03-21T15:31:09Z","closed_at":null,"body":"Now that we're requiring metric authors to add their metrics to `all_metrics.html`, we should add a presubmit check that makes sure they do this.\r\n\r\n1. Add a script `list_all_metrics` that takes a list of html files, imports them, and then lists all metrics out of the registry.\r\n1. Diff loading `all_metrics.html` against loading all files. If there is a diff, something is wrong.\r\n\r\n@nedn "}}