From 661c1ec71a76c0d608b031fdc3a6f6bb37af0605 Mon Sep 17 00:00:00 2001 From: Ilya Shakhat Date: Thu, 8 Aug 2013 15:47:45 +0400 Subject: [PATCH] Added commit corrections for autogenerated commits Also implemented a webapp handler to return list of commits with loc > threshold. Closes bug 1206124 Change-Id: I06fc8f11337dc4b08442435ba5bc98870dbfb578 --- dashboard/web.py | 14 ++ etc/corrections.json | 443 ++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 454 insertions(+), 3 deletions(-) diff --git a/dashboard/web.py b/dashboard/web.py index e7e43d1d7..5279d14c9 100644 --- a/dashboard/web.py +++ b/dashboard/web.py @@ -630,6 +630,20 @@ def timeline(records, **kwargs): return json.dumps([array_commits, array_commits_hl, array_loc]) +@app.route('/data/report/commit') +@exception_handler() +@record_filter() +def get_commit_report(records): + loc_threshold = int(flask.request.args.get('loc_threshold') or 0) + response = [] + for record in records: + if ('loc' in record) and (record['loc'] > loc_threshold): + nr = dict([(k, record[k]) for k in ['loc', 'subject', 'module', + 'primary_key', 'change_id']]) + response.append(nr) + return json.dumps(response, skipkeys=True, indent=2) + + # Jinja Filters --------- @app.template_filter('datetimeformat') diff --git a/etc/corrections.json b/etc/corrections.json index c1bea4367..f9c653933 100644 --- a/etc/corrections.json +++ b/etc/corrections.json @@ -1,9 +1,446 @@ { "corrections": [ { - "primary_key": "ee3fe4e836ca1c81e50a8324a9b5f982de4fa97f", "correction_comment": "Reset LOC to 0", - "loc": 0 + "loc": 0, + "change_id": "Ie7d07ba7c89857e13d4ddc8f0e9b68de020a3d19", + "primary_key": "ee3fe4e836ca1c81e50a8324a9b5f982de4fa97f", + "module": "neutron", + "subject": "Rename Quantum to Neutron" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": "Ic590f52f14d000d07be6ee9a8da3df976b58c302", + "primary_key": "c519f12729002b70de4fd4c58134601df0abbd06", + "module": "horizon", + "subject": "Add openstack-common" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": "Icdee121c28a2fce0261b567eceaab4d46fd0b64c", + "primary_key": "c799676a386018550803cab8551ce93c1a0c81a8", + "module": "cookbook-openstack-object-storage", + "subject": "Pull in att-cloud swift cookbook (forked from rcbops)" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": null, + "primary_key": "0f82f2ec02524f21f11847bf625981fe702c4a44", + "module": "murano-agent", + "subject": "Removed all projects except Glazier Agent" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": null, + "primary_key": "d6b87b0823981622da33f15c0152e9813d4c5163", + "module": "murano-agent", + "subject": "Fixed issue with renaming of the tabula component." + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": null, + "primary_key": "bb223072507d0288361724ba44c555405cbe3724", + "module": "murano-agent", + "subject": "Fixed issue with renaming of the tabula component." + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": null, + "primary_key": "e94f06e2b897d6273481ac63ca46b689025adddb", + "module": "murano-agent", + "subject": "Tabula renamed to dashboard." + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": null, + "primary_key": "6c0f11c432c94cae3f68fd5b299608851a882032", + "module": "murano-agent", + "subject": "Tabula renamed to dashboard." + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": null, + "primary_key": "68dbd5dcb4d6273e5229d890b7b0cac62b89f6ec", + "module": "murano-agent", + "subject": "Fixed api interface names to environments." + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": null, + "primary_key": "bd97acae541fe27ec540054210854aad7d05e9dd", + "module": "murano-agent", + "subject": "Fixed api interface names to environments." + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": null, + "primary_key": "9e67e5a0fc1ebe10c32786af82d7e517ae7b2a02", + "module": "openvz-nova-driver", + "subject": "initial commit of openvz driver broken out from nova code base" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": "I4c6e3a997e7d4dc6cf42c6af2e7ed4e4ec98ee2f", + "primary_key": "6673ceeb3a2971ec9a4e66c7fc30faf7ba8f8b6b", + "module": "murano-api", + "subject": "Change oslo.config dependacy declaration" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": null, + "primary_key": "33a0a171a39a2ec71e634ade755fc0ccddaa8d49", + "module": "murano-api", + "subject": "Removed all projects except Glazier Api" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": null, + "primary_key": "85eb481e69c4b16d5a61d088fa59f4d2ace566ce", + "module": "murano-conductor", + "subject": "Removed all projects except Glazier Conductor" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": null, + "primary_key": "4c36d113815cc1a3acfbd7d15a77c0bbcb732eb8", + "module": "murano-dashboard", + "subject": "Removed all projects except Glazier Dashboard" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": null, + "primary_key": "0f5debdcb141c948cb2b617febd6742983ba9e4f", + "module": "murano-deployment", + "subject": "Removed all projects except Glazier Deployment" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": "I099710988880d33e4516f54cdf1d3e3cf048f97c", + "primary_key": "306ec988c7c388f80249d3776451da14ad203860", + "module": "murano-docs", + "subject": "Restore broken murano manual" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": "Ieaf61384defed0d4e85d342325aa375050025a00", + "primary_key": "8bd5d3b75de3470e628bd49c014e8bd64ff1f53c", + "module": "murano-docs", + "subject": "Fixed a few small bugs." + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": "I979c55f9c45797e40fc8456cd898351bb94cceb2", + "primary_key": "bd92cadeb9f1e7559a6ffb264905b0e08941cd00", + "module": "murano-docs", + "subject": "Restructured manual" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": null, + "primary_key": "14f2ed419e4938ee160fbdf17004589bc3391a90", + "module": "murano-docs", + "subject": "Removed all projects except Glazier Docs" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": null, + "primary_key": "ff39a427cc87925a09dc22420f229665a1cadadb", + "module": "murano-tests", + "subject": "Removed all projects except Glazier Tests" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": null, + "primary_key": "da48d1474f9776ceb4b35f432f94af926f7a19a7", + "module": "python-muranoclient", + "subject": "Removed all projects except Glazier Api Client" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": null, + "primary_key": "5244811664c7b6cb8c69123b29626dad388d1759", + "module": "barbican", + "subject": "Add oslo/openstack files; Modified barbican-api script and config to support local spinup of uwsgi API server" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": "I0f43f228046b82f9688c4b31b2e14f3680d8c364", + "primary_key": "b60e037e28b2a89a75066275d7ce2226b2e8dca5", + "module": "stackalytics", + "subject": "Removed independent users which could be resolved automatically" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": "I26416d87f05ec5d9c76750e9c63d73cab457d85f", + "primary_key": "b8283eda4e5e3c46cd7b32ab00578db39974c8ef", + "module": "stackalytics", + "subject": "Default data is cleared" + }, + { + "correction_comment": "Removed 13k LOC for default data", + "loc": 5000, + "change_id": "I0cc61c6d344ba24442ec954635010b518c0efa95", + "primary_key": "b7f19335f6c6a710d1e8925f8a9675d9e7115741", + "module": "stackalytics", + "subject": "Implementation of blueprint stackalytics-core" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": null, + "primary_key": "a5f14112181a9f8b70a2c8584008bf955eaf3497", + "module": "stackalytics", + "subject": "Initial code commit" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": null, + "primary_key": "b6c2efaed6d55fe0aa426a8a85f5abba5c65e03e", + "module": "os-collect-config", + "subject": "Revert \"import openstack.common from oslo-incubator\"" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": null, + "primary_key": "f8d710517b55c613be7d7afd999c84e64807ad12", + "module": "os-collect-config", + "subject": "import openstack.common from oslo-incubator" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": "I4810c45d15413bdf21b9f68f59096c907bb1e624", + "primary_key": "b7e36244c09f4b436478ff966a1715fc9b20b895", + "module": "horizon", + "subject": "Updated translations from Transifex" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": "I4f0538d5a42c52099feb523231a7f3f1441fcf2b", + "primary_key": "214eb90d4f5a0cba88bf3484fe75d67e91ded94e", + "module": "publications", + "subject": "Remove everything." + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": "Ie7224fd0699b8e8541ec37070da4302e2fab7453", + "primary_key": "66ad0ed88ed9412739ba8e1dacd3f0a50c48d0b1", + "module": "netconn-api", + "subject": "Updates pom.xml to use 1.5.2 of plugin and new Google Analytics code." + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": "Ib30729297f0e05cb85d79ba6780a9d0ff1b8daf7", + "primary_key": "421a8d732ef91eff1dc54927113b1aa7ad037311", + "module": "openstack-manuals", + "subject": "removed unnecessary spaces" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": "Ic8595278a91a2b979da54e7c7a61a483f399643b", + "primary_key": "f81343617ab23ec9c4084258970d0430359b0e46", + "module": "openstack-manuals", + "subject": "Delete openstack-ops from openstack-manuals repo" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": "I82b10aaf6bf8e53ed522405501263843d381bb1e", + "primary_key": "578a49860a12b45c5bac35672502bfb0e86ffa65", + "module": "anvil", + "subject": "Doc cleanups" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": "I70fc4846252d1a0612007e7140ba2c21ca891bb2", + "primary_key": "83a76bff677b17f7a483bd5d651f65841322df8a", + "module": "climate", + "subject": "Update Oslo" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": "Ibccf83fb6e50b61a5e5ce77233d8221b299c54ba", + "primary_key": "dde53a2ccc244a5e322c0d7a4c06575d7e5457c2", + "module": "savanna", + "subject": "Oslo has been updated" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": "Ia9ee609bbc06a1d8b9d6917642529f30347541fd", + "primary_key": "7ab80b554dde5f1f1e61b6a8c45492c5ac27ed6b", + "module": "trove", + "subject": "Rename from reddwarf to trove." + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": "I61af7a54d09f3d1d6b6efe470ea6308be8ace2e7", + "primary_key": "770c0fd83b19ef2b55a032f750f9e22b9c4c5ea1", + "module": "trove", + "subject": "Refreshed Oslo Code" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": "I85b379dbf5202136cbb987c3f176b9cc7b7ff666", + "primary_key": "f754d1d53dd6a9b14b96f9d165ed687aa5326d87", + "module": "heat", + "subject": "templates : remove in-tree templates" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": null, + "primary_key": "8fb2cac2e60484f3b85976cb0d0717c6869081d1", + "module": "murano-conductor", + "subject": "conductor renamed to muranoconductor, updated for muranocommon 0.2 with RabbitMQ improvements" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": "I02ef05391f14b489fe8510e80cd4a9b9a516e773", + "primary_key": "6add13cf631306420ee13e2e8cb0978e65885509", + "module": "murano-conductor", + "subject": "Migrate to Murano Common" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": null, + "primary_key": "089e2ff25b963cbad11338edbfe245b6027ecf4e", + "module": "ironic", + "subject": "update openstack-common.conf and import from oslo" + }, + + + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": "I0b540e54dbabd26901a7530035a38583bb521fda", + "primary_key": "7e2b93acc59dea81d52684f7f659fcff32507e14", + "module": "nova", + "subject": "removes the nova-volume code from nova" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": null, + "primary_key": "ffcaa95cb879fc4aee322ca528e29a6c394f440d", + "module": "murano-agent", + "subject": "Removed old code" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": null, + "primary_key": "042b28f76d4f62e671a4a815450bf2dd2c58c4fc", + "module": "murano-agent", + "subject": "Updated OpenStack Common (Fixed issue with notifier package)" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": null, + "primary_key": "267724335740497e6d902befa0890b4c4d953722", + "module": "murano-agent", + "subject": "Cloned horizon and added our dashboard" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": null, + "primary_key": "7c6ad61f50b8885ea3bc44443b2041126d80e380", + "module": "murano-agent", + "subject": "Removed obsolete code Removed projects: [windc, windcclient]" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": "Id401feea7ed7d0a7861a44f9ccc294615617f928", + "primary_key": "59a193789ddd7a700e8ab9e781da94997b65a99a", + "module": "ceilometer", + "subject": "api: replace minified files by complete version" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": "I06d4e9834d66d834e9e636ffcd80ae5e4afa34d7", + "primary_key": "8a6c81ad277756cfce5b7bf088a603874f425a57", + "module": "horizon", + "subject": "Updated translations from transifex for Grizzly RC." + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": "I7235b41d449b26c980668fc3eb4360b24508717b", + "primary_key": "cb8e7c1f8f0b238b88253cd6d82092cbe530ba9e", + "module": "horizon", + "subject": "Splits OpenStack Dashboard bits from framework app code." + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": "Ic3d7b73d0b7ad0fcb5841a6ac90a2a21653d05be", + "primary_key": "175efb4f735a181b60d5ed18d72b5e37b139c14b", + "module": "horizon", + "subject": "Final translations for Folsom." + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": "I2140035f98bd332f25d7dd7569993bcd960a869e", + "primary_key": "762f2e19cf60f1de2bb45b6f67c1bee762804712", + "module": "cinder", + "subject": "Cinder devref doc cleanups" + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": "I55f5eaca73e7962bbf48903786ec3d3665ba01e0", + "primary_key": "4d8e331635a1d9ed9ea1ae574a79a370265aef0b", + "module": "horizon", + "subject": "Updating .po files for translation." + }, + { + "correction_comment": "Reset LOC to 0", + "loc": 0, + "change_id": "I9ad1b441eca855a4304454014ae746ec51bef8f3", + "primary_key": "c8a5bc39dccd513d879ad042165e4713fc2a3878", + "module": "trove", + "subject": "Update oslo codebase within reddwarf." } ] -} \ No newline at end of file +}