├── .eslintrc.js ├── .gitignore ├── .neutrinorc.js ├── .travis.yml ├── CODE_OF_CONDUCT.md ├── LICENSE ├── README.md ├── jest.config.js ├── netlify.toml ├── package.json ├── poetry.lock ├── pyproject.toml ├── scripts └── generateTriageOwners.js ├── src ├── App │ └── index.jsx ├── components │ ├── BugzillaComponentDetails │ │ └── index.jsx │ ├── BugzillaComponents │ │ ├── index.css │ │ └── index.jsx │ ├── ChartJsWrapper │ │ └── index.jsx │ ├── DetailView │ │ └── index.jsx │ ├── DrilldownIcon │ │ └── index.jsx │ ├── Header │ │ └── index.jsx │ ├── NotFound │ │ └── index.jsx │ ├── PropsRoute │ │ └── index.jsx │ ├── Reportees │ │ ├── index.css │ │ └── index.jsx │ ├── Teams │ │ └── index.jsx │ └── auth │ │ ├── AuthContext.jsx │ │ ├── AuthController.js │ │ ├── UserSession.js │ │ └── oauth2.js ├── config.js ├── containers │ └── BugzillaGraph │ │ └── index.jsx ├── index.jsx ├── static │ ├── fakeOrg.json │ └── triageOwners.json ├── utils │ ├── artifacts.js │ ├── bugzilla │ │ ├── generateChartJsData.js │ │ ├── getBugsCountAndLink.js │ │ ├── queryBugzilla.js │ │ ├── settings.js │ │ └── sort.js │ ├── chartJs │ │ ├── colors.js │ │ ├── generateDatasetStyle.js │ │ └── generateOptions.js │ ├── fetchJson.js │ ├── getAllReportees.js │ ├── getBugzillaOwners.js │ └── toDayOfWeek.js └── views │ ├── CredentialsMenu │ └── index.jsx │ ├── Main │ └── index.jsx │ ├── OAuth2Login │ └── index.jsx │ ├── ProfileMenu │ └── index.jsx │ └── Teams │ └── index.jsx ├── test ├── components │ ├── BugzillaComponentDetails.test.jsx │ ├── BugzillaComponents.test.jsx │ ├── DrilldownIcon.test.jsx │ ├── Header.test.jsx │ ├── Reportees.test.jsx │ └── __snapshots__ │ │ ├── BugzillaComponentDetails.test.jsx.snap │ │ ├── BugzillaComponents.test.jsx.snap │ │ ├── DrilldownIcon.test.jsx.snap │ │ ├── Header.test.jsx.snap │ │ └── Reportees.test.jsx.snap ├── mocks │ ├── bugzillaComponents.js │ └── partialOrg.js └── utils │ └── toDayOfWeek.test.js ├── webpack.config.js └── yarn.lock /.eslintrc.js: -------------------------------------------------------------------------------- 1 | const neutrino = require('neutrino'); 2 | 3 | module.exports = neutrino().eslintrc(); 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | 8 | # Runtime data 9 | pids 10 | *.pid 11 | *.seed 12 | *.pid.lock 13 | 14 | # Directory for instrumented libs generated by jscoverage/JSCover 15 | lib-cov 16 | 17 | # Coverage directory used by tools like istanbul 18 | coverage 19 | 20 | # nyc test coverage 21 | .nyc_output 22 | 23 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 24 | .grunt 25 | 26 | # Bower dependency directory (https://bower.io/) 27 | bower_components 28 | 29 | # node-waf configuration 30 | .lock-wscript 31 | 32 | # Compiled binary addons (https://nodejs.org/api/addons.html) 33 | build/Release 34 | 35 | # Dependency directories 36 | node_modules/ 37 | jspm_packages/ 38 | 39 | # TypeScript v1 declaration files 40 | typings/ 41 | 42 | # Optional npm cache directory 43 | .npm 44 | 45 | # Optional eslint cache 46 | .eslintcache 47 | 48 | # Optional REPL history 49 | .node_repl_history 50 | 51 | # Output of 'npm pack' 52 | *.tgz 53 | 54 | # Yarn Integrity file 55 | .yarn-integrity 56 | 57 | # dotenv environment variables file 58 | .env 59 | 60 | # next.js build output 61 | .next 62 | 63 | # Ignore Neutrino's build directory 64 | build 65 | 66 | # Ignore private static content 67 | private 68 | -------------------------------------------------------------------------------- /.neutrinorc.js: -------------------------------------------------------------------------------- 1 | const airbnb = require('@neutrinojs/airbnb'); 2 | const react = require('@neutrinojs/react'); 3 | const jest = require('@neutrinojs/jest'); 4 | const copy = require('@neutrinojs/copy'); 5 | 6 | module.exports = { 7 | options: { 8 | root: __dirname, 9 | }, 10 | use: [ 11 | airbnb(), 12 | react({ 13 | html: { 14 | title: 'bugzilla-dashboard' 15 | }, 16 | env: { 17 | ALTERNATIVE_AUTH: false, 18 | }, 19 | }), 20 | jest(), 21 | copy({ 22 | patterns: [ 23 | { from: 'src/static/fakeOrg.json', to: 'people.json' }, 24 | { from: 'src/static/triageOwners.json', to: 'triageOwners.json' }, 25 | ], 26 | }) 27 | ] 28 | }; 29 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | dist: bionic 2 | language: node_js 3 | cache: yarn 4 | node_js: 5 | - '10' 6 | - '12' 7 | install: 8 | - yarn install --frozen-lockfile 9 | after_failure: 10 | - yarn build -- --inspect 11 | script: 12 | - yarn lint 13 | - yarn build 14 | - yarn test 15 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Community Participation Guidelines 2 | 3 | This repository is governed by Mozilla's code of conduct and etiquette guidelines. 4 | For more details, please read the 5 | [Mozilla Community Participation Guidelines](https://www.mozilla.org/about/governance/policies/participation/). 6 | 7 | ## How to Report 8 | For more information on how to report violations of the Community Participation Guidelines, please read our '[How to Report](https://www.mozilla.org/about/governance/policies/participation/reporting/)' page. 9 | 10 | 16 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Mozilla Public License Version 2.0 2 | ================================== 3 | 4 | 1. Definitions 5 | -------------- 6 | 7 | 1.1. "Contributor" 8 | means each individual or legal entity that creates, contributes to 9 | the creation of, or owns Covered Software. 10 | 11 | 1.2. "Contributor Version" 12 | means the combination of the Contributions of others (if any) used 13 | by a Contributor and that particular Contributor's Contribution. 14 | 15 | 1.3. "Contribution" 16 | means Covered Software of a particular Contributor. 17 | 18 | 1.4. "Covered Software" 19 | means Source Code Form to which the initial Contributor has attached 20 | the notice in Exhibit A, the Executable Form of such Source Code 21 | Form, and Modifications of such Source Code Form, in each case 22 | including portions thereof. 23 | 24 | 1.5. "Incompatible With Secondary Licenses" 25 | means 26 | 27 | (a) that the initial Contributor has attached the notice described 28 | in Exhibit B to the Covered Software; or 29 | 30 | (b) that the Covered Software was made available under the terms of 31 | version 1.1 or earlier of the License, but not also under the 32 | terms of a Secondary License. 33 | 34 | 1.6. "Executable Form" 35 | means any form of the work other than Source Code Form. 36 | 37 | 1.7. "Larger Work" 38 | means a work that combines Covered Software with other material, in 39 | a separate file or files, that is not Covered Software. 40 | 41 | 1.8. "License" 42 | means this document. 43 | 44 | 1.9. "Licensable" 45 | means having the right to grant, to the maximum extent possible, 46 | whether at the time of the initial grant or subsequently, any and 47 | all of the rights conveyed by this License. 48 | 49 | 1.10. "Modifications" 50 | means any of the following: 51 | 52 | (a) any file in Source Code Form that results from an addition to, 53 | deletion from, or modification of the contents of Covered 54 | Software; or 55 | 56 | (b) any new file in Source Code Form that contains any Covered 57 | Software. 58 | 59 | 1.11. "Patent Claims" of a Contributor 60 | means any patent claim(s), including without limitation, method, 61 | process, and apparatus claims, in any patent Licensable by such 62 | Contributor that would be infringed, but for the grant of the 63 | License, by the making, using, selling, offering for sale, having 64 | made, import, or transfer of either its Contributions or its 65 | Contributor Version. 66 | 67 | 1.12. "Secondary License" 68 | means either the GNU General Public License, Version 2.0, the GNU 69 | Lesser General Public License, Version 2.1, the GNU Affero General 70 | Public License, Version 3.0, or any later versions of those 71 | licenses. 72 | 73 | 1.13. "Source Code Form" 74 | means the form of the work preferred for making modifications. 75 | 76 | 1.14. "You" (or "Your") 77 | means an individual or a legal entity exercising rights under this 78 | License. For legal entities, "You" includes any entity that 79 | controls, is controlled by, or is under common control with You. For 80 | purposes of this definition, "control" means (a) the power, direct 81 | or indirect, to cause the direction or management of such entity, 82 | whether by contract or otherwise, or (b) ownership of more than 83 | fifty percent (50%) of the outstanding shares or beneficial 84 | ownership of such entity. 85 | 86 | 2. License Grants and Conditions 87 | -------------------------------- 88 | 89 | 2.1. Grants 90 | 91 | Each Contributor hereby grants You a world-wide, royalty-free, 92 | non-exclusive license: 93 | 94 | (a) under intellectual property rights (other than patent or trademark) 95 | Licensable by such Contributor to use, reproduce, make available, 96 | modify, display, perform, distribute, and otherwise exploit its 97 | Contributions, either on an unmodified basis, with Modifications, or 98 | as part of a Larger Work; and 99 | 100 | (b) under Patent Claims of such Contributor to make, use, sell, offer 101 | for sale, have made, import, and otherwise transfer either its 102 | Contributions or its Contributor Version. 103 | 104 | 2.2. Effective Date 105 | 106 | The licenses granted in Section 2.1 with respect to any Contribution 107 | become effective for each Contribution on the date the Contributor first 108 | distributes such Contribution. 109 | 110 | 2.3. Limitations on Grant Scope 111 | 112 | The licenses granted in this Section 2 are the only rights granted under 113 | this License. No additional rights or licenses will be implied from the 114 | distribution or licensing of Covered Software under this License. 115 | Notwithstanding Section 2.1(b) above, no patent license is granted by a 116 | Contributor: 117 | 118 | (a) for any code that a Contributor has removed from Covered Software; 119 | or 120 | 121 | (b) for infringements caused by: (i) Your and any other third party's 122 | modifications of Covered Software, or (ii) the combination of its 123 | Contributions with other software (except as part of its Contributor 124 | Version); or 125 | 126 | (c) under Patent Claims infringed by Covered Software in the absence of 127 | its Contributions. 128 | 129 | This License does not grant any rights in the trademarks, service marks, 130 | or logos of any Contributor (except as may be necessary to comply with 131 | the notice requirements in Section 3.4). 132 | 133 | 2.4. Subsequent Licenses 134 | 135 | No Contributor makes additional grants as a result of Your choice to 136 | distribute the Covered Software under a subsequent version of this 137 | License (see Section 10.2) or under the terms of a Secondary License (if 138 | permitted under the terms of Section 3.3). 139 | 140 | 2.5. Representation 141 | 142 | Each Contributor represents that the Contributor believes its 143 | Contributions are its original creation(s) or it has sufficient rights 144 | to grant the rights to its Contributions conveyed by this License. 145 | 146 | 2.6. Fair Use 147 | 148 | This License is not intended to limit any rights You have under 149 | applicable copyright doctrines of fair use, fair dealing, or other 150 | equivalents. 151 | 152 | 2.7. Conditions 153 | 154 | Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted 155 | in Section 2.1. 156 | 157 | 3. Responsibilities 158 | ------------------- 159 | 160 | 3.1. Distribution of Source Form 161 | 162 | All distribution of Covered Software in Source Code Form, including any 163 | Modifications that You create or to which You contribute, must be under 164 | the terms of this License. You must inform recipients that the Source 165 | Code Form of the Covered Software is governed by the terms of this 166 | License, and how they can obtain a copy of this License. You may not 167 | attempt to alter or restrict the recipients' rights in the Source Code 168 | Form. 169 | 170 | 3.2. Distribution of Executable Form 171 | 172 | If You distribute Covered Software in Executable Form then: 173 | 174 | (a) such Covered Software must also be made available in Source Code 175 | Form, as described in Section 3.1, and You must inform recipients of 176 | the Executable Form how they can obtain a copy of such Source Code 177 | Form by reasonable means in a timely manner, at a charge no more 178 | than the cost of distribution to the recipient; and 179 | 180 | (b) You may distribute such Executable Form under the terms of this 181 | License, or sublicense it under different terms, provided that the 182 | license for the Executable Form does not attempt to limit or alter 183 | the recipients' rights in the Source Code Form under this License. 184 | 185 | 3.3. Distribution of a Larger Work 186 | 187 | You may create and distribute a Larger Work under terms of Your choice, 188 | provided that You also comply with the requirements of this License for 189 | the Covered Software. If the Larger Work is a combination of Covered 190 | Software with a work governed by one or more Secondary Licenses, and the 191 | Covered Software is not Incompatible With Secondary Licenses, this 192 | License permits You to additionally distribute such Covered Software 193 | under the terms of such Secondary License(s), so that the recipient of 194 | the Larger Work may, at their option, further distribute the Covered 195 | Software under the terms of either this License or such Secondary 196 | License(s). 197 | 198 | 3.4. Notices 199 | 200 | You may not remove or alter the substance of any license notices 201 | (including copyright notices, patent notices, disclaimers of warranty, 202 | or limitations of liability) contained within the Source Code Form of 203 | the Covered Software, except that You may alter any license notices to 204 | the extent required to remedy known factual inaccuracies. 205 | 206 | 3.5. Application of Additional Terms 207 | 208 | You may choose to offer, and to charge a fee for, warranty, support, 209 | indemnity or liability obligations to one or more recipients of Covered 210 | Software. However, You may do so only on Your own behalf, and not on 211 | behalf of any Contributor. You must make it absolutely clear that any 212 | such warranty, support, indemnity, or liability obligation is offered by 213 | You alone, and You hereby agree to indemnify every Contributor for any 214 | liability incurred by such Contributor as a result of warranty, support, 215 | indemnity or liability terms You offer. You may include additional 216 | disclaimers of warranty and limitations of liability specific to any 217 | jurisdiction. 218 | 219 | 4. Inability to Comply Due to Statute or Regulation 220 | --------------------------------------------------- 221 | 222 | If it is impossible for You to comply with any of the terms of this 223 | License with respect to some or all of the Covered Software due to 224 | statute, judicial order, or regulation then You must: (a) comply with 225 | the terms of this License to the maximum extent possible; and (b) 226 | describe the limitations and the code they affect. Such description must 227 | be placed in a text file included with all distributions of the Covered 228 | Software under this License. Except to the extent prohibited by statute 229 | or regulation, such description must be sufficiently detailed for a 230 | recipient of ordinary skill to be able to understand it. 231 | 232 | 5. Termination 233 | -------------- 234 | 235 | 5.1. The rights granted under this License will terminate automatically 236 | if You fail to comply with any of its terms. However, if You become 237 | compliant, then the rights granted under this License from a particular 238 | Contributor are reinstated (a) provisionally, unless and until such 239 | Contributor explicitly and finally terminates Your grants, and (b) on an 240 | ongoing basis, if such Contributor fails to notify You of the 241 | non-compliance by some reasonable means prior to 60 days after You have 242 | come back into compliance. Moreover, Your grants from a particular 243 | Contributor are reinstated on an ongoing basis if such Contributor 244 | notifies You of the non-compliance by some reasonable means, this is the 245 | first time You have received notice of non-compliance with this License 246 | from such Contributor, and You become compliant prior to 30 days after 247 | Your receipt of the notice. 248 | 249 | 5.2. If You initiate litigation against any entity by asserting a patent 250 | infringement claim (excluding declaratory judgment actions, 251 | counter-claims, and cross-claims) alleging that a Contributor Version 252 | directly or indirectly infringes any patent, then the rights granted to 253 | You by any and all Contributors for the Covered Software under Section 254 | 2.1 of this License shall terminate. 255 | 256 | 5.3. In the event of termination under Sections 5.1 or 5.2 above, all 257 | end user license agreements (excluding distributors and resellers) which 258 | have been validly granted by You or Your distributors under this License 259 | prior to termination shall survive termination. 260 | 261 | ************************************************************************ 262 | * * 263 | * 6. Disclaimer of Warranty * 264 | * ------------------------- * 265 | * * 266 | * Covered Software is provided under this License on an "as is" * 267 | * basis, without warranty of any kind, either expressed, implied, or * 268 | * statutory, including, without limitation, warranties that the * 269 | * Covered Software is free of defects, merchantable, fit for a * 270 | * particular purpose or non-infringing. The entire risk as to the * 271 | * quality and performance of the Covered Software is with You. * 272 | * Should any Covered Software prove defective in any respect, You * 273 | * (not any Contributor) assume the cost of any necessary servicing, * 274 | * repair, or correction. This disclaimer of warranty constitutes an * 275 | * essential part of this License. No use of any Covered Software is * 276 | * authorized under this License except under this disclaimer. * 277 | * * 278 | ************************************************************************ 279 | 280 | ************************************************************************ 281 | * * 282 | * 7. Limitation of Liability * 283 | * -------------------------- * 284 | * * 285 | * Under no circumstances and under no legal theory, whether tort * 286 | * (including negligence), contract, or otherwise, shall any * 287 | * Contributor, or anyone who distributes Covered Software as * 288 | * permitted above, be liable to You for any direct, indirect, * 289 | * special, incidental, or consequential damages of any character * 290 | * including, without limitation, damages for lost profits, loss of * 291 | * goodwill, work stoppage, computer failure or malfunction, or any * 292 | * and all other commercial damages or losses, even if such party * 293 | * shall have been informed of the possibility of such damages. This * 294 | * limitation of liability shall not apply to liability for death or * 295 | * personal injury resulting from such party's negligence to the * 296 | * extent applicable law prohibits such limitation. Some * 297 | * jurisdictions do not allow the exclusion or limitation of * 298 | * incidental or consequential damages, so this exclusion and * 299 | * limitation may not apply to You. * 300 | * * 301 | ************************************************************************ 302 | 303 | 8. Litigation 304 | ------------- 305 | 306 | Any litigation relating to this License may be brought only in the 307 | courts of a jurisdiction where the defendant maintains its principal 308 | place of business and such litigation shall be governed by laws of that 309 | jurisdiction, without reference to its conflict-of-law provisions. 310 | Nothing in this Section shall prevent a party's ability to bring 311 | cross-claims or counter-claims. 312 | 313 | 9. Miscellaneous 314 | ---------------- 315 | 316 | This License represents the complete agreement concerning the subject 317 | matter hereof. If any provision of this License is held to be 318 | unenforceable, such provision shall be reformed only to the extent 319 | necessary to make it enforceable. Any law or regulation which provides 320 | that the language of a contract shall be construed against the drafter 321 | shall not be used to construe this License against a Contributor. 322 | 323 | 10. Versions of the License 324 | --------------------------- 325 | 326 | 10.1. New Versions 327 | 328 | Mozilla Foundation is the license steward. Except as provided in Section 329 | 10.3, no one other than the license steward has the right to modify or 330 | publish new versions of this License. Each version will be given a 331 | distinguishing version number. 332 | 333 | 10.2. Effect of New Versions 334 | 335 | You may distribute the Covered Software under the terms of the version 336 | of the License under which You originally received the Covered Software, 337 | or under the terms of any subsequent version published by the license 338 | steward. 339 | 340 | 10.3. Modified Versions 341 | 342 | If you create software not governed by this License, and you want to 343 | create a new license for such software, you may create and use a 344 | modified version of this License if you rename the license and remove 345 | any references to the name of the license steward (except to note that 346 | such modified license differs from this License). 347 | 348 | 10.4. Distributing Source Code Form that is Incompatible With Secondary 349 | Licenses 350 | 351 | If You choose to distribute Source Code Form that is Incompatible With 352 | Secondary Licenses under the terms of this version of the License, the 353 | notice described in Exhibit B of this License must be attached. 354 | 355 | Exhibit A - Source Code Form License Notice 356 | ------------------------------------------- 357 | 358 | This Source Code Form is subject to the terms of the Mozilla Public 359 | License, v. 2.0. If a copy of the MPL was not distributed with this 360 | file, You can obtain one at http://mozilla.org/MPL/2.0/. 361 | 362 | If it is not possible or desirable to put the notice in a particular 363 | file, then You may include the notice in a location (such as a LICENSE 364 | file in a relevant directory) where a recipient would be likely to look 365 | for such a notice. 366 | 367 | You may add additional accurate notices of copyright ownership. 368 | 369 | Exhibit B - "Incompatible With Secondary Licenses" Notice 370 | --------------------------------------------------------- 371 | 372 | This Source Code Form is "Incompatible With Secondary Licenses", as 373 | defined by the Mozilla Public License, v. 2.0. 374 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # The Bugzilla management dashboard 2 | 3 | This is a Bugzilla dashboard that helps management determine Bugzilla components triaging status plus listing members of their reporting chain. 4 | 5 | Only LDAP users are allowed to use this app. You can do development locally without an LDAP account, however, the app will only 6 | have fake org data. See the [Contribute](#contribute) section. 7 | 8 | You can see the deployment in our [Netlify instance](http://bugzilla-management-dashboard.netlify.com/). 9 | 10 | ## Adding more teams 11 | 12 | A team is a collection of components that can span various products and it is shown under the Teams tab. 13 | You can add new teams and make them show in the Teams tab by making changes to the [config](https://github.com/mozilla/bugzilla-dashboard/blob/master/src/config.js) file. 14 | 15 | To add a team you need to modify `TEAMS_CONFIG` and an entry similar to this: 16 | 17 | ```javascript 18 | export const TEAMS_CONFIG = { 19 | domCore: { 20 | label: 'DOM Core', 21 | owner: 'someone@mozilla.com', 22 | product: ['Core'], 23 | component: [ 24 | 'DOM: Core & HTML', 'DOM: Events', 25 | 'Editor', 'HTML: Parser', 'Selection', 'Serializers', 26 | 'User events and focus handling', 27 | ], 28 | }, 29 | ``` 30 | 31 | Here's how to configure it: 32 | 33 | * `product` and `component` are parameters passed to the Bugzilla queries. 34 | * `owner` should match someone reporting to you. 35 | * Use their Bugzilla email rather than their LDAP 36 | * If the person does is not someone showing up on your Reportees tab it won't work 37 | * `label` is the name of the team 38 | 39 | ## Generate data 40 | 41 | Until we have a backend, we need to regenerate certain files to bring the app up-to-date. 42 | 43 | ### Org related data 44 | 45 | The data is stored in Taskcluster Secrets and it's only accessible to moco_team. See [bug 1540823](https://bugzilla.mozilla.org/show_bug.cgi?id=1540823) 46 | 47 | To update the data you will need to take a Phonebook dump, get it reduced and converted to Yaml and upload it to Taskcluster Secrets. 48 | 49 | Requirements: 50 | 51 | * Python 52 | * pip (which comes with Python) or [poetry](https://poetry.eustace.io/docs/#installation) 53 | 54 | Set up the virtualenv with `poetry`: 55 | 56 | ```bash 57 | poetry install 58 | poetry shell 59 | ``` 60 | 61 | or: 62 | 63 | ```bash 64 | python3 -m venv venv 65 | source ./venv/bin/activate 66 | pip install PyYaml 67 | ``` 68 | 69 | Execute the command: 70 | 71 | ```bash 72 | python scripts/processPeopleFile.py --path /path/to/phonebook.json 73 | ``` 74 | 75 | You can read in [here](https://github.com/mozilla-iam/cis/issues/402) what changes are needed to get data from CIS. 76 | 77 | ### triageOwners.json 78 | 79 | This file is checked-in because it makes the app snapier, however, it can fall out of date. 80 | 81 | To regenerate it run this and commit the updated file: 82 | 83 | ```bash 84 | node scripts/generateTriageOwners.js 85 | ``` 86 | 87 | ## Contribute 88 | 89 | If you don't have LDAP access you can start the app with `yarn start:alternativeAuth` and use Google or GitHub to authenticate. This will 90 | not give you access to a functioning app, however, it will allow you to make contributions to the authenticated interface. 91 | 92 | Issue #66 will add fake data into this alternative auth approach. 93 | 94 | ## Auth info 95 | 96 | This app authenticates with Mozilla's official [Auth0 domain](https://auth.mozilla.auth0.com). 97 | It uses SSO and it only allows authentication of Mozilla staff via LDAP. 98 | 99 | The authentication configuration has the following characteristics: 100 | 101 | * There are two different Auth0 clients 102 | * An official one (SSO + LDAP) and the other for non-LDAP contributors 103 | * Non-LDAP users will receive fake org data 104 | * After a user authenticates, the auth will also authenticate with Firefox CI Taskcluster (`firefox-ci-tc.services.mozilla.com`) 105 | * This is in order to later fetch a Taskcluster secret (only available to LDAP users) 106 | 107 | ## Running & tests 108 | 109 | * [Install Yarn](https://yarnpkg.com/lang/en/docs/install/) 110 | 111 | * To install the dependencies: 112 | 113 | ```bash 114 | yarn install 115 | ``` 116 | 117 | * To run the tests: 118 | 119 | ```bash 120 | yarn test -u 121 | ``` 122 | 123 | * To run the linting tests 124 | 125 | ```bash 126 | yarn lint 127 | ``` 128 | 129 | * To run the project 130 | 131 | ```bash 132 | yarn install 133 | yarn start 134 | ``` 135 | -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- 1 | const neutrino = require('neutrino'); 2 | 3 | process.env.NODE_ENV = process.env.NODE_ENV || 'test'; 4 | 5 | module.exports = neutrino().jest(); 6 | -------------------------------------------------------------------------------- /netlify.toml: -------------------------------------------------------------------------------- 1 | [[redirects]] 2 | from = "/*" 3 | to = "/" 4 | status = 200 5 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bugzilla-dashboard", 3 | "version": "1.0.0", 4 | "main": "index.js", 5 | "repository": "git@github.com:mozilla/bugzilla-dashboard.git", 6 | "author": "Armen Zambrano G. ", 7 | "license": "MPL-2.0", 8 | "scripts": { 9 | "build": "webpack --mode production", 10 | "start": "webpack-dev-server --mode development", 11 | "start:alternativeAuth": "ALTERNATIVE_AUTH=true webpack-dev-server --mode development", 12 | "test": "jest", 13 | "lint": "eslint --cache --format codeframe --ext mjs,jsx,js src test" 14 | }, 15 | "husky": { 16 | "hooks": { 17 | "pre-commit": "lint-staged", 18 | "pre-push": "yarn test" 19 | } 20 | }, 21 | "lint-staged": { 22 | "*.js[x]": [ 23 | "yarn lint" 24 | ] 25 | }, 26 | "dependencies": { 27 | "@material-ui/core": "^3.9.4", 28 | "@material-ui/icons": "^3.0.1", 29 | "@mozilla-frontend-infra/components": "^2.5.0", 30 | "chart.js": "^2.9.3", 31 | "client-oauth2": "^4.2.5", 32 | "mitt": "^1.2.0", 33 | "moment": "^2.23.0", 34 | "mui-datatables": "^2.14.0", 35 | "pako": "^1.0.11", 36 | "prop-types": "^15", 37 | "query-string": "^6.12.1", 38 | "react": "^16.13.1", 39 | "react-chartjs-2": "^2.9.0", 40 | "react-dom": "^16.13.1", 41 | "react-hot-loader": "^4.12.20", 42 | "react-router-dom": "^4.3.1", 43 | "taskcluster-client-web": "9.0.0", 44 | "taskcluster-lib-urls": "^12.1.0", 45 | "typeface-roboto": "^0.0.54" 46 | }, 47 | "devDependencies": { 48 | "@neutrinojs/airbnb": "^9.1.0", 49 | "@neutrinojs/copy": "^9.1.0", 50 | "@neutrinojs/jest": "^9.1.0", 51 | "@neutrinojs/react": "^9.1.0", 52 | "eslint": "^5", 53 | "husky": "^1.2.0", 54 | "jest": "^24.9.0", 55 | "lint-staged": "^8.2.1", 56 | "neutrino": "^9.1.0", 57 | "node-fetch": "^2.6.1", 58 | "react-test-renderer": "^16.13.1", 59 | "webpack": "^4.42.1", 60 | "webpack-cli": "^3.3.11", 61 | "webpack-dev-server": "^3.10.3" 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /poetry.lock: -------------------------------------------------------------------------------- 1 | [[package]] 2 | category = "main" 3 | description = "YAML parser and emitter for Python" 4 | name = "pyyaml" 5 | optional = false 6 | python-versions = "*" 7 | version = "5.1.1" 8 | 9 | [metadata] 10 | content-hash = "d6eed38496fd6a7c1927718da48f0c5e52ff600ec23b7364237f008401fa89b5" 11 | python-versions = "^2.7" 12 | 13 | [metadata.hashes] 14 | pyyaml = ["57acc1d8533cbe51f6662a55434f0dbecfa2b9eaf115bede8f6fd00115a0c0d3", "588c94b3d16b76cfed8e0be54932e5729cc185caffaa5a451e7ad2f7ed8b4043", "68c8dd247f29f9a0d09375c9c6b8fdc64b60810ebf07ba4cdd64ceee3a58c7b7", "70d9818f1c9cd5c48bb87804f2efc8692f1023dac7f1a1a5c61d454043c1d265", "86a93cccd50f8c125286e637328ff4eef108400dd7089b46a7be3445eecfa391", "a0f329125a926876f647c9fa0ef32801587a12328b4a3c741270464e3e4fa778", "a3c252ab0fa1bb0d5a3f6449a4826732f3eb6c0270925548cac342bc9b22c225", "b4bb4d3f5e232425e25dda21c070ce05168a786ac9eda43768ab7f3ac2770955", "cd0618c5ba5bda5f4039b9398bb7fb6a317bb8298218c3de25c47c4740e4b95e", "ceacb9e5f8474dcf45b940578591c7f3d960e82f926c707788a570b51ba59190", "fe6a88094b64132c4bb3b631412e90032e8cfe9745a58370462240b8cb7553cd"] 15 | -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- 1 | [tool.poetry] 2 | name = "bugzilla-dashboard" 3 | version = "0.1.0" 4 | description = "" 5 | authors = ["Armen Zambrano G. "] 6 | license = "MPL-2.0" 7 | 8 | [tool.poetry.dependencies] 9 | python = "^2.7" 10 | PyYAML = "^5.1" 11 | 12 | [tool.poetry.dev-dependencies] 13 | 14 | [build-system] 15 | requires = ["poetry>=0.12"] 16 | build-backend = "poetry.masonry.api" 17 | -------------------------------------------------------------------------------- /scripts/generateTriageOwners.js: -------------------------------------------------------------------------------- 1 | /* This is a script to regenerate triageOwners.json 2 | * This script is not used as part of the running of the app 3 | * Redirect the output to src/static/triageOwners.json 4 | */ 5 | const fs = require('fs'); 6 | // eslint-disable-next-line import/no-extraneous-dependencies 7 | const fetch = require('node-fetch'); 8 | 9 | function generateTriageOwners() { 10 | fetch('https://bugzilla.mozilla.org/rest/product' 11 | + '?type=accessible&include_fields=name&include_fields=components' 12 | + '&exclude_fields=components.flag_types&exclude_fields=components.description') 13 | .then(res => res.json()) 14 | .then((bzComponents) => { 15 | const owners = {}; 16 | for (let i = 0; i < bzComponents.products.length;) { 17 | const product = bzComponents.products[i]; 18 | for (let j = 0; j < product.components.length;) { 19 | const triageOwner = product.components[j].triage_owner; 20 | if (triageOwner && triageOwner !== '') { 21 | if (!owners[triageOwner]) { 22 | owners[triageOwner] = []; 23 | } 24 | owners[triageOwner].push({ 25 | product: product.name, 26 | component: product.components[j].name, 27 | }); 28 | } 29 | j += 1; 30 | } 31 | i += 1; 32 | } 33 | fs.writeFile('src/static/triageOwners.json', JSON.stringify(owners, null, 4), (err) => { 34 | if (err) console.log('error', err); 35 | }); 36 | }) 37 | .catch(error => console.error(error)); 38 | } 39 | 40 | generateTriageOwners(); 41 | -------------------------------------------------------------------------------- /src/App/index.jsx: -------------------------------------------------------------------------------- 1 | import { hot } from 'react-hot-loader'; 2 | import React from 'react'; 3 | import PropTypes from 'prop-types'; 4 | import { 5 | BrowserRouter, 6 | Switch, 7 | Redirect, 8 | Route, 9 | } from 'react-router-dom'; 10 | import { withStyles } from '@material-ui/core/styles'; 11 | import ErrorPanel from '@mozilla-frontend-infra/components/ErrorPanel'; 12 | import Spinner from '@mozilla-frontend-infra/components/Spinner'; 13 | 14 | import Main from '../views/Main'; 15 | import PropsRoute from '../components/PropsRoute'; 16 | import AuthContext from '../components/auth/AuthContext'; 17 | import AuthController from '../components/auth/AuthController'; 18 | import NotFound from '../components/NotFound'; 19 | import OAuth2Login from '../views/OAuth2Login'; 20 | 21 | const styles = () => ({ 22 | '@global': { 23 | body: { 24 | fontFamily: 'Roboto, sans-serif', 25 | margin: 0, 26 | }, 27 | }, 28 | }); 29 | 30 | 31 | class App extends React.Component { 32 | state = { 33 | authReady: false, 34 | error: undefined, 35 | }; 36 | 37 | authController = new AuthController(); 38 | 39 | // eslint-disable-next-line camelcase 40 | UNSAFE_componentWillMount() { 41 | this.authController.on( 42 | 'user-session-changed', 43 | this.handleUserSessionChanged, 44 | ); 45 | 46 | // Start the Oauth code exchange when it hass received as /?code=XXX 47 | const params = new URLSearchParams(window.location.search); 48 | if (params.get('code') !== null) { 49 | this.authController.exchangeCode(window.location.href); 50 | } 51 | 52 | // we do not want to automatically load a user session on the login views; this is 53 | // a hack until they get an entry point of their own with no UI. 54 | if (!window.location.pathname.startsWith('/login')) { 55 | this.authController.loadUserSession(); 56 | } else { 57 | this.setState({ authReady: true }); 58 | } 59 | } 60 | 61 | componentWillUnmount() { 62 | this.authController.removeListener( 63 | 'user-session-changed', 64 | this.handleUserSessionChanged, 65 | ); 66 | } 67 | 68 | handleUserSessionChanged = (userSession) => { 69 | // Consider auth "ready" when we have no userSession, a userSession with no 70 | // renewAfter, or a renewAfter that is not in the past. Once auth is 71 | // ready, it never becomes non-ready again. 72 | const { authReady } = this.state; 73 | if (!authReady) { 74 | const newState = !userSession 75 | || !userSession.renewAfter 76 | || new Date(userSession.renewAfter) > new Date(); 77 | this.setState({ authReady: newState }); 78 | } 79 | }; 80 | 81 | render() { 82 | const { authReady, error } = this.state; 83 | 84 | return ( 85 | 86 |
87 | {error && } 88 | {authReady ? ( 89 | 90 | 91 | 92 | 93 | 94 | 99 | 100 | 101 | 102 | 103 | ) : ( 104 | 105 | )} 106 |
107 |
108 | ); 109 | } 110 | } 111 | 112 | App.propTypes = { 113 | classes: PropTypes.shape({}).isRequired, 114 | }; 115 | export default hot(module)(withStyles(styles)(App)); 116 | -------------------------------------------------------------------------------- /src/components/BugzillaComponentDetails/index.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import PropTypes from 'prop-types'; 3 | import { withStyles } from '@material-ui/core/styles'; 4 | import Card from '@material-ui/core/Card'; 5 | import CardContent from '@material-ui/core/CardContent'; 6 | import List from '@material-ui/core/List'; 7 | import ListItem from '@material-ui/core/ListItem'; 8 | import ListItemText from '@material-ui/core/ListItemText'; 9 | import IconButton from '@material-ui/core/IconButton'; 10 | import LinkIcon from '@material-ui/icons/Link'; 11 | 12 | import DetailView from '../DetailView'; 13 | import BugzillaGraph from '../../containers/BugzillaGraph'; 14 | import { PRODUCT_COMPONENT } from '../../config'; 15 | 16 | const styles = ({ 17 | subtitle: { 18 | margin: '0 0 0.5rem', 19 | color: 'gray', 20 | }, 21 | metric: { 22 | display: 'grid', 23 | gridTemplateColumns: '200px 20px', 24 | }, 25 | metricCardGraphContainer: { 26 | display: 'flex', 27 | width: '100%', 28 | }, 29 | metricHeader: { 30 | color: 'rgba(115, 115, 115, 0.87)', 31 | textAlign: 'center', 32 | fontSize: '1.2rem', 33 | margin: '4px 0 0 0', 34 | borderBottom: '1.3px solid #eee', 35 | padding: '4px 0', 36 | }, 37 | metricContainer: { 38 | padding: 0, 39 | }, 40 | metricLabel: { 41 | textTransform: 'capitalize', 42 | flex: 10, 43 | fontSize: 12, 44 | }, 45 | metricCounter: { 46 | flex: 1, 47 | fontSize: 12, 48 | }, 49 | metricLink: { 50 | textAlign: 'right', 51 | padding: 0, 52 | flex: 0, 53 | borderRadius: '100%', 54 | }, 55 | metricButton: { 56 | padding: 6, 57 | }, 58 | graphs: { 59 | display: 'flex', 60 | }, 61 | card: { 62 | minWidth: 275, 63 | }, 64 | 65 | }); 66 | 67 | const constructQuery = (metrics, product, component) => Object.values(metrics).map((metric) => { 68 | const { label, parameters } = metric; 69 | // We need all bugs regardless of their resolution in order to decrease/increase 70 | // the number of open bugs per date 71 | delete parameters.resolution; 72 | return { 73 | label, 74 | parameters: { 75 | product, 76 | component, 77 | ...parameters, 78 | }, 79 | }; 80 | }); 81 | 82 | /* eslint-disable-next-line react/jsx-props-no-spreading */ 83 | const ListItemLink = (props) => ; 84 | 85 | const BugzillaComponentDetails = ({ 86 | classes, bugzillaEmail, product, component, title, metrics = {}, onGoBack, 87 | }) => ( 88 | 89 |
90 | {Object.keys(metrics).length 91 | ? ( 92 | 93 | {bugzillaEmail &&

{bugzillaEmail}

} 94 | 95 | 96 | {Object.keys(metrics).sort().map((metric) => ( 97 | metrics[metric] && ( 98 | 99 |

{metric}

100 | 104 | 105 | 106 | 107 | 108 | 109 |
110 | ) 111 | ))} 112 |
113 |
114 |
115 | ) 116 | : null} 117 | 118 | 121 |
122 |
123 | ); 124 | 125 | BugzillaComponentDetails.propTypes = { 126 | classes: PropTypes.shape({ 127 | card: PropTypes.string.isRequired, 128 | metricButton: PropTypes.string.isRequired, 129 | metricCardGraphContainer: PropTypes.string.isRequired, 130 | metricContainer: PropTypes.string.isRequired, 131 | metricCounter: PropTypes.string.isRequired, 132 | metricHeader: PropTypes.string.isRequired, 133 | metricLabel: PropTypes.string.isRequired, 134 | metricLink: PropTypes.string.isRequired, 135 | }).isRequired, 136 | bugzillaEmail: PropTypes.string, 137 | product: PropTypes.oneOfType([ 138 | PropTypes.arrayOf(PropTypes.string), 139 | PropTypes.string, 140 | ]).isRequired, 141 | component: PropTypes.oneOfType([ 142 | PropTypes.arrayOf(PropTypes.string), 143 | PropTypes.string, 144 | ]).isRequired, 145 | metrics: PropTypes.shape({}), 146 | title: PropTypes.string.isRequired, 147 | onGoBack: PropTypes.func.isRequired, 148 | }; 149 | 150 | BugzillaComponentDetails.defaultProps = { 151 | bugzillaEmail: '', 152 | metrics: {}, 153 | }; 154 | 155 | export default withStyles(styles)(BugzillaComponentDetails); 156 | -------------------------------------------------------------------------------- /src/components/BugzillaComponents/index.css: -------------------------------------------------------------------------------- 1 | .components-table tr { 2 | height: auto; 3 | } 4 | -------------------------------------------------------------------------------- /src/components/BugzillaComponents/index.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import PropTypes from 'prop-types'; 3 | import { withStyles, createMuiTheme, MuiThemeProvider } from '@material-ui/core/styles'; 4 | import LinkIcon from '@material-ui/icons/Link'; 5 | import Link from '@material-ui/core/Link'; 6 | import Typography from '@material-ui/core/Typography'; 7 | import MUIDataTable from 'mui-datatables'; 8 | import { PRODUCT_COMPONENT } from '../../config'; 9 | import './index.css'; 10 | import sort from '../../utils/bugzilla/sort'; 11 | 12 | const styles = ({ 13 | header: { 14 | margin: '0.5rem 0 0 0', 15 | }, 16 | metric: { 17 | textAlign: 'center', 18 | }, 19 | }); 20 | 21 | const sortByComponentName = (a, b) => a.label.localeCompare(b.label); 22 | 23 | // Custom styles to override default MUI theme 24 | const getMuiTheme = () => createMuiTheme({ 25 | typography: { 26 | useNextVariants: true, 27 | }, 28 | overrides: { 29 | MuiPaper: { 30 | root: { 31 | margin: '1.4rem 0', 32 | }, 33 | }, 34 | MUIDataTableBodyCell: { 35 | root: { 36 | textAlign: 'center', 37 | }, 38 | }, 39 | MuiLink: { 40 | root: { 41 | width: '100%', 42 | display: 'flex', 43 | justifyContent: 'flex-start', 44 | fontSize: 12, 45 | textAlign: 'center', 46 | }, 47 | }, 48 | MuiTypography: { 49 | body2: { 50 | whiteSpace: 'pre', 51 | display: 'flex', 52 | justifyContent: 'flex-start', 53 | }, 54 | }, 55 | MuiTableCell: { 56 | head: { 57 | padding: 0, 58 | '&:nth-child(3)': { 59 | maxWidth: '8rem', 60 | }, 61 | }, 62 | body: { 63 | cursor: 'pointer', 64 | }, 65 | }, 66 | MUIDataTableHeadCell: { 67 | data: { 68 | padding: '0px 10px', 69 | }, 70 | toolButton: { 71 | width: '100%', 72 | height: '100%', 73 | }, 74 | }, 75 | }, 76 | }); 77 | 78 | const getTableHeaders = (data, onComponentDetails) => { 79 | const firstHeader = { 80 | name: '', 81 | label: '', 82 | options: { 83 | filter: false, 84 | viewColumns: false, 85 | customBodyRender: (value) => ( 86 | value 87 | ? ( 88 | onComponentDetails(e, { 91 | componentKey: `${value.product}::${value.component}`, 92 | teamKey: value.teamKey, 93 | })} 94 | onKeyPress={(e) => onComponentDetails(e, { 95 | componentKey: `${value.product}::${value.component}`, 96 | teamKey: value.teamKey, 97 | })} 98 | > 99 | 100 | 101 | {value.label} 102 | 103 | 104 | ) 105 | : null 106 | ), 107 | }, 108 | }; 109 | 110 | const getColor = (value, key) => ((key === 'P1Defect' || key === 'S1Defect') && (value && value.count) > 0 ? 'red' : 'blue'); 111 | 112 | const Headers = Object.entries(data).map(([key, { label, hidden: showColumn = false }]) => ({ 113 | name: `${label}`, 114 | label, 115 | options: { 116 | filter: false, 117 | // If hidden is true for the column, show it in view column list 118 | viewColumns: showColumn, 119 | // If hidden is true, hide the column in the table by default 120 | display: !showColumn, 121 | customBodyRender: (value) => ( 122 | 129 | { value ? value.count : '' } 130 | 131 | ), 132 | }, 133 | })); 134 | if (onComponentDetails) { 135 | return [firstHeader].concat(Headers); 136 | } 137 | return Headers; 138 | }; 139 | 140 | const options = { 141 | filter: false, 142 | selectableRows: false, 143 | sort: true, 144 | responsive: 'stacked', 145 | rowsPerPage: 25, 146 | download: false, 147 | print: false, 148 | viewColumns: true, 149 | customSort: (data, index, order) => data.sort((a, b) => sort(a.data, b.data, index, order)), 150 | }; 151 | 152 | /** 153 | * @description Add data according to the mui data-table 154 | * @param {PRODUCT_COMPONENT} query The Static object to map 155 | * @param {Array} metrics Object sent by the server for each row 156 | * sent from {Function} getBugzillaComponentsData 157 | * @returns Array 158 | */ 159 | const BZqueryToDataCount = (query, metrics) => ( 160 | Object.keys(query).map((eachQuery) => (metrics[eachQuery] ? metrics[eachQuery] : null)) 161 | ); 162 | 163 | /** 164 | * @description Add data according to the mui data-table 165 | * @param {Array} bugzillaComponents 166 | * @returns {Array} 167 | */ 168 | const getBugzillaComponentsData = (bugzillaComponents) => bugzillaComponents 169 | .sort(sortByComponentName) 170 | .map(({ 171 | label, component, product, metrics = {}, teamKey = null, 172 | }) => ( 173 | [ 174 | { 175 | label, 176 | component, 177 | product, 178 | metrics, 179 | teamKey, 180 | }, 181 | ].concat(BZqueryToDataCount(PRODUCT_COMPONENT, metrics)) 182 | )); 183 | 184 | const BugzillaComponents = ({ 185 | title, bugzillaComponents, onComponentDetails, 186 | }) => ( 187 | bugzillaComponents.length > 0 && ( 188 | 189 | 196 | 197 | ) 198 | ); 199 | 200 | BugzillaComponents.propTypes = { 201 | classes: PropTypes.shape({}).isRequired, 202 | title: PropTypes.string, 203 | bugzillaComponents: PropTypes.arrayOf( 204 | PropTypes.shape({ 205 | label: PropTypes.string.isRequired, 206 | product: PropTypes.oneOfType([ 207 | PropTypes.string, 208 | PropTypes.arrayOf(PropTypes.string), 209 | ]).isRequired, 210 | component: PropTypes.oneOfType([ 211 | PropTypes.string, 212 | PropTypes.arrayOf(PropTypes.string), 213 | ]).isRequired, 214 | metrics: PropTypes.shape({}), 215 | }), 216 | ).isRequired, 217 | onComponentDetails: PropTypes.func, 218 | }; 219 | 220 | BugzillaComponents.defaultProps = { 221 | onComponentDetails: undefined, 222 | title: 'Unknown', 223 | }; 224 | 225 | export default withStyles(styles)(BugzillaComponents); 226 | -------------------------------------------------------------------------------- /src/components/ChartJsWrapper/index.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import PropTypes from 'prop-types'; 3 | import Chart from 'react-chartjs-2'; 4 | import CircularProgress from '@material-ui/core/CircularProgress'; 5 | import { withStyles } from '@material-ui/core/styles'; 6 | import generateOptions from '../../utils/chartJs/generateOptions'; 7 | 8 | const styles = { 9 | // This div helps with canvas size changes 10 | // https://www.chartjs.org/docs/latest/general/responsive.html#important-note 11 | chartContainer: { 12 | width: '100%', 13 | }, 14 | }; 15 | 16 | const ChartJsWrapper = ({ 17 | classes, data, options, title, type, size, 18 | }) => ( 19 | data ? ( 20 |
21 | {title &&

{title}

} 22 | 28 |
29 | ) : ( 30 |
31 | 32 |
33 | ) 34 | ); 35 | 36 | // The properties are to match ChartJs properties 37 | ChartJsWrapper.propTypes = { 38 | classes: PropTypes.shape({ 39 | chartContainer: PropTypes.isRequired, 40 | }).isRequired, 41 | options: PropTypes.shape({ 42 | reverse: PropTypes.bool, 43 | scaleLabel: PropTypes.string, 44 | title: PropTypes.string, 45 | tooltipFormat: PropTypes.bool, 46 | tooltips: PropTypes.shape({ 47 | callbacks: PropTypes.object, 48 | }), 49 | ticksCallback: PropTypes.func, 50 | }).isRequired, 51 | data: PropTypes.arrayOf( 52 | PropTypes.shape({ 53 | // There can be more properties than data and selectedTabIndex, 54 | // however, we mainly care about these as a minimum requirement 55 | data: PropTypes.arrayOf( 56 | PropTypes.shape({ 57 | x: PropTypes.oneOfType([ 58 | PropTypes.string, 59 | PropTypes.instanceOf(Date), 60 | ]).isRequired, 61 | y: PropTypes.number.isRequired, 62 | }), 63 | ), 64 | label: PropTypes.string.isRequired, 65 | }), 66 | ).isRequired, 67 | title: PropTypes.string, 68 | type: PropTypes.string, 69 | size: PropTypes.string, 70 | }; 71 | 72 | ChartJsWrapper.defaultProps = { 73 | title: '', 74 | type: 'line', 75 | size: '8rem', 76 | }; 77 | 78 | export default withStyles(styles)(ChartJsWrapper); 79 | -------------------------------------------------------------------------------- /src/components/DetailView/index.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import PropTypes from 'prop-types'; 3 | import { withStyles } from '@material-ui/core/styles'; 4 | import ArrowBack from '@material-ui/icons/ArrowBack'; 5 | 6 | const styles = ({ 7 | root: { 8 | display: 'flex', 9 | }, 10 | title: { 11 | color: '#565656', 12 | margin: '0.6rem', 13 | }, 14 | mainContentContainer: { 15 | width: '100%', 16 | }, 17 | }); 18 | 19 | const DetailView = ({ 20 | classes, children, title, onGoBack, 21 | }) => ( 22 |
23 |
24 | 25 | 26 | 27 |
28 |
29 |

{title}

30 | {children} 31 |
32 |
33 | ); 34 | 35 | DetailView.propTypes = { 36 | classes: PropTypes.shape({ 37 | title: PropTypes.string.isRequired, 38 | root: PropTypes.isRequired, 39 | mainContentContainer: PropTypes.isRequired, 40 | }).isRequired, 41 | children: PropTypes.oneOfType([ 42 | PropTypes.arrayOf(PropTypes.node), 43 | PropTypes.node, 44 | ]).isRequired, 45 | title: PropTypes.string.isRequired, 46 | onGoBack: PropTypes.func.isRequired, 47 | }; 48 | 49 | export default withStyles(styles)(DetailView); 50 | -------------------------------------------------------------------------------- /src/components/DrilldownIcon/index.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import PropTypes from 'prop-types'; 3 | import { withStyles } from '@material-ui/core/styles'; 4 | import ExpandMore from '@material-ui/icons/ExpandMore'; 5 | 6 | const styles = ({ 7 | svgWrapper: { 8 | '&:hover': { 9 | backgroundColor: 'lightGray', 10 | }, 11 | }, 12 | icon: { 13 | fontSize: '1rem', 14 | verticalAlign: 'bottom', 15 | }, 16 | }); 17 | 18 | const DrilldownIcon = ({ 19 | classes, name, onChange, properties, 20 | }) => ( 21 |
onChange(e, properties)} 25 | onClick={(e) => onChange(e, properties)} 26 | role="button" 27 | tabIndex="0" 28 | > 29 | 30 |
31 | ); 32 | 33 | DrilldownIcon.propTypes = { 34 | classes: PropTypes.shape({ 35 | svgWrapper: PropTypes.isRequired, 36 | icon: PropTypes.isRequired, 37 | }).isRequired, 38 | name: PropTypes.string.isRequired, 39 | onChange: PropTypes.func.isRequired, 40 | properties: PropTypes.shape({}).isRequired, 41 | }; 42 | 43 | export default withStyles(styles)(DrilldownIcon); 44 | -------------------------------------------------------------------------------- /src/components/Header/index.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import PropTypes from 'prop-types'; 3 | import { withStyles } from '@material-ui/core/styles'; 4 | import AppBar from '@material-ui/core/AppBar'; 5 | import Toolbar from '@material-ui/core/Toolbar'; 6 | import Tabs from '@material-ui/core/Tabs'; 7 | import Tab from '@material-ui/core/Tab'; 8 | import { NavLink } from 'react-router-dom'; 9 | import CredentialsMenu from '../../views/CredentialsMenu'; 10 | 11 | const styles = (theme) => ({ 12 | styledToolbar: { 13 | display: 'flex', 14 | justifyContent: 'space-between', 15 | 'min-height': theme.spacing.unit * 1, 16 | }, 17 | }); 18 | 19 | const Header = ({ 20 | classes, selectedTabIndex, handleTabChange, userId, 21 | }) => ( 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | ); 32 | 33 | Header.propTypes = { 34 | classes: PropTypes.shape({ 35 | styledToolbar: PropTypes.string.isRequired, 36 | }).isRequired, 37 | selectedTabIndex: PropTypes.number.isRequired, 38 | handleTabChange: PropTypes.func.isRequired, 39 | userId: PropTypes.string.isRequired, 40 | }; 41 | 42 | export default withStyles(styles)(Header); 43 | -------------------------------------------------------------------------------- /src/components/NotFound/index.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ErrorPanel from '@mozilla-frontend-infra/components/ErrorPanel'; 3 | 4 | export default () => ; 5 | -------------------------------------------------------------------------------- /src/components/PropsRoute/index.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import PropTypes from 'prop-types'; 3 | import { Route } from 'react-router-dom'; 4 | 5 | const PropsRoute = ({ component, ...props }) => ( 6 | React.createElement(component, { ...routeProps, ...props })} 10 | /> 11 | ); 12 | 13 | PropsRoute.propTypes = { 14 | component: PropTypes.oneOfType([ 15 | PropTypes.func, 16 | PropTypes.object, 17 | ]).isRequired, 18 | }; 19 | 20 | export default PropsRoute; 21 | -------------------------------------------------------------------------------- /src/components/Reportees/index.css: -------------------------------------------------------------------------------- 1 | .highlight { 2 | color: #e53935; 3 | font-weight: bold; 4 | } 5 | .reportees-table a { 6 | text-decoration: none; 7 | } 8 | .reportees-table th { 9 | text-align: center; 10 | } 11 | 12 | .reportees-table tr { 13 | height: auto; 14 | } 15 | -------------------------------------------------------------------------------- /src/components/Reportees/index.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import PropTypes from 'prop-types'; 3 | import { withStyles, createMuiTheme, MuiThemeProvider } from '@material-ui/core/styles'; 4 | import MUIDataTable from 'mui-datatables'; 5 | import { REPORTEES_CONFIG } from '../../config'; 6 | import './index.css'; 7 | import sort from '../../utils/bugzilla/sort'; 8 | 9 | const styles = { 10 | root: {}, 11 | }; 12 | 13 | class Reportees extends React.PureComponent { 14 | getMergedProps() { 15 | const { metrics, partialOrg, userId } = this.props; 16 | 17 | // filter out the manager 18 | const reportees = Object.values(partialOrg) 19 | .filter(({ mail }) => mail !== userId); 20 | 21 | // add metrics 22 | const reporteesWithMetrics = reportees.map((reportee) => ({ 23 | ...reportee, 24 | ...metrics[reportee.bugzillaEmail], 25 | })); 26 | // Sort dataset in ascending order and return 27 | return reporteesWithMetrics.sort((a, b) => a.name.localeCompare(b.name)); 28 | } 29 | 30 | // Custom styles to override default MUI theme 31 | getMuiTheme = () => createMuiTheme({ 32 | typography: { 33 | useNextVariants: true, 34 | }, 35 | overrides: { 36 | MUIDataTableBodyCell: { 37 | root: { 38 | textAlign: 'center', 39 | }, 40 | }, 41 | }, 42 | }); 43 | 44 | render() { 45 | const { classes } = this.props; 46 | // MUI table options 47 | const options = { 48 | filter: true, 49 | selectableRows: false, 50 | sort: true, 51 | responsive: 'stacked', 52 | rowsPerPage: 25, 53 | download: false, 54 | print: false, 55 | viewColumns: false, 56 | customSort: (data, index, order) => (data.sort((a, b) => sort(a.data, b.data, index, order))), 57 | }; 58 | 59 | const metricsAsArray = Object.entries(REPORTEES_CONFIG); 60 | 61 | const tableHeader = []; 62 | 63 | // Form Table column headers using metricsArray 64 | // Add Full name directly into columns Heading array 65 | const firstColumn = { 66 | name: 'name', 67 | label: 'Full Name', 68 | }; 69 | 70 | tableHeader.push(firstColumn); 71 | 72 | // push other columns from metricsAsArray in the config.js file to tableHeader array 73 | metricsAsArray.forEach(([metricUid, { label, maxCount }]) => { 74 | const column = { 75 | name: `${metricUid}`, 76 | label, 77 | options: { 78 | filter: false, 79 | customBodyRender: (value) => ( 80 | maxCount) || (metricUid === 'needinfo' && value.count > maxCount)) ? 'highlight' : '') 86 | } 87 | > 88 | { value !== undefined ? value.count : '' } 89 | 90 | ), 91 | }, 92 | }; 93 | tableHeader.push(column); 94 | }); 95 | 96 | return ( 97 |
98 | 99 | 106 | 107 |
108 | ); 109 | } 110 | } 111 | Reportees.propTypes = { 112 | classes: PropTypes.shape({ 113 | root: PropTypes.string.isRequired, 114 | }).isRequired, 115 | userId: PropTypes.string, 116 | partialOrg: PropTypes.shape({}).isRequired, 117 | metrics: PropTypes.shape({}), 118 | }; 119 | 120 | Reportees.defaultProps = { 121 | metrics: {}, 122 | userId: '', 123 | }; 124 | 125 | export default withStyles(styles)(Reportees); 126 | -------------------------------------------------------------------------------- /src/components/Teams/index.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import PropTypes from 'prop-types'; 3 | import { withStyles } from '@material-ui/core/styles'; 4 | 5 | const styles = ({ 6 | root: { 7 | margin: '0 0.5rem 0 0', 8 | }, 9 | header: { 10 | margin: '0.5rem 0 0.5rem 0', 11 | }, 12 | }); 13 | 14 | const Teams = ({ classes, teams }) => ( 15 |
16 |

Teams

17 |
 
18 | {teams.map(({ label }) => ( 19 |
{label}
20 | ))} 21 |
22 | ); 23 | 24 | Teams.propTypes = { 25 | classes: PropTypes.shape({ 26 | root: PropTypes.isRequired, 27 | header: PropTypes.isRequired, 28 | }).isRequired, 29 | teams: PropTypes.arrayOf(PropTypes.shape({ 30 | label: PropTypes.string.isRequired, 31 | })).isRequired, 32 | }; 33 | 34 | export default withStyles(styles)(Teams); 35 | -------------------------------------------------------------------------------- /src/components/auth/AuthContext.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | const AuthContext = React.createContext(); 4 | 5 | export default AuthContext; 6 | -------------------------------------------------------------------------------- /src/components/auth/AuthController.js: -------------------------------------------------------------------------------- 1 | import mitt from 'mitt'; 2 | import UserSession from './UserSession'; 3 | 4 | import { userSessionFromCode } from './oauth2'; 5 | 6 | const STORAGE_KEY = 'taskcluster_user_session'; 7 | 8 | /** 9 | * Controller for authentication-related pieces of the site. 10 | * 11 | * This encompasses knowledge of which authentication mechanisms are enabled, including 12 | * credentials menu items, ongoing expiration monitoring, and any additional required UI. 13 | * It also handles synchronizing sign-in status across tabs. 14 | */ 15 | export default class AuthController { 16 | constructor() { 17 | const events = mitt(); 18 | 19 | this.on = events.on; 20 | this.off = events.off; 21 | this.emit = events.emit; 22 | 23 | this.renewalTimer = null; 24 | 25 | window.addEventListener('storage', ({ storageArea, key }) => { 26 | if (storageArea === localStorage && key === STORAGE_KEY) { 27 | this.loadUserSession(); 28 | } 29 | }); 30 | } 31 | 32 | /** 33 | * Reset the renewal timer based on the given user session. 34 | */ 35 | resetRenewalTimer(userSession) { 36 | if (this.renewalTimer) { 37 | window.clearTimeout(this.renewalTimer); 38 | this.renewalTimer = null; 39 | } 40 | 41 | if (userSession && userSession.renewAfter) { 42 | let timeout = Math.max(0, new Date(userSession.renewAfter) - new Date()); 43 | 44 | // if the timeout is in the future, apply up to a few minutes to it 45 | // randomly. This avoids multiple tabs all trying to renew at the 46 | // same time. 47 | if (timeout > 0) { 48 | timeout += Math.random() * 5 * 60 * 1000; 49 | } 50 | 51 | this.renewalTimer = window.setTimeout(() => { 52 | this.renewalTimer = null; 53 | this.renew(userSession); 54 | }, timeout); 55 | } 56 | } 57 | 58 | /** 59 | * Exchange Oauth Code received in URL callback 60 | * and build a User Session from Taskcluster credentials 61 | */ 62 | async exchangeCode(url) { 63 | this.setUserSession(await userSessionFromCode(url)); 64 | } 65 | 66 | /** 67 | * Load the current user session (from localStorage). 68 | * 69 | * This will emit the user-session-changed event, but does not 70 | * return the user session. 71 | */ 72 | loadUserSession() { 73 | const storedUserSession = localStorage.getItem(STORAGE_KEY); 74 | const userSession = storedUserSession 75 | ? UserSession.deserialize(storedUserSession) 76 | : null; 77 | 78 | this.userSession = userSession; 79 | this.resetRenewalTimer(userSession); 80 | this.emit('user-session-changed', userSession); 81 | } 82 | 83 | /** 84 | * Get the current userSession instance 85 | */ 86 | getUserSession() { 87 | return this.userSession; 88 | } 89 | 90 | /** 91 | * Set the current user session, or (if null) delete the current user session. 92 | * 93 | * This will change the user session in all open windows/tabs, eventually triggering 94 | * a call to any onSessionChanged callbacks. 95 | */ 96 | setUserSession = (userSession) => { 97 | if (!userSession) { 98 | localStorage.removeItem(STORAGE_KEY); 99 | } else { 100 | localStorage.setItem(STORAGE_KEY, userSession.serialize()); 101 | } 102 | 103 | // localStorage updates do not trigger event listeners on the current window/tab, 104 | // so invoke it directly 105 | this.loadUserSession(); 106 | }; 107 | 108 | /** 109 | * Renew the user session. 110 | * This is not currently supported by the Taskcluster OAuth, so we just clean the session 111 | */ 112 | async renew() { 113 | this.setUserSession(null); 114 | } 115 | } 116 | -------------------------------------------------------------------------------- /src/components/auth/UserSession.js: -------------------------------------------------------------------------------- 1 | import { Index } from 'taskcluster-client-web'; 2 | import moment from 'moment'; 3 | import { TASKCLUSTER_ROOT_URL } from '../../config'; 4 | 5 | const USER_ID_REGEX = /mozilla-auth0\/([\w-|]+)\/bugzilla-dashboard-([\w-]+)/; 6 | 7 | /** 8 | * An object representing a user session. Tools supports a variety of login methods, 9 | * so this combines them all in a single representation. 10 | * 11 | * UserSessions are immutable -- when anything about the session changes, a new instance 12 | * replaces the old. The `userChanged` method is useful to distinguish changes to the 13 | * user identity from mere token renewals. 14 | * 15 | * Common properties are: 16 | * 17 | * - type - 'oidc' or 'credentials' 18 | * - name - user name 19 | * - clientArgs - arguments to pass to taskcluster-client-web Client constructors 20 | * - renewAfter - date (Date or string) after which this session should be renewed, 21 | * if applicable 22 | * 23 | * When the type is 'credentials': 24 | * 25 | * - credentials -- the Taskcluster credentials (with or without a certificate) 26 | * 27 | * To fetch Taskcluster credentials for the user regardless of type, use the getCredentials 28 | * method. 29 | */ 30 | export default class UserSession { 31 | constructor(options) { 32 | Object.assign(this, options); 33 | } 34 | 35 | static fromTaskclusterAuth(token, payload) { 36 | // Detect when the credentials will expire 37 | // And substract 1 minute to fetch new credentials before expiry 38 | const expires = moment(payload.expires).subtract(1, 'minute'); 39 | 40 | return new UserSession({ 41 | type: 'credentials', 42 | email: 'nobody@mozilla.org', 43 | renewToken: token, 44 | credentials: payload.credentials, 45 | renewAfter: expires, 46 | }); 47 | } 48 | 49 | // determine whether the user changed from old to new; this is used by other components 50 | // to determine when to update in response to a sign-in/sign-out event 51 | static userChanged(oldUser, newUser) { 52 | if (!oldUser && !newUser) { 53 | return false; 54 | } 55 | 56 | if (!oldUser || !newUser) { 57 | return true; 58 | } 59 | 60 | return oldUser.type !== newUser.type || oldUser.name !== newUser.name; 61 | } 62 | 63 | // get the user's name 64 | get name() { 65 | return ( 66 | (this.credentials && this.credentials.clientId) 67 | || 'unknown' 68 | ); 69 | } 70 | 71 | // Get the expiry date as a nicely formated string 72 | get expiresIn() { 73 | const diff = moment(this.renewAfter).diff(moment()); 74 | const duration = moment.duration(diff); 75 | if (duration.days() > 0) { 76 | return `${duration.days()} days`; 77 | } 78 | if (duration.hours() > 0) { 79 | return `${duration.hours()} hours`; 80 | } 81 | return `${duration.minutes()} minutes`; 82 | } 83 | 84 | get userId() { 85 | // Find the user ID in Taskcluster credentials 86 | const match = USER_ID_REGEX.exec(this.credentials.clientId); 87 | if (match === null) { 88 | return this.credentials.clientId; 89 | } 90 | 91 | return match[1]; 92 | } 93 | 94 | // get the args used to create a new client object 95 | get clientArgs() { 96 | return { credentials: this.credentials }; 97 | } 98 | 99 | // load Taskcluster credentials for this user 100 | getCredentials() { 101 | return Promise.resolve(this.credentials); 102 | } 103 | 104 | static deserialize(value) { 105 | return new UserSession(JSON.parse(value)); 106 | } 107 | 108 | serialize() { 109 | return JSON.stringify({ ...this }); 110 | } 111 | 112 | getTaskClusterIndexClient = () => new Index({ 113 | ...this.clientArgs, 114 | rootUrl: TASKCLUSTER_ROOT_URL, 115 | }); 116 | } 117 | -------------------------------------------------------------------------------- /src/components/auth/oauth2.js: -------------------------------------------------------------------------------- 1 | import ClientOAuth2 from 'client-oauth2'; 2 | import UserSession from './UserSession'; 3 | import config from '../../config'; 4 | 5 | export const webAuth = new ClientOAuth2(config.OAuth2Options); 6 | 7 | // Part 1 - Redirect the user on Taskcluster instance to start the OAuth2 flow 8 | export function redirectUser() { 9 | window.location.href = webAuth.code.getUri(); 10 | } 11 | 12 | // Part 2 - Exchange Oauth code for Taskcluster credentials 13 | export async function userSessionFromCode(url) { 14 | // Get Oauth access token 15 | const token = await webAuth.code.getToken(url); 16 | 17 | // Exchange that access token for some Taskcluster credentials 18 | const request = token.sign({ 19 | method: 'get', 20 | }); 21 | const resp = await fetch(config.OAuth2Options.credentialsUri, request); 22 | const payload = await resp.json(); 23 | 24 | // Finally build a new user session 25 | return UserSession.fromTaskclusterAuth(token.accessToken, payload); 26 | } 27 | -------------------------------------------------------------------------------- /src/config.js: -------------------------------------------------------------------------------- 1 | const PRODUCTION = process.env.NODE_ENV === 'production'; 2 | export const TASKCLUSTER_ROOT_URL = PRODUCTION ? 'https://firefox-ci-tc.services.mozilla.com' : 'https://stage.taskcluster.nonprod.cloudops.mozgcp.net'; 3 | 4 | const channel = PRODUCTION ? 'production' : 'testing'; 5 | 6 | const config = { 7 | artifactRoute: `project.relman.${channel}.bugzilla-dashboard.latest`, 8 | OAuth2Options: { 9 | clientId: PRODUCTION ? 'bugzilla-dashboard-production' : 'bugzilla-dashboard-localdev', 10 | scopes: ['queue:get-artifact:project/relman/bugzilla-dashboard/*'], 11 | authorizationUri: `${TASKCLUSTER_ROOT_URL}/login/oauth/authorize`, 12 | accessTokenUri: `${TASKCLUSTER_ROOT_URL}/login/oauth/token`, 13 | credentialsUri: `${TASKCLUSTER_ROOT_URL}/login/oauth/credentials`, 14 | redirectUri: PRODUCTION ? 'https://bugzilla-management-dashboard.netlify.app' : 'http://localhost:5000', 15 | whitelisted: true, 16 | responseType: 'code', 17 | query: { 18 | expires: '2 weeks', 19 | }, 20 | }, 21 | productComponentMetrics: 'project/relman/bugzilla-dashboard/product_component_data.json.gz', 22 | reporteesMetrics: 'project/relman/bugzilla-dashboard/reportee_data.json.gz', 23 | peopleTree: 'project/relman/bugzilla-dashboard/people.json.gz', 24 | }; 25 | 26 | export const REPORTEES_CONFIG = { 27 | assigned_defect: { 28 | label: 'Assigned (defect)', 29 | // Max count of assigned defects - to highlight defects on Reportees dashboard 30 | maxCount: 20, 31 | }, 32 | assigned_total: { 33 | label: 'Assigned (total)', 34 | }, 35 | needinfo: { 36 | label: 'Needinfo', 37 | // Max count of needinfo issues - to highlight defects on Reportees dashboard 38 | maxCount: 10, 39 | }, 40 | assignedTrackedBeta: { 41 | label: 'Assigned & Tracked (Beta)', 42 | }, 43 | assignedTrackedNightly: { 44 | label: 'Assigned & Tracked (Nightly)', 45 | }, 46 | }; 47 | 48 | export const TEAMS_CONFIG = { 49 | domCore: { 50 | label: 'DOM Core', 51 | owner: 'htsai@mozilla.com', 52 | product: ['Core'], 53 | component: [ 54 | 'DOM: Core & HTML', 'DOM: Events', 55 | 'Editor', 'HTML: Parser', 'Selection', 'Serializers', 56 | 'User events and focus handling', 57 | ], 58 | }, 59 | domFission: { 60 | label: 'DOM Fission', 61 | owner: 'nkochar@mozilla.com', 62 | product: ['Core', 'Toolkit'], 63 | component: [ 64 | 'Document Navigation', 'XBL', 'XML', 'XPConnect', 'XSLT', 65 | ], 66 | }, 67 | workerStoreage: { 68 | label: 'Worker and Storage', 69 | owner: 'aoverholt@mozilla.com', 70 | product: ['Core', 'Toolkit'], 71 | component: [ 72 | 'DOM: IndexedDB', 'DOM: Push Notifications', 'DOM: Quota Manager', 73 | 'DOM: Service Workers', 'DOM: Web Payments', 'DOM: Web Storage', 74 | 'DOM: Workers', 75 | ], 76 | }, 77 | }; 78 | 79 | /* eslint-disable indent */ 80 | /* eslint-disable object-property-newline */ 81 | /* eslint-disable no-multi-spaces */ 82 | export const PRODUCT_COMPONENT = { 83 | P1Defect: { 84 | label: 'P1s defect', 85 | parameters: { 86 | f1: 'creation_ts', o1: 'greaterthaneq', v1: '-1y', 87 | priority: 'P1', 88 | resolution: '---', 89 | bug_type: 'defect', 90 | }, 91 | }, 92 | S1Defect: { 93 | label: 'S1s defect', 94 | parameters: { 95 | f1: 'creation_ts', o1: 'greaterthaneq', v1: '-1y', 96 | bug_severity: 'S1', 97 | resolution: '---', 98 | bug_type: 'defect', 99 | }, 100 | }, 101 | unassignedBetaBugs: { 102 | label: 'Unassigned tracked beta bugs', 103 | parameters: { 104 | // TODO: make that dynamic when https://github.com/mozilla-bteam/bmo/pull/1165 105 | // landed 106 | f1: 'cf_tracking_firefox_beta', o1: 'anyexact', v1: '+,blocking', 107 | f2: 'cf_status_firefox_beta', o2: 'equals', v2: 'affected', 108 | f3: 'assigned_to', o3: 'equals', v3: 'nobody@mozilla.org', 109 | }, 110 | }, 111 | 112 | nightlyNewBug: { 113 | label: 'Nightly New Regression', 114 | hidden: true, 115 | parameters: { 116 | // TODO: make that dynamic when https://github.com/mozilla-bteam/bmo/pull/1165 117 | // landed 118 | keywords: 'regression,', 119 | keywords_type: 'allwords', 120 | resolution: '---', 121 | 122 | f1: 'cf_status_firefox_nightly', o1: 'equals', v1: 'affected', 123 | f2: 'OP', j2: 'OR', 124 | f3: 'cf_status_firefox_beta', o3: 'equals', v3: 'unaffected', 125 | f4: 'cf_status_firefox_beta', o4: 'equals', v4: '?', 126 | f5: 'cf_status_firefox_beta', o5: 'equals', v5: '---', 127 | f6: 'CP', 128 | f7: 'flagtypes.name', o7: 'notsubstring', v7: 'needinfo', 129 | f8: 'cf_tracking_firefox_nightly', o8: 'notequals', v8: '-', 130 | f9: 'keywords', o9: 'notsubstring', v9: 'stalled', 131 | }, 132 | }, 133 | 134 | nightlyCarryOver: { 135 | label: 'Nightly carry over', 136 | hidden: true, 137 | parameters: { 138 | // TODO: make that dynamic when https://github.com/mozilla-bteam/bmo/pull/1165 139 | // landed 140 | keywords: 'regression,', 141 | keywords_type: 'allwords', 142 | resolution: '---', 143 | f1: 'cf_status_firefox_nightly', o1: 'equals', v1: 'affected', 144 | f2: 'OP', j2: 'OR', n2: '1', 145 | f3: 'cf_status_firefox_beta', o3: 'equals', v3: 'unaffected', 146 | f4: 'cf_status_firefox_beta', o4: 'equals', v4: '?', 147 | f5: 'cf_status_firefox_beta', o5: 'equals', v5: '---', 148 | f6: 'CP', 149 | f7: 'flagtypes.name', o7: 'notsubstring', v7: 'needinfo', 150 | f8: 'cf_tracking_firefox_nightly', o8: 'notequals', v8: '-', 151 | f9: 'keywords', o9: 'notsubstring', v9: 'stalled', 152 | }, 153 | }, 154 | 155 | newDefects: { 156 | label: 'New defects', 157 | hidden: true, 158 | parameters: { 159 | f1: 'creation_ts', o1: 'greaterthaneq', v1: '-1y', 160 | priority: '--', 161 | resolution: '---', 162 | bug_type: 'defect', 163 | }, 164 | }, 165 | 166 | needinfo: { 167 | label: 'Needinfo', 168 | hidden: true, 169 | parameters: { 170 | priority: '--', 171 | resolution: '---', 172 | f1: 'flagtypes.name', o1: 'substring', v1: 'needinfo', 173 | f2: 'assigned_to', o2: 'equals', v2: 'nobody@mozilla.org', 174 | }, 175 | }, 176 | 177 | P1Task: { 178 | label: 'P1s task', 179 | parameters: { 180 | f1: 'creation_ts', o1: 'greaterthaneq', v1: '-1y', 181 | priority: 'P1', 182 | resolution: '---', 183 | bug_type: 'task', 184 | }, 185 | }, 186 | P1Enhancement: { 187 | label: 'P1s enhancement', 188 | parameters: { 189 | f1: 'creation_ts', o1: 'greaterthaneq', v1: '-1y', 190 | priority: 'P1', 191 | resolution: '---', 192 | bug_type: 'enhancement', 193 | }, 194 | }, 195 | sec: { 196 | label: 'sec-{critical, high}', 197 | parameters: { 198 | resolution: '---', 199 | keywords_type: 'anywords', 200 | keywords: 'sec-critical, sec-high', 201 | }, 202 | }, 203 | }; 204 | /* eslint-enable indent */ 205 | /* eslint-enable object-property-newline */ 206 | /* eslint-enable no-multi-spaces */ 207 | 208 | export default config; 209 | -------------------------------------------------------------------------------- /src/containers/BugzillaGraph/index.jsx: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import PropTypes from 'prop-types'; 3 | import ErrorPanel from '@mozilla-frontend-infra/components/ErrorPanel'; 4 | import ChartJsWrapper from '../../components/ChartJsWrapper'; 5 | import generateChartJsData from '../../utils/bugzilla/generateChartJsData'; 6 | 7 | class BugzillaGraph extends Component { 8 | state = { 9 | data: null, 10 | error: '', 11 | }; 12 | 13 | async componentDidMount() { 14 | this.fetchData(); 15 | } 16 | 17 | async fetchData() { 18 | const { queries, chartType, startDate } = this.props; 19 | try { 20 | this.setState({ data: await generateChartJsData(queries, chartType, startDate) }); 21 | } catch (error) { 22 | this.setState({ error: error.message }); 23 | // This allows seeing the stacktrace 24 | throw error; 25 | } 26 | } 27 | 28 | render() { 29 | const { data, error } = this.state; 30 | const { chartType, title } = this.props; 31 | 32 | if (error) { 33 | return ; 34 | } 35 | 36 | return ( 37 | data && data.length > 0 ? ( 38 | 44 | ) :
45 | ); 46 | } 47 | } 48 | 49 | BugzillaGraph.propTypes = { 50 | queries: PropTypes.arrayOf(PropTypes.shape({ 51 | label: PropTypes.string.isRequired, 52 | parameters: PropTypes.shape({ 53 | include_fields: PropTypes.string, 54 | component: PropTypes.oneOfType([ 55 | PropTypes.arrayOf(PropTypes.string), 56 | PropTypes.string, 57 | ]), 58 | resolution: PropTypes.string, 59 | priority: PropTypes.string, 60 | }), 61 | })).isRequired, 62 | chartType: PropTypes.oneOf(['scatter', 'line']), 63 | startDate: PropTypes.string, 64 | title: PropTypes.string, 65 | }; 66 | 67 | BugzillaGraph.defaultProps = { 68 | chartType: 'line', 69 | startDate: null, 70 | title: '', 71 | }; 72 | 73 | export default BugzillaGraph; 74 | -------------------------------------------------------------------------------- /src/index.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { render } from 'react-dom'; 3 | import App from './App'; 4 | 5 | render(, document.getElementById('root')); 6 | -------------------------------------------------------------------------------- /src/static/fakeOrg.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "cn": "Incredi BleCoder", 4 | "mail": "ic@mozilla.com", 5 | "manager": { 6 | "dn": "mail=someone@mozilla.com,o=com,dc=mozilla" 7 | } 8 | }, 9 | { 10 | "cn": "Mickey Husk", 11 | "bugzillaEmail": "someone@mydomain.com", 12 | "mail": "someone@mozilla.com", 13 | "manager": { 14 | "dn": "mail=manager@mozilla.com,o=com,dc=mozilla" 15 | } 16 | }, 17 | { 18 | "cn": "Jessica DeLaure", 19 | "mail": "manager@mozilla.com", 20 | "manager": null 21 | } 22 | ] -------------------------------------------------------------------------------- /src/static/triageOwners.json: -------------------------------------------------------------------------------- 1 | { 2 | "jwhitlock@mozilla.com": [ 3 | { 4 | "product": "Location", 5 | "component": "API Key" 6 | }, 7 | { 8 | "product": "Location", 9 | "component": "General" 10 | } 11 | ], 12 | "jeevans@mozilla.com": [ 13 | { 14 | "product": "Firefox for iOS", 15 | "component": "Browser" 16 | }, 17 | { 18 | "product": "Firefox for iOS", 19 | "component": "Build & Test" 20 | }, 21 | { 22 | "product": "Firefox for iOS", 23 | "component": "Data Storage" 24 | }, 25 | { 26 | "product": "Firefox for iOS", 27 | "component": "Favicons" 28 | }, 29 | { 30 | "product": "Firefox for iOS", 31 | "component": "Firefox Accounts" 32 | }, 33 | { 34 | "product": "Firefox for iOS", 35 | "component": "General" 36 | }, 37 | { 38 | "product": "Firefox for iOS", 39 | "component": "Home screen" 40 | }, 41 | { 42 | "product": "Firefox for iOS", 43 | "component": "Localization" 44 | }, 45 | { 46 | "product": "Firefox for iOS", 47 | "component": "Login Management" 48 | }, 49 | { 50 | "product": "Firefox for iOS", 51 | "component": "Menu and Toolbar" 52 | }, 53 | { 54 | "product": "Firefox for iOS", 55 | "component": "Reader View" 56 | }, 57 | { 58 | "product": "Firefox for iOS", 59 | "component": "Reading List" 60 | }, 61 | { 62 | "product": "Firefox for iOS", 63 | "component": "Sync" 64 | }, 65 | { 66 | "product": "Firefox for iOS", 67 | "component": "Telemetry" 68 | }, 69 | { 70 | "product": "Firefox for iOS", 71 | "component": "Theme & Visual Design" 72 | }, 73 | { 74 | "product": "Firefox for iOS", 75 | "component": "Third Party Security Issues" 76 | } 77 | ], 78 | "sheehan@mozilla.com": [ 79 | { 80 | "product": "Developer Services", 81 | "component": "Mercurial: bundleclone" 82 | }, 83 | { 84 | "product": "Developer Services", 85 | "component": "Mercurial: bzexport" 86 | }, 87 | { 88 | "product": "Developer Services", 89 | "component": "Mercurial: bzpost" 90 | }, 91 | { 92 | "product": "Developer Services", 93 | "component": "Mercurial: configwizard" 94 | }, 95 | { 96 | "product": "Developer Services", 97 | "component": "Mercurial: firefoxtree" 98 | }, 99 | { 100 | "product": "Developer Services", 101 | "component": "Mercurial: hg.mozilla.org" 102 | }, 103 | { 104 | "product": "Developer Services", 105 | "component": "Mercurial: mozext" 106 | }, 107 | { 108 | "product": "Developer Services", 109 | "component": "Mercurial: Pushlog" 110 | }, 111 | { 112 | "product": "Developer Services", 113 | "component": "Mercurial: qbackout" 114 | }, 115 | { 116 | "product": "Developer Services", 117 | "component": "Mercurial: qimportbz" 118 | }, 119 | { 120 | "product": "Developer Services", 121 | "component": "Mercurial: robustcheckout" 122 | } 123 | ], 124 | "dustin@mozilla.com": [ 125 | { 126 | "product": "Taskcluster Graveyard", 127 | "component": "Scheduler" 128 | } 129 | ], 130 | "sarentz@mozilla.com": [ 131 | { 132 | "product": "Firefox for Echo Show", 133 | "component": "Security: General" 134 | }, 135 | { 136 | "product": "Firefox for Android Graveyard", 137 | "component": "Activity Stream" 138 | }, 139 | { 140 | "product": "Firefox for Android Graveyard", 141 | "component": "Awesomescreen" 142 | }, 143 | { 144 | "product": "Firefox for Android Graveyard", 145 | "component": "Custom Tabs" 146 | }, 147 | { 148 | "product": "Firefox for Android Graveyard", 149 | "component": "Download Manager" 150 | }, 151 | { 152 | "product": "Firefox for Android Graveyard", 153 | "component": "Favicon Handling" 154 | }, 155 | { 156 | "product": "Firefox for Android Graveyard", 157 | "component": "First Run" 158 | }, 159 | { 160 | "product": "Firefox for Android Graveyard", 161 | "component": "Locale switching and selection" 162 | }, 163 | { 164 | "product": "Firefox for Android Graveyard", 165 | "component": "Logins, Passwords and Form Fill" 166 | }, 167 | { 168 | "product": "Firefox for Android Graveyard", 169 | "component": "Metrics" 170 | }, 171 | { 172 | "product": "Firefox for Android Graveyard", 173 | "component": "Overlays" 174 | }, 175 | { 176 | "product": "Firefox for Android Graveyard", 177 | "component": "Profile Handling" 178 | }, 179 | { 180 | "product": "Firefox for Android Graveyard", 181 | "component": "Reader View" 182 | }, 183 | { 184 | "product": "Firefox for Android Graveyard", 185 | "component": "Screencasting" 186 | }, 187 | { 188 | "product": "Firefox for Android Graveyard", 189 | "component": "Settings and Preferences" 190 | }, 191 | { 192 | "product": "Firefox for Android Graveyard", 193 | "component": "Text Selection" 194 | }, 195 | { 196 | "product": "Firefox for Android Graveyard", 197 | "component": "Web Apps (PWAs)" 198 | }, 199 | { 200 | "product": "Focus", 201 | "component": "Security: Android" 202 | }, 203 | { 204 | "product": "Focus", 205 | "component": "Security: iOS" 206 | }, 207 | { 208 | "product": "Firefox for FireTV", 209 | "component": "Security: General" 210 | }, 211 | { 212 | "product": "Fenix", 213 | "component": "Security: Android" 214 | }, 215 | { 216 | "product": "Focus-iOS", 217 | "component": "General" 218 | }, 219 | { 220 | "product": "Fenix Graveyard", 221 | "component": "General" 222 | } 223 | ], 224 | "zeid@mozilla.com": [ 225 | { 226 | "product": "Conduit", 227 | "component": "Administration" 228 | }, 229 | { 230 | "product": "Conduit", 231 | "component": "Documentation" 232 | }, 233 | { 234 | "product": "Conduit", 235 | "component": "General" 236 | }, 237 | { 238 | "product": "Conduit", 239 | "component": "Infrastructure" 240 | }, 241 | { 242 | "product": "Conduit", 243 | "component": "Lando" 244 | }, 245 | { 246 | "product": "Conduit", 247 | "component": "moz-phab" 248 | }, 249 | { 250 | "product": "Conduit", 251 | "component": "Phabricator" 252 | } 253 | ], 254 | "glob@mozilla.com": [ 255 | { 256 | "product": "Conduit", 257 | "component": "Transplant" 258 | } 259 | ], 260 | "mana@mozilla.com": [ 261 | { 262 | "product": "support.mozilla.org", 263 | "component": "App" 264 | }, 265 | { 266 | "product": "support.mozilla.org", 267 | "component": "Army of Awesome" 268 | }, 269 | { 270 | "product": "support.mozilla.org", 271 | "component": "Code Quality" 272 | }, 273 | { 274 | "product": "support.mozilla.org", 275 | "component": "Forum" 276 | }, 277 | { 278 | "product": "support.mozilla.org", 279 | "component": "General" 280 | }, 281 | { 282 | "product": "support.mozilla.org", 283 | "component": "Lithium Migration" 284 | }, 285 | { 286 | "product": "support.mozilla.org", 287 | "component": "Localization" 288 | }, 289 | { 290 | "product": "support.mozilla.org", 291 | "component": "Mobile" 292 | }, 293 | { 294 | "product": "support.mozilla.org", 295 | "component": "Questions" 296 | }, 297 | { 298 | "product": "support.mozilla.org", 299 | "component": "Users and Groups" 300 | }, 301 | { 302 | "product": "support.mozilla.org - Lithium", 303 | "component": "Ask a Question Workflow" 304 | }, 305 | { 306 | "product": "support.mozilla.org - Lithium", 307 | "component": "Contributor and Question Forums" 308 | }, 309 | { 310 | "product": "support.mozilla.org - Lithium", 311 | "component": "General" 312 | }, 313 | { 314 | "product": "support.mozilla.org - Lithium", 315 | "component": "Localization" 316 | }, 317 | { 318 | "product": "support.mozilla.org - Lithium", 319 | "component": "Metrics / LSI" 320 | }, 321 | { 322 | "product": "support.mozilla.org - Lithium", 323 | "component": "Users & Groups" 324 | } 325 | ], 326 | "jsavage@mozilla.com": [ 327 | { 328 | "product": "support.mozilla.org", 329 | "component": "Knowledge Base Articles" 330 | }, 331 | { 332 | "product": "support.mozilla.org", 333 | "component": "Knowledge Base Content" 334 | }, 335 | { 336 | "product": "support.mozilla.org", 337 | "component": "Search" 338 | }, 339 | { 340 | "product": "support.mozilla.org - Lithium", 341 | "component": "Knowledge Base Content" 342 | }, 343 | { 344 | "product": "support.mozilla.org - Lithium", 345 | "component": "Search" 346 | }, 347 | { 348 | "product": "support.mozilla.org - Lithium", 349 | "component": "User Experience & Design" 350 | } 351 | ], 352 | "rtanglao@mozilla.com": [ 353 | { 354 | "product": "support.mozilla.org", 355 | "component": "Knowledge Base Software" 356 | }, 357 | { 358 | "product": "support.mozilla.org - Lithium", 359 | "component": "Feature request" 360 | }, 361 | { 362 | "product": "support.mozilla.org - Lithium", 363 | "component": "Knowledge Base Software" 364 | } 365 | ], 366 | "mixedpuppy@gmail.com": [ 367 | { 368 | "product": "Firefox for Android Graveyard", 369 | "component": "Add-on Manager" 370 | }, 371 | { 372 | "product": "Toolkit", 373 | "component": "Add-ons Manager" 374 | }, 375 | { 376 | "product": "WebExtensions", 377 | "component": "Android" 378 | }, 379 | { 380 | "product": "WebExtensions", 381 | "component": "Compatibility" 382 | }, 383 | { 384 | "product": "WebExtensions", 385 | "component": "Developer Outreach" 386 | }, 387 | { 388 | "product": "WebExtensions", 389 | "component": "Developer Tools" 390 | }, 391 | { 392 | "product": "WebExtensions", 393 | "component": "Experiments" 394 | }, 395 | { 396 | "product": "WebExtensions", 397 | "component": "Frontend" 398 | }, 399 | { 400 | "product": "WebExtensions", 401 | "component": "General" 402 | }, 403 | { 404 | "product": "WebExtensions", 405 | "component": "Request Handling" 406 | }, 407 | { 408 | "product": "WebExtensions", 409 | "component": "Storage" 410 | }, 411 | { 412 | "product": "WebExtensions", 413 | "component": "Themes" 414 | }, 415 | { 416 | "product": "WebExtensions", 417 | "component": "Untriaged" 418 | }, 419 | { 420 | "product": "Firefox Graveyard", 421 | "component": "SocialAPI" 422 | }, 423 | { 424 | "product": "Firefox Graveyard", 425 | "component": "SocialAPI: Providers" 426 | } 427 | ], 428 | "mozilla@kaply.com": [ 429 | { 430 | "product": "Firefox for Android Graveyard", 431 | "component": "Android partner distribution" 432 | }, 433 | { 434 | "product": "Core", 435 | "component": "AutoConfig (Mission Control Desktop)" 436 | }, 437 | { 438 | "product": "Firefox", 439 | "component": "Distributions" 440 | }, 441 | { 442 | "product": "Firefox", 443 | "component": "Enterprise Policies" 444 | } 445 | ], 446 | "gkruglov@mozilla.com": [ 447 | { 448 | "product": "Firefox for Android Graveyard", 449 | "component": "Android Sync" 450 | }, 451 | { 452 | "product": "Firefox for Android Graveyard", 453 | "component": "Data Providers" 454 | }, 455 | { 456 | "product": "Firefox for Android Graveyard", 457 | "component": "Firefox Accounts" 458 | } 459 | ], 460 | "bvandyk@mozilla.com": [ 461 | { 462 | "product": "Firefox for Android Graveyard", 463 | "component": "Audio/Video" 464 | }, 465 | { 466 | "product": "Core", 467 | "component": "Audio/Video" 468 | }, 469 | { 470 | "product": "Core", 471 | "component": "Audio/Video: GMP" 472 | }, 473 | { 474 | "product": "Core", 475 | "component": "Audio/Video: Playback" 476 | } 477 | ], 478 | "m_kato@ga2.so-net.ne.jp": [ 479 | { 480 | "product": "Firefox for Android Graveyard", 481 | "component": "Keyboards and IME" 482 | }, 483 | { 484 | "product": "Core", 485 | "component": "Internationalization" 486 | } 487 | ], 488 | "michael.l.comella@gmail.com": [ 489 | { 490 | "product": "Firefox for Android Graveyard", 491 | "component": "Search Activity" 492 | } 493 | ], 494 | "jh+bugzilla@buttercookie.de": [ 495 | { 496 | "product": "Firefox for Android Graveyard", 497 | "component": "Session Restore" 498 | } 499 | ], 500 | "alam@mozilla.com": [ 501 | { 502 | "product": "Firefox for Android Graveyard", 503 | "component": "Theme and Visual Design" 504 | } 505 | ], 506 | "rbarker@mozilla.com": [ 507 | { 508 | "product": "Firefox for Android Graveyard", 509 | "component": "Toolbar" 510 | } 511 | ], 512 | "nobody@mozilla.org": [ 513 | { 514 | "product": "Core Graveyard", 515 | "component": "DOM: Apps" 516 | }, 517 | { 518 | "product": "Core Graveyard", 519 | "component": "DOM: Contacts" 520 | }, 521 | { 522 | "product": "Core Graveyard", 523 | "component": "Widget: Gonk" 524 | }, 525 | { 526 | "product": "Core Graveyard", 527 | "component": "X-remote" 528 | }, 529 | { 530 | "product": "Mozilla Localizations", 531 | "component": "ia / Interlingua" 532 | }, 533 | { 534 | "product": "Cloud Services", 535 | "component": "Operations: Bastion Access" 536 | }, 537 | { 538 | "product": "Toolkit Graveyard", 539 | "component": "Spatial Navigation" 540 | }, 541 | { 542 | "product": "Core", 543 | "component": "String" 544 | }, 545 | { 546 | "product": "Context Graph Graveyard", 547 | "component": "General" 548 | }, 549 | { 550 | "product": "Context Graph Graveyard", 551 | "component": "Recommendation Engine" 552 | } 553 | ], 554 | "kvijayan@mozilla.com": [ 555 | { 556 | "product": "Core Graveyard", 557 | "component": "DOM: Flyweb" 558 | } 559 | ], 560 | "myk@mykzilla.org": [ 561 | { 562 | "product": "Core Graveyard", 563 | "component": "Embedding: APIs" 564 | } 565 | ], 566 | "mak@mozilla.com": [ 567 | { 568 | "product": "Core Graveyard", 569 | "component": "History: Global" 570 | }, 571 | { 572 | "product": "Toolkit", 573 | "component": "Autocomplete" 574 | }, 575 | { 576 | "product": "Toolkit", 577 | "component": "Downloads API" 578 | }, 579 | { 580 | "product": "Toolkit", 581 | "component": "Places" 582 | }, 583 | { 584 | "product": "Toolkit", 585 | "component": "Storage" 586 | }, 587 | { 588 | "product": "Firefox", 589 | "component": "Bookmarks & History" 590 | }, 591 | { 592 | "product": "Firefox", 593 | "component": "Downloads Panel" 594 | }, 595 | { 596 | "product": "Firefox Graveyard", 597 | "component": "RSS Discovery and Preview" 598 | } 599 | ], 600 | "l10n@mozilla.com": [ 601 | { 602 | "product": "Core Graveyard", 603 | "component": "RDF" 604 | } 605 | ], 606 | "jmathies@mozilla.com": [ 607 | { 608 | "product": "Core Graveyard", 609 | "component": "Widget: WinRT" 610 | }, 611 | { 612 | "product": "Toolkit", 613 | "component": "Form Autofill" 614 | }, 615 | { 616 | "product": "Core", 617 | "component": "Graphics" 618 | }, 619 | { 620 | "product": "Core", 621 | "component": "Graphics: Layers" 622 | }, 623 | { 624 | "product": "Core", 625 | "component": "Graphics: WebRender" 626 | }, 627 | { 628 | "product": "Core", 629 | "component": "Plug-ins" 630 | }, 631 | { 632 | "product": "Core", 633 | "component": "Widget" 634 | }, 635 | { 636 | "product": "Core", 637 | "component": "Widget: Win32" 638 | }, 639 | { 640 | "product": "Firefox", 641 | "component": "WebPayments UI" 642 | }, 643 | { 644 | "product": "External Software Affecting Firefox", 645 | "component": "Flash (Adobe)" 646 | } 647 | ], 648 | "etoop@mozilla.com": [ 649 | { 650 | "product": "GeckoView", 651 | "component": "Extensions" 652 | }, 653 | { 654 | "product": "GeckoView", 655 | "component": "GeckoViewExample" 656 | }, 657 | { 658 | "product": "GeckoView", 659 | "component": "General" 660 | }, 661 | { 662 | "product": "GeckoView", 663 | "component": "Tracking Protection" 664 | } 665 | ], 666 | "kbrosnan@mozilla.com": [ 667 | { 668 | "product": "Focus", 669 | "component": "Stability" 670 | }, 671 | { 672 | "product": "Lockwise", 673 | "component": "Security" 674 | }, 675 | { 676 | "product": "Fenix", 677 | "component": "Stability" 678 | } 679 | ], 680 | "vporof@mozilla.com": [ 681 | { 682 | "product": "DevTools Graveyard", 683 | "component": "Canvas Debugger" 684 | }, 685 | { 686 | "product": "DevTools Graveyard", 687 | "component": "WebGL Shader Editor" 688 | } 689 | ], 690 | "jdescottes@mozilla.com": [ 691 | { 692 | "product": "DevTools Graveyard", 693 | "component": "Scratchpad" 694 | }, 695 | { 696 | "product": "DevTools Graveyard", 697 | "component": "WebIDE" 698 | }, 699 | { 700 | "product": "DevTools", 701 | "component": "about:debugging" 702 | }, 703 | { 704 | "product": "DevTools", 705 | "component": "Inspector" 706 | }, 707 | { 708 | "product": "DevTools", 709 | "component": "Inspector: Changes" 710 | }, 711 | { 712 | "product": "DevTools", 713 | "component": "Inspector: Layout" 714 | }, 715 | { 716 | "product": "DevTools", 717 | "component": "Inspector: Rules" 718 | }, 719 | { 720 | "product": "DevTools", 721 | "component": "Style Editor" 722 | } 723 | ], 724 | "spenades@mozilla.com": [ 725 | { 726 | "product": "DevTools Graveyard", 727 | "component": "Web Audio Editor" 728 | } 729 | ], 730 | "odvarko@gmail.com": [ 731 | { 732 | "product": "DevTools Graveyard", 733 | "component": "What's New" 734 | }, 735 | { 736 | "product": "DevTools", 737 | "component": "Debugger" 738 | }, 739 | { 740 | "product": "DevTools", 741 | "component": "Documentation" 742 | }, 743 | { 744 | "product": "DevTools", 745 | "component": "DOM" 746 | }, 747 | { 748 | "product": "DevTools", 749 | "component": "General" 750 | }, 751 | { 752 | "product": "DevTools", 753 | "component": "JSON Viewer" 754 | }, 755 | { 756 | "product": "DevTools", 757 | "component": "Netmonitor" 758 | }, 759 | { 760 | "product": "DevTools", 761 | "component": "Shared Components" 762 | }, 763 | { 764 | "product": "Toolkit", 765 | "component": "View Source" 766 | } 767 | ], 768 | "mgrimes@mozilla.com": [ 769 | { 770 | "product": "Product Innovation", 771 | "component": "Consultation" 772 | }, 773 | { 774 | "product": "Product Innovation", 775 | "component": "Project Request" 776 | } 777 | ], 778 | "willkg@mozilla.com": [ 779 | { 780 | "product": "Tecken", 781 | "component": "General" 782 | }, 783 | { 784 | "product": "Tecken", 785 | "component": "Symbolication" 786 | }, 787 | { 788 | "product": "Tecken", 789 | "component": "Upload" 790 | }, 791 | { 792 | "product": "Socorro", 793 | "component": "Antenna" 794 | }, 795 | { 796 | "product": "Socorro", 797 | "component": "Processor" 798 | }, 799 | { 800 | "product": "Socorro", 801 | "component": "Signature" 802 | }, 803 | { 804 | "product": "Socorro", 805 | "component": "Tecken" 806 | } 807 | ], 808 | "rob@thunderbird.net": [ 809 | { 810 | "product": "MailNews Core", 811 | "component": "Build Config" 812 | }, 813 | { 814 | "product": "Thunderbird", 815 | "component": "Build Config" 816 | } 817 | ], 818 | "jorgk-bmo@jorgk.com": [ 819 | { 820 | "product": "MailNews Core", 821 | "component": "General" 822 | }, 823 | { 824 | "product": "MailNews Core", 825 | "component": "XUL Replacements" 826 | } 827 | ], 828 | "kaie@kuix.de": [ 829 | { 830 | "product": "MailNews Core", 831 | "component": "Security: OpenPGP" 832 | }, 833 | { 834 | "product": "NSPR", 835 | "component": "NSPR" 836 | }, 837 | { 838 | "product": "Chat Core", 839 | "component": "Security: OTR" 840 | } 841 | ], 842 | "klahnakoski@mozilla.com": [ 843 | { 844 | "product": "bugzilla.mozilla.org Graveyard", 845 | "component": "Bugzilla Anthropology Metrics" 846 | }, 847 | { 848 | "product": "Tree Management Graveyard", 849 | "component": "Treeherder: Client Libraries" 850 | }, 851 | { 852 | "product": "Testing", 853 | "component": "Bugzilla-ETL" 854 | } 855 | ], 856 | "kmoir@mozilla.com": [ 857 | { 858 | "product": "bugzilla.mozilla.org Graveyard", 859 | "component": "Bugzilla Change Notification System" 860 | }, 861 | { 862 | "product": "Developer Infrastructure", 863 | "component": "General" 864 | }, 865 | { 866 | "product": "Core", 867 | "component": "Performance" 868 | } 869 | ], 870 | "yzenevich@mozilla.com": [ 871 | { 872 | "product": "DevTools", 873 | "component": "Accessibility Tools" 874 | } 875 | ], 876 | "balbeza@mozilla.com": [ 877 | { 878 | "product": "DevTools", 879 | "component": "Application Panel" 880 | }, 881 | { 882 | "product": "DevTools", 883 | "component": "CSS and Themes" 884 | }, 885 | { 886 | "product": "DevTools", 887 | "component": "Storage Inspector" 888 | } 889 | ], 890 | "nchevobbe@mozilla.com": [ 891 | { 892 | "product": "DevTools", 893 | "component": "Console" 894 | }, 895 | { 896 | "product": "DevTools", 897 | "component": "Object Inspector" 898 | }, 899 | { 900 | "product": "DevTools", 901 | "component": "Responsive Design Mode" 902 | }, 903 | { 904 | "product": "DevTools", 905 | "component": "Source Editor" 906 | } 907 | ], 908 | "poirot.alex@gmail.com": [ 909 | { 910 | "product": "DevTools", 911 | "component": "Framework" 912 | } 913 | ], 914 | "daisuke@birchill.co.jp": [ 915 | { 916 | "product": "DevTools", 917 | "component": "Inspector: Animations" 918 | }, 919 | { 920 | "product": "DevTools", 921 | "component": "Inspector: Compatibility" 922 | } 923 | ], 924 | "felash@gmail.com": [ 925 | { 926 | "product": "DevTools", 927 | "component": "Memory" 928 | }, 929 | { 930 | "product": "DevTools", 931 | "component": "Performance Tools (Profiler/Timeline)" 932 | } 933 | ], 934 | "coopcoopbware@gmail.com": [ 935 | { 936 | "product": "Webtools", 937 | "component": "Pulse" 938 | } 939 | ], 940 | "stefancosten@mozilla.org.uk": [ 941 | { 942 | "product": "Participation Infrastructure", 943 | "component": "MCWS" 944 | } 945 | ], 946 | "rgarbas@mozilla.com": [ 947 | { 948 | "product": "Release Engineering", 949 | "component": "Applications: Mapper" 950 | }, 951 | { 952 | "product": "Release Engineering Graveyard", 953 | "component": "Applications: ServicesCore" 954 | } 955 | ], 956 | "aki@mozilla.com": [ 957 | { 958 | "product": "Release Engineering", 959 | "component": "Applications: MozharnessCore" 960 | }, 961 | { 962 | "product": "Release Engineering", 963 | "component": "Custom Release Requests" 964 | }, 965 | { 966 | "product": "Release Engineering", 967 | "component": "Release Automation: L10N" 968 | }, 969 | { 970 | "product": "Release Engineering", 971 | "component": "Release Automation: Signing" 972 | } 973 | ], 974 | "bhearsum@mozilla.com": [ 975 | { 976 | "product": "Release Engineering", 977 | "component": "Applications: Shipit (backend)" 978 | }, 979 | { 980 | "product": "Release Engineering", 981 | "component": "Applications: Shipit (frontend)" 982 | }, 983 | { 984 | "product": "Release Engineering", 985 | "component": "Applications: ToolTool" 986 | }, 987 | { 988 | "product": "Release Engineering", 989 | "component": "Applications: TreeStatus" 990 | }, 991 | { 992 | "product": "Release Engineering Graveyard", 993 | "component": "Applications: Balrog (backend)" 994 | }, 995 | { 996 | "product": "Release Engineering Graveyard", 997 | "component": "Applications: Balrog (frontend)" 998 | } 999 | ], 1000 | "mtabara@mozilla.com": [ 1001 | { 1002 | "product": "Release Engineering", 1003 | "component": "Documentation" 1004 | }, 1005 | { 1006 | "product": "Release Engineering", 1007 | "component": "Firefox-CI Administration" 1008 | }, 1009 | { 1010 | "product": "Release Engineering", 1011 | "component": "General" 1012 | }, 1013 | { 1014 | "product": "Release Engineering", 1015 | "component": "Release Automation: Bouncer" 1016 | }, 1017 | { 1018 | "product": "Release Engineering", 1019 | "component": "Release Automation: Other" 1020 | }, 1021 | { 1022 | "product": "Release Engineering", 1023 | "component": "Release Automation: Updates" 1024 | }, 1025 | { 1026 | "product": "Release Engineering", 1027 | "component": "Release Automation: Uploading" 1028 | } 1029 | ], 1030 | "u504868@disabled.tld": [ 1031 | { 1032 | "product": "Release Engineering", 1033 | "component": "Release Automation: Pushapk" 1034 | }, 1035 | { 1036 | "product": "Release Engineering", 1037 | "component": "Release Automation: Snap" 1038 | }, 1039 | { 1040 | "product": "Release Engineering", 1041 | "component": "Release Requests" 1042 | } 1043 | ], 1044 | "catlee@mozilla.com": [ 1045 | { 1046 | "product": "Release Engineering", 1047 | "component": "Tools" 1048 | } 1049 | ], 1050 | "andy+bugzilla@mckay.pub": [ 1051 | { 1052 | "product": "Testing Graveyard", 1053 | "component": "TPS" 1054 | } 1055 | ], 1056 | "hskupin@gmail.com": [ 1057 | { 1058 | "product": "Remote Protocol", 1059 | "component": "Agent" 1060 | }, 1061 | { 1062 | "product": "Remote Protocol", 1063 | "component": "Browser" 1064 | }, 1065 | { 1066 | "product": "Remote Protocol", 1067 | "component": "Debugger" 1068 | }, 1069 | { 1070 | "product": "Remote Protocol", 1071 | "component": "DOM" 1072 | }, 1073 | { 1074 | "product": "Remote Protocol", 1075 | "component": "Emulation" 1076 | }, 1077 | { 1078 | "product": "Remote Protocol", 1079 | "component": "Fetch" 1080 | }, 1081 | { 1082 | "product": "Remote Protocol", 1083 | "component": "Input" 1084 | }, 1085 | { 1086 | "product": "Remote Protocol", 1087 | "component": "Inspector" 1088 | }, 1089 | { 1090 | "product": "Remote Protocol", 1091 | "component": "IO" 1092 | }, 1093 | { 1094 | "product": "Remote Protocol", 1095 | "component": "Log" 1096 | }, 1097 | { 1098 | "product": "Remote Protocol", 1099 | "component": "Network" 1100 | }, 1101 | { 1102 | "product": "Remote Protocol", 1103 | "component": "Page" 1104 | }, 1105 | { 1106 | "product": "Remote Protocol", 1107 | "component": "Performance" 1108 | }, 1109 | { 1110 | "product": "Remote Protocol", 1111 | "component": "Runtime" 1112 | }, 1113 | { 1114 | "product": "Remote Protocol", 1115 | "component": "Security" 1116 | }, 1117 | { 1118 | "product": "Remote Protocol", 1119 | "component": "Target" 1120 | }, 1121 | { 1122 | "product": "Testing", 1123 | "component": "Firefox UI Tests" 1124 | }, 1125 | { 1126 | "product": "Testing", 1127 | "component": "geckodriver" 1128 | }, 1129 | { 1130 | "product": "Testing", 1131 | "component": "Marionette" 1132 | } 1133 | ], 1134 | "gene@mozilla.com": [ 1135 | { 1136 | "product": "Enterprise Information Security Graveyard", 1137 | "component": "MIG" 1138 | }, 1139 | { 1140 | "product": "Enterprise Information Security Graveyard", 1141 | "component": "MozDef" 1142 | }, 1143 | { 1144 | "product": "Enterprise Information Security Graveyard", 1145 | "component": "NSM" 1146 | }, 1147 | { 1148 | "product": "Enterprise Information Security Graveyard", 1149 | "component": "Penetration Test" 1150 | }, 1151 | { 1152 | "product": "Enterprise Information Security Graveyard", 1153 | "component": "Threat Modeling" 1154 | }, 1155 | { 1156 | "product": "Enterprise Information Security", 1157 | "component": "General" 1158 | }, 1159 | { 1160 | "product": "Enterprise Information Security", 1161 | "component": "Incident" 1162 | }, 1163 | { 1164 | "product": "Enterprise Information Security", 1165 | "component": "Investigation" 1166 | }, 1167 | { 1168 | "product": "Enterprise Information Security", 1169 | "component": "Rapid Risk Analysis" 1170 | }, 1171 | { 1172 | "product": "Enterprise Information Security", 1173 | "component": "Risk Record" 1174 | }, 1175 | { 1176 | "product": "Enterprise Information Security", 1177 | "component": "Vulnerability Assessment" 1178 | } 1179 | ], 1180 | "mschwarzlose@mozilla.com": [ 1181 | { 1182 | "product": "UX Systems", 1183 | "component": "Asset" 1184 | }, 1185 | { 1186 | "product": "UX Systems", 1187 | "component": "Component" 1188 | }, 1189 | { 1190 | "product": "UX Systems", 1191 | "component": "Design Review" 1192 | } 1193 | ], 1194 | "continuation@gmail.com": [ 1195 | { 1196 | "product": "Toolkit", 1197 | "component": "about:memory" 1198 | }, 1199 | { 1200 | "product": "Core", 1201 | "component": "DMD" 1202 | } 1203 | ], 1204 | "rtublitz@mozilla.com": [ 1205 | { 1206 | "product": "Toolkit", 1207 | "component": "Application Update" 1208 | }, 1209 | { 1210 | "product": "Cloud Services", 1211 | "component": "Server: Sync" 1212 | }, 1213 | { 1214 | "product": "Firefox", 1215 | "component": "Installer" 1216 | }, 1217 | { 1218 | "product": "Firefox", 1219 | "component": "Shell Integration" 1220 | } 1221 | ], 1222 | "gijskruitbosch+bugs@gmail.com": [ 1223 | { 1224 | "product": "Toolkit", 1225 | "component": "Async Tooling" 1226 | }, 1227 | { 1228 | "product": "Toolkit", 1229 | "component": "Blocklist Implementation" 1230 | }, 1231 | { 1232 | "product": "Toolkit", 1233 | "component": "Reader Mode" 1234 | }, 1235 | { 1236 | "product": "Toolkit", 1237 | "component": "Toolbars and Toolbar Customization" 1238 | }, 1239 | { 1240 | "product": "Firefox", 1241 | "component": "File Handling" 1242 | }, 1243 | { 1244 | "product": "Firefox", 1245 | "component": "Migration" 1246 | }, 1247 | { 1248 | "product": "Firefox", 1249 | "component": "Toolbars and Customization" 1250 | } 1251 | ], 1252 | "awagner@mozilla.com": [ 1253 | { 1254 | "product": "Toolkit", 1255 | "component": "Blocklist Policy Requests" 1256 | } 1257 | ], 1258 | "gsvelto@mozilla.com": [ 1259 | { 1260 | "product": "Toolkit", 1261 | "component": "Crash Reporting" 1262 | }, 1263 | { 1264 | "product": "Core", 1265 | "component": "Hardware Abstraction Layer (HAL)" 1266 | } 1267 | ], 1268 | "jhofmann@mozilla.com": [ 1269 | { 1270 | "product": "Toolkit", 1271 | "component": "Data Sanitization" 1272 | }, 1273 | { 1274 | "product": "Firefox", 1275 | "component": "Private Browsing" 1276 | }, 1277 | { 1278 | "product": "Firefox", 1279 | "component": "Security" 1280 | } 1281 | ], 1282 | "mcooper@mozilla.com": [ 1283 | { 1284 | "product": "Toolkit", 1285 | "component": "FeatureGate" 1286 | }, 1287 | { 1288 | "product": "Firefox", 1289 | "component": "Normandy Client" 1290 | }, 1291 | { 1292 | "product": "Firefox", 1293 | "component": "Normandy Server" 1294 | } 1295 | ], 1296 | "mdeboer@mozilla.com": [ 1297 | { 1298 | "product": "Toolkit", 1299 | "component": "Find Toolbar" 1300 | }, 1301 | { 1302 | "product": "Core", 1303 | "component": "Find Backend" 1304 | }, 1305 | { 1306 | "product": "Firefox", 1307 | "component": "Session Restore" 1308 | } 1309 | ], 1310 | "sfoster@mozilla.com": [ 1311 | { 1312 | "product": "Toolkit", 1313 | "component": "Form Manager" 1314 | }, 1315 | { 1316 | "product": "Toolkit", 1317 | "component": "Password Manager" 1318 | }, 1319 | { 1320 | "product": "Toolkit", 1321 | "component": "Password Manager: Site Compatibility" 1322 | }, 1323 | { 1324 | "product": "Firefox", 1325 | "component": "about:logins" 1326 | } 1327 | ], 1328 | "dtownsend@mozilla.com": [ 1329 | { 1330 | "product": "Toolkit", 1331 | "component": "General" 1332 | }, 1333 | { 1334 | "product": "Toolkit", 1335 | "component": "Startup and Profile System" 1336 | }, 1337 | { 1338 | "product": "Firefox", 1339 | "component": "General" 1340 | } 1341 | ], 1342 | "tspurway@mozilla.com": [ 1343 | { 1344 | "product": "Toolkit", 1345 | "component": "Notifications and Alerts" 1346 | }, 1347 | { 1348 | "product": "Firefox", 1349 | "component": "Activity Streams: General" 1350 | }, 1351 | { 1352 | "product": "Firefox", 1353 | "component": "Activity Streams: Server Operations" 1354 | }, 1355 | { 1356 | "product": "Firefox", 1357 | "component": "Activity Streams: Timeline" 1358 | }, 1359 | { 1360 | "product": "Firefox", 1361 | "component": "Messaging System" 1362 | } 1363 | ], 1364 | "mhowell@mozilla.com": [ 1365 | { 1366 | "product": "Toolkit", 1367 | "component": "NSIS Installer" 1368 | } 1369 | ], 1370 | "brennie@mozilla.com": [ 1371 | { 1372 | "product": "Toolkit", 1373 | "component": "OS.File" 1374 | } 1375 | ], 1376 | "florian@mozilla.com": [ 1377 | { 1378 | "product": "Toolkit", 1379 | "component": "Performance Monitoring" 1380 | }, 1381 | { 1382 | "product": "Firefox", 1383 | "component": "Page Info Window" 1384 | }, 1385 | { 1386 | "product": "Firefox", 1387 | "component": "Translation" 1388 | } 1389 | ], 1390 | "jaws@mozilla.com": [ 1391 | { 1392 | "product": "Toolkit", 1393 | "component": "Preferences" 1394 | }, 1395 | { 1396 | "product": "Toolkit", 1397 | "component": "Video/Audio Controls" 1398 | }, 1399 | { 1400 | "product": "Firefox", 1401 | "component": "Menus" 1402 | }, 1403 | { 1404 | "product": "Firefox", 1405 | "component": "Preferences" 1406 | } 1407 | ], 1408 | "mstriemer@mozilla.com": [ 1409 | { 1410 | "product": "Toolkit", 1411 | "component": "Printing" 1412 | }, 1413 | { 1414 | "product": "Toolkit", 1415 | "component": "XUL Widgets" 1416 | } 1417 | ], 1418 | "dlee@mozilla.com": [ 1419 | { 1420 | "product": "Toolkit", 1421 | "component": "Safe Browsing" 1422 | } 1423 | ], 1424 | "chutten@mozilla.com": [ 1425 | { 1426 | "product": "Toolkit", 1427 | "component": "Telemetry" 1428 | }, 1429 | { 1430 | "product": "Data Platform and Tools", 1431 | "component": "Telemetry Dashboards (TMO)" 1432 | } 1433 | ], 1434 | "dao+bmo@mozilla.com": [ 1435 | { 1436 | "product": "Toolkit", 1437 | "component": "Themes" 1438 | }, 1439 | { 1440 | "product": "Firefox", 1441 | "component": "Keyboard Navigation" 1442 | }, 1443 | { 1444 | "product": "Firefox", 1445 | "component": "Tabbed Browser" 1446 | }, 1447 | { 1448 | "product": "Firefox", 1449 | "component": "Theme" 1450 | }, 1451 | { 1452 | "product": "Firefox", 1453 | "component": "Top Sites" 1454 | } 1455 | ], 1456 | "mozilla+bmo@noorenberghe.ca": [ 1457 | { 1458 | "product": "Toolkit", 1459 | "component": "WebPayments UI" 1460 | }, 1461 | { 1462 | "product": "Testing", 1463 | "component": "mozscreenshots" 1464 | } 1465 | ], 1466 | "francesco.lodolo@gmail.com": [ 1467 | { 1468 | "product": "Mozilla Localizations", 1469 | "component": "bn / Bengali" 1470 | }, 1471 | { 1472 | "product": "Mozilla Localizations", 1473 | "component": "bo / Tibetan" 1474 | }, 1475 | { 1476 | "product": "Mozilla Localizations", 1477 | "component": "ca-valencia / Catalan (Valencian)" 1478 | }, 1479 | { 1480 | "product": "Mozilla Localizations", 1481 | "component": "crh / Crimean Tatar" 1482 | }, 1483 | { 1484 | "product": "Mozilla Localizations", 1485 | "component": "en-CA / English (Canada)" 1486 | }, 1487 | { 1488 | "product": "Mozilla Localizations", 1489 | "component": "meh / Mixteco Yucuhiti" 1490 | }, 1491 | { 1492 | "product": "Mozilla Localizations", 1493 | "component": "mix / Mixtepec Mixtec" 1494 | }, 1495 | { 1496 | "product": "Mozilla Localizations", 1497 | "component": "szl / Silesian" 1498 | } 1499 | ], 1500 | "pmo@mozilla.com": [ 1501 | { 1502 | "product": "Mozilla Localizations", 1503 | "component": "Other" 1504 | } 1505 | ], 1506 | "giorgos@mozilla.com": [ 1507 | { 1508 | "product": "Snippets", 1509 | "component": "Service" 1510 | } 1511 | ], 1512 | "scolville@mozilla.com": [ 1513 | { 1514 | "product": "addons.mozilla.org", 1515 | "component": "Security" 1516 | } 1517 | ], 1518 | "dkl@mozilla.com": [ 1519 | { 1520 | "product": "bugzilla.mozilla.org", 1521 | "component": "Administration" 1522 | }, 1523 | { 1524 | "product": "bugzilla.mozilla.org", 1525 | "component": "API" 1526 | }, 1527 | { 1528 | "product": "bugzilla.mozilla.org", 1529 | "component": "Bug Creation/Editing" 1530 | }, 1531 | { 1532 | "product": "bugzilla.mozilla.org", 1533 | "component": "Bulk Bug Edit Requests" 1534 | }, 1535 | { 1536 | "product": "bugzilla.mozilla.org", 1537 | "component": "Continous Integration" 1538 | }, 1539 | { 1540 | "product": "bugzilla.mozilla.org", 1541 | "component": "Custom Bug Entry Forms" 1542 | }, 1543 | { 1544 | "product": "bugzilla.mozilla.org", 1545 | "component": "Documentation" 1546 | }, 1547 | { 1548 | "product": "bugzilla.mozilla.org", 1549 | "component": "Editbugs Requests" 1550 | }, 1551 | { 1552 | "product": "bugzilla.mozilla.org", 1553 | "component": "Email Notifications" 1554 | }, 1555 | { 1556 | "product": "bugzilla.mozilla.org", 1557 | "component": "Extensions" 1558 | }, 1559 | { 1560 | "product": "bugzilla.mozilla.org", 1561 | "component": "General" 1562 | }, 1563 | { 1564 | "product": "bugzilla.mozilla.org", 1565 | "component": "Graveyard Tasks" 1566 | }, 1567 | { 1568 | "product": "bugzilla.mozilla.org", 1569 | "component": "MyDashboard" 1570 | }, 1571 | { 1572 | "product": "bugzilla.mozilla.org", 1573 | "component": "Phabricator Integration" 1574 | }, 1575 | { 1576 | "product": "bugzilla.mozilla.org", 1577 | "component": "Search" 1578 | }, 1579 | { 1580 | "product": "bugzilla.mozilla.org", 1581 | "component": "Splinter" 1582 | }, 1583 | { 1584 | "product": "bugzilla.mozilla.org", 1585 | "component": "User Interface" 1586 | }, 1587 | { 1588 | "product": "bugzilla.mozilla.org", 1589 | "component": "User Interface: Modal" 1590 | } 1591 | ], 1592 | "ckolos@mozilla.com": [ 1593 | { 1594 | "product": "bugzilla.mozilla.org", 1595 | "component": "Developer Box" 1596 | }, 1597 | { 1598 | "product": "bugzilla.mozilla.org", 1599 | "component": "Infrastructure" 1600 | }, 1601 | { 1602 | "product": "Cloud Services", 1603 | "component": "Operations: Bugzilla" 1604 | }, 1605 | { 1606 | "product": "Cloud Services", 1607 | "component": "Operations: QA Tools" 1608 | } 1609 | ], 1610 | "wlachance@mozilla.com": [ 1611 | { 1612 | "product": "Cloud Services", 1613 | "component": "Iodide" 1614 | }, 1615 | { 1616 | "product": "Testing", 1617 | "component": "mozregression" 1618 | } 1619 | ], 1620 | "gguthe@mozilla.com": [ 1621 | { 1622 | "product": "Cloud Services", 1623 | "component": "Operations: Autograph" 1624 | } 1625 | ], 1626 | "bobm@mozilla.com": [ 1627 | { 1628 | "product": "Cloud Services", 1629 | "component": "Operations: Firefox Monitor" 1630 | }, 1631 | { 1632 | "product": "Cloud Services", 1633 | "component": "Operations: Firefox Private Relay" 1634 | }, 1635 | { 1636 | "product": "Cloud Services", 1637 | "component": "Operations: Sync" 1638 | } 1639 | ], 1640 | "jbuckley@mozilla.com": [ 1641 | { 1642 | "product": "Cloud Services", 1643 | "component": "Operations: Firefox Private Network" 1644 | }, 1645 | { 1646 | "product": "Cloud Services", 1647 | "component": "Operations: Send" 1648 | }, 1649 | { 1650 | "product": "Cloud Services", 1651 | "component": "Operations: Speech" 1652 | } 1653 | ], 1654 | "jwajsberg@mozilla.com": [ 1655 | { 1656 | "product": "Cloud Services", 1657 | "component": "Operations: Firefox Profiler" 1658 | } 1659 | ], 1660 | "bpitts@mozilla.com": [ 1661 | { 1662 | "product": "Cloud Services", 1663 | "component": "Operations: Taskcluster" 1664 | } 1665 | ], 1666 | "abahnken@mozilla.com": [ 1667 | { 1668 | "product": "Cloud Services", 1669 | "component": "Security Alerts" 1670 | } 1671 | ], 1672 | "mathieu@mozilla.com": [ 1673 | { 1674 | "product": "Cloud Services", 1675 | "component": "Server: Remote Settings" 1676 | }, 1677 | { 1678 | "product": "Firefox", 1679 | "component": "Remote Settings Client" 1680 | } 1681 | ], 1682 | "ianb@mozilla.com": [ 1683 | { 1684 | "product": "Cloud Services", 1685 | "component": "Server: Screenshots" 1686 | } 1687 | ], 1688 | "lcrouch@mozilla.com": [ 1689 | { 1690 | "product": "Cloud Services", 1691 | "component": "Server: Shavar" 1692 | }, 1693 | { 1694 | "product": "Firefox", 1695 | "component": "Firefox Monitor" 1696 | } 1697 | ], 1698 | "mreid@mozilla.com": [ 1699 | { 1700 | "product": "Data Platform and Tools Graveyard", 1701 | "component": "Datasets: Addons" 1702 | }, 1703 | { 1704 | "product": "Data Platform and Tools", 1705 | "component": "Datasets: General" 1706 | }, 1707 | { 1708 | "product": "Data Platform and Tools", 1709 | "component": "Datasets: Main Summary" 1710 | }, 1711 | { 1712 | "product": "Data Platform and Tools", 1713 | "component": "General" 1714 | }, 1715 | { 1716 | "product": "Data Platform and Tools", 1717 | "component": "Telemetry APIs for Analysis" 1718 | } 1719 | ], 1720 | "fbertsch@mozilla.com": [ 1721 | { 1722 | "product": "Data Platform and Tools Graveyard", 1723 | "component": "Datasets: Client Count" 1724 | }, 1725 | { 1726 | "product": "Data Platform and Tools Graveyard", 1727 | "component": "Datasets: Error Aggregates" 1728 | }, 1729 | { 1730 | "product": "Data Platform and Tools Graveyard", 1731 | "component": "Datasets: Longitudinal" 1732 | }, 1733 | { 1734 | "product": "Data Platform and Tools", 1735 | "component": "Datasets: Mobile" 1736 | }, 1737 | { 1738 | "product": "Data Platform and Tools", 1739 | "component": "Datasets: Telemetry Aggregates" 1740 | }, 1741 | { 1742 | "product": "Data Platform and Tools", 1743 | "component": "Telemetry Aggregation Service" 1744 | } 1745 | ], 1746 | "mdoglio@mozilla.com": [ 1747 | { 1748 | "product": "Data Platform and Tools Graveyard", 1749 | "component": "Datasets: Crash Aggregates" 1750 | } 1751 | ], 1752 | "rharter@mozilla.com": [ 1753 | { 1754 | "product": "Data Platform and Tools Graveyard", 1755 | "component": "Datasets: Cross-Sectional" 1756 | }, 1757 | { 1758 | "product": "Data Platform and Tools", 1759 | "component": "Documentation and Knowledge Repo (RTMO)" 1760 | }, 1761 | { 1762 | "product": "Data Science", 1763 | "component": "Documentation" 1764 | } 1765 | ], 1766 | "rmiller@mozilla.com": [ 1767 | { 1768 | "product": "Data Platform and Tools Graveyard", 1769 | "component": "Distribution Viewer" 1770 | }, 1771 | { 1772 | "product": "Data Platform and Tools", 1773 | "component": "Redash (STMO)" 1774 | } 1775 | ], 1776 | "rvitillo@mozilla.com": [ 1777 | { 1778 | "product": "Data Platform and Tools Graveyard", 1779 | "component": "HBase" 1780 | } 1781 | ], 1782 | "bimsland@mozilla.com": [ 1783 | { 1784 | "product": "Data Platform and Tools Graveyard", 1785 | "component": "Presto" 1786 | }, 1787 | { 1788 | "product": "Data Platform and Tools", 1789 | "component": "Spark" 1790 | } 1791 | ], 1792 | "jezdez@mozilla.com": [ 1793 | { 1794 | "product": "Data Platform and Tools Graveyard", 1795 | "component": "Telemetry Analysis Service (ATMO)" 1796 | }, 1797 | { 1798 | "product": "Data Platform and Tools", 1799 | "component": "Scheduling" 1800 | } 1801 | ], 1802 | "mhoye@mozilla.com": [ 1803 | { 1804 | "product": "mozilla.org", 1805 | "component": "Discussion Forums" 1806 | }, 1807 | { 1808 | "product": "mozilla.org", 1809 | "component": "Governance" 1810 | }, 1811 | { 1812 | "product": "Websites", 1813 | "component": "pad.mozilla.org" 1814 | }, 1815 | { 1816 | "product": "Websites", 1817 | "component": "paste.mozilla.org" 1818 | }, 1819 | { 1820 | "product": "Infrastructure & Operations", 1821 | "component": "Matrix" 1822 | } 1823 | ], 1824 | "josh@joshmatthews.net": [ 1825 | { 1826 | "product": "mozilla.org", 1827 | "component": "Repository Account Requests" 1828 | } 1829 | ], 1830 | "chrismore.bugzilla@gmail.com": [ 1831 | { 1832 | "product": "Firefox Private Network", 1833 | "component": "General" 1834 | }, 1835 | { 1836 | "product": "Mozilla VPN", 1837 | "component": "Client for Android" 1838 | }, 1839 | { 1840 | "product": "Mozilla VPN", 1841 | "component": "Client for iOS" 1842 | }, 1843 | { 1844 | "product": "Mozilla VPN", 1845 | "component": "Client for Linux" 1846 | }, 1847 | { 1848 | "product": "Mozilla VPN", 1849 | "component": "Client for Mac" 1850 | }, 1851 | { 1852 | "product": "Mozilla VPN", 1853 | "component": "Client for Windows" 1854 | }, 1855 | { 1856 | "product": "Mozilla VPN", 1857 | "component": "General" 1858 | }, 1859 | { 1860 | "product": "Mozilla VPN", 1861 | "component": "Platform" 1862 | }, 1863 | { 1864 | "product": "Mozilla VPN", 1865 | "component": "Website" 1866 | } 1867 | ], 1868 | "kdubost@mozilla.com": [ 1869 | { 1870 | "product": "Web Compatibility", 1871 | "component": "Desktop" 1872 | }, 1873 | { 1874 | "product": "Web Compatibility", 1875 | "component": "Interventions" 1876 | }, 1877 | { 1878 | "product": "Web Compatibility", 1879 | "component": "Mobile" 1880 | }, 1881 | { 1882 | "product": "Web Compatibility", 1883 | "component": "Tooling & Investigations" 1884 | } 1885 | ], 1886 | "smalolepszy@gmail.com": [ 1887 | { 1888 | "product": "Localization Infrastructure and Tools", 1889 | "component": "Fluent Migration" 1890 | } 1891 | ], 1892 | "gps@mozilla.com": [ 1893 | { 1894 | "product": "Toolkit Graveyard", 1895 | "component": "Build Config" 1896 | } 1897 | ], 1898 | "tantek@cs.stanford.edu": [ 1899 | { 1900 | "product": "Toolkit Graveyard", 1901 | "component": "Microformats" 1902 | } 1903 | ], 1904 | "mjaritz@mozilla.com": [ 1905 | { 1906 | "product": "User Experience Design", 1907 | "component": "Firefox Desktop: Consultation" 1908 | }, 1909 | { 1910 | "product": "User Experience Design", 1911 | "component": "Firefox Desktop: Project Request" 1912 | } 1913 | ], 1914 | "mthayer@mozilla.com": [ 1915 | { 1916 | "product": "Websites", 1917 | "component": "irlpodcast.org" 1918 | } 1919 | ], 1920 | "echo@mozilla.com": [ 1921 | { 1922 | "product": "Websites", 1923 | "component": "Web Analytics" 1924 | } 1925 | ], 1926 | "spike@mozilla.org.uk": [ 1927 | { 1928 | "product": "Websites", 1929 | "component": "wiki.mozilla.org" 1930 | } 1931 | ], 1932 | "anatal@gmail.com": [ 1933 | { 1934 | "product": "Core", 1935 | "component": "Applied Machine Learning" 1936 | } 1937 | ], 1938 | "padenot@mozilla.com": [ 1939 | { 1940 | "product": "Core", 1941 | "component": "Audio/Video: cubeb" 1942 | }, 1943 | { 1944 | "product": "Core", 1945 | "component": "Audio/Video: MediaStreamGraph" 1946 | }, 1947 | { 1948 | "product": "Core", 1949 | "component": "Audio/Video: Recording" 1950 | }, 1951 | { 1952 | "product": "Core", 1953 | "component": "Web Audio" 1954 | } 1955 | ], 1956 | "lsalzman@mozilla.com": [ 1957 | { 1958 | "product": "Core", 1959 | "component": "Canvas: 2D" 1960 | }, 1961 | { 1962 | "product": "Core", 1963 | "component": "Graphics: Text" 1964 | } 1965 | ], 1966 | "jgilbert@mozilla.com": [ 1967 | { 1968 | "product": "Core", 1969 | "component": "Canvas: WebGL" 1970 | } 1971 | ], 1972 | "cam@mcc.id.au": [ 1973 | { 1974 | "product": "Core", 1975 | "component": "CSS Parsing and Computation" 1976 | } 1977 | ], 1978 | "boris.chiou@gmail.com": [ 1979 | { 1980 | "product": "Core", 1981 | "component": "CSS Transitions and Animations" 1982 | }, 1983 | { 1984 | "product": "Core", 1985 | "component": "DOM: Animation" 1986 | } 1987 | ], 1988 | "jteh@mozilla.com": [ 1989 | { 1990 | "product": "Core", 1991 | "component": "Disability Access APIs" 1992 | } 1993 | ], 1994 | "echen@mozilla.com": [ 1995 | { 1996 | "product": "Core", 1997 | "component": "DOM: Bindings (WebIDL)" 1998 | } 1999 | ], 2000 | "nkochar@mozilla.com": [ 2001 | { 2002 | "product": "Core", 2003 | "component": "DOM: Content Processes" 2004 | }, 2005 | { 2006 | "product": "Core", 2007 | "component": "DOM: Navigation" 2008 | }, 2009 | { 2010 | "product": "Core", 2011 | "component": "DOM: Window and Location" 2012 | } 2013 | ], 2014 | "jstutte@mozilla.com": [ 2015 | { 2016 | "product": "Core", 2017 | "component": "DOM: Core & HTML" 2018 | }, 2019 | { 2020 | "product": "Core", 2021 | "component": "DOM: Drag & Drop" 2022 | }, 2023 | { 2024 | "product": "Core", 2025 | "component": "DOM: Editor" 2026 | }, 2027 | { 2028 | "product": "Core", 2029 | "component": "DOM: Events" 2030 | }, 2031 | { 2032 | "product": "Core", 2033 | "component": "DOM: File" 2034 | }, 2035 | { 2036 | "product": "Core", 2037 | "component": "DOM: Forms" 2038 | }, 2039 | { 2040 | "product": "Core", 2041 | "component": "DOM: Geolocation" 2042 | }, 2043 | { 2044 | "product": "Core", 2045 | "component": "DOM: HTML Parser" 2046 | }, 2047 | { 2048 | "product": "Core", 2049 | "component": "DOM: Networking" 2050 | }, 2051 | { 2052 | "product": "Core", 2053 | "component": "DOM: postMessage" 2054 | }, 2055 | { 2056 | "product": "Core", 2057 | "component": "DOM: Push Notifications" 2058 | }, 2059 | { 2060 | "product": "Core", 2061 | "component": "DOM: Selection" 2062 | }, 2063 | { 2064 | "product": "Core", 2065 | "component": "DOM: Serializers" 2066 | }, 2067 | { 2068 | "product": "Core", 2069 | "component": "DOM: Service Workers" 2070 | }, 2071 | { 2072 | "product": "Core", 2073 | "component": "DOM: UI Events & Focus Handling" 2074 | }, 2075 | { 2076 | "product": "Core", 2077 | "component": "DOM: Web Payments" 2078 | }, 2079 | { 2080 | "product": "Core", 2081 | "component": "DOM: Workers" 2082 | }, 2083 | { 2084 | "product": "Core", 2085 | "component": "Networking" 2086 | }, 2087 | { 2088 | "product": "Core", 2089 | "component": "Networking: Cache" 2090 | }, 2091 | { 2092 | "product": "Core", 2093 | "component": "Networking: Cookies" 2094 | }, 2095 | { 2096 | "product": "Core", 2097 | "component": "Networking: DNS" 2098 | }, 2099 | { 2100 | "product": "Core", 2101 | "component": "Networking: Domain Lists" 2102 | }, 2103 | { 2104 | "product": "Core", 2105 | "component": "Networking: File" 2106 | }, 2107 | { 2108 | "product": "Core", 2109 | "component": "Networking: FTP" 2110 | }, 2111 | { 2112 | "product": "Core", 2113 | "component": "Networking: HTTP" 2114 | }, 2115 | { 2116 | "product": "Core", 2117 | "component": "Networking: JAR" 2118 | }, 2119 | { 2120 | "product": "Core", 2121 | "component": "Networking: WebSockets" 2122 | }, 2123 | { 2124 | "product": "Core", 2125 | "component": "Storage: Cache API" 2126 | }, 2127 | { 2128 | "product": "Core", 2129 | "component": "Storage: IndexedDB" 2130 | }, 2131 | { 2132 | "product": "Core", 2133 | "component": "Storage: localStorage & sessionStorage" 2134 | }, 2135 | { 2136 | "product": "Core", 2137 | "component": "Storage: Quota Manager" 2138 | }, 2139 | { 2140 | "product": "Core", 2141 | "component": "Storage: StorageManager" 2142 | } 2143 | ], 2144 | "emilio@crisal.io": [ 2145 | { 2146 | "product": "Core", 2147 | "component": "DOM: CSS Object Model" 2148 | }, 2149 | { 2150 | "product": "Core", 2151 | "component": "Layout: Form Controls" 2152 | }, 2153 | { 2154 | "product": "Core", 2155 | "component": "Layout: Images, Video, and HTML Frames" 2156 | }, 2157 | { 2158 | "product": "Core", 2159 | "component": "MathML" 2160 | } 2161 | ], 2162 | "dmu@mozilla.com": [ 2163 | { 2164 | "product": "Core", 2165 | "component": "DOM: Device Interfaces" 2166 | } 2167 | ], 2168 | "ckerschb@christophkerschbaumer.com": [ 2169 | { 2170 | "product": "Core", 2171 | "component": "DOM: Security" 2172 | }, 2173 | { 2174 | "product": "Core", 2175 | "component": "Security: CAPS" 2176 | } 2177 | ], 2178 | "dveditz@mozilla.com": [ 2179 | { 2180 | "product": "Core", 2181 | "component": "DOM: Web Authentication" 2182 | }, 2183 | { 2184 | "product": "Core", 2185 | "component": "Security" 2186 | } 2187 | ], 2188 | "dkeeler@mozilla.com": [ 2189 | { 2190 | "product": "Core", 2191 | "component": "DOM: Web Crypto" 2192 | }, 2193 | { 2194 | "product": "Core", 2195 | "component": "Security Block-lists, Allow-lists, and other State" 2196 | }, 2197 | { 2198 | "product": "Core", 2199 | "component": "Security: PSM" 2200 | } 2201 | ], 2202 | "choller@mozilla.com": [ 2203 | { 2204 | "product": "Core", 2205 | "component": "Fuzzing" 2206 | }, 2207 | { 2208 | "product": "Core", 2209 | "component": "Sanitizers" 2210 | } 2211 | ], 2212 | "gsquelart@mozilla.com": [ 2213 | { 2214 | "product": "Core", 2215 | "component": "Gecko Profiler" 2216 | } 2217 | ], 2218 | "overholt@mozilla.com": [ 2219 | { 2220 | "product": "Core", 2221 | "component": "General" 2222 | }, 2223 | { 2224 | "product": "Core", 2225 | "component": "Untriaged" 2226 | } 2227 | ], 2228 | "aosmond@mozilla.com": [ 2229 | { 2230 | "product": "Core", 2231 | "component": "GFX: Color Management" 2232 | }, 2233 | { 2234 | "product": "Core", 2235 | "component": "Image Blocking" 2236 | }, 2237 | { 2238 | "product": "Core", 2239 | "component": "ImageLib" 2240 | } 2241 | ], 2242 | "dmalyshau@mozilla.com": [ 2243 | { 2244 | "product": "Core", 2245 | "component": "Graphics: WebGPU" 2246 | } 2247 | ], 2248 | "zbraniecki@mozilla.com": [ 2249 | { 2250 | "product": "Core", 2251 | "component": "Internationalization: Localization" 2252 | } 2253 | ], 2254 | "jld@mozilla.com": [ 2255 | { 2256 | "product": "Core", 2257 | "component": "IPC" 2258 | } 2259 | ], 2260 | "aklotz@mozilla.com": [ 2261 | { 2262 | "product": "Core", 2263 | "component": "IPC: MSCOM" 2264 | } 2265 | ], 2266 | "sdetar@mozilla.com": [ 2267 | { 2268 | "product": "Core", 2269 | "component": "JavaScript Engine" 2270 | }, 2271 | { 2272 | "product": "Core", 2273 | "component": "JavaScript Engine: JIT" 2274 | } 2275 | ], 2276 | "jcoppeard@mozilla.com": [ 2277 | { 2278 | "product": "Core", 2279 | "component": "JavaScript: GC" 2280 | } 2281 | ], 2282 | "jwalden@mit.edu": [ 2283 | { 2284 | "product": "Core", 2285 | "component": "JavaScript: Internationalization API" 2286 | } 2287 | ], 2288 | "jorendorff@mozilla.com": [ 2289 | { 2290 | "product": "Core", 2291 | "component": "JavaScript: Standard Library" 2292 | }, 2293 | { 2294 | "product": "Core", 2295 | "component": "js-ctypes" 2296 | } 2297 | ], 2298 | "lhansen@mozilla.com": [ 2299 | { 2300 | "product": "Core", 2301 | "component": "Javascript: WebAssembly" 2302 | } 2303 | ], 2304 | "dholbert@mozilla.com": [ 2305 | { 2306 | "product": "Core", 2307 | "component": "Layout" 2308 | }, 2309 | { 2310 | "product": "Core", 2311 | "component": "Layout: Flexbox" 2312 | }, 2313 | { 2314 | "product": "Core", 2315 | "component": "Layout: Positioned" 2316 | }, 2317 | { 2318 | "product": "Core", 2319 | "component": "Layout: Ruby" 2320 | }, 2321 | { 2322 | "product": "Core", 2323 | "component": "Layout: Tables" 2324 | } 2325 | ], 2326 | "jfkthame@gmail.com": [ 2327 | { 2328 | "product": "Core", 2329 | "component": "Layout: Block and Inline" 2330 | }, 2331 | { 2332 | "product": "Core", 2333 | "component": "Layout: Text and Fonts" 2334 | } 2335 | ], 2336 | "aethanyc@gmail.com": [ 2337 | { 2338 | "product": "Core", 2339 | "component": "Layout: Columns" 2340 | }, 2341 | { 2342 | "product": "Core", 2343 | "component": "Layout: Floats" 2344 | } 2345 | ], 2346 | "mats@mozilla.com": [ 2347 | { 2348 | "product": "Core", 2349 | "component": "Layout: Generated Content, Lists, and Counters" 2350 | }, 2351 | { 2352 | "product": "Core", 2353 | "component": "Layout: Grid" 2354 | } 2355 | ], 2356 | "hikezoe.birchill@mozilla.com": [ 2357 | { 2358 | "product": "Core", 2359 | "component": "Layout: Scrolling and Overflow" 2360 | } 2361 | ], 2362 | "mh+mozilla@glandium.org": [ 2363 | { 2364 | "product": "Core", 2365 | "component": "Memory Allocator" 2366 | }, 2367 | { 2368 | "product": "Core", 2369 | "component": "mozglue" 2370 | }, 2371 | { 2372 | "product": "Firefox Build System", 2373 | "component": "Toolchains" 2374 | } 2375 | ], 2376 | "sgiesecke@mozilla.com": [ 2377 | { 2378 | "product": "Core", 2379 | "component": "MFBT" 2380 | } 2381 | ], 2382 | "botond@mozilla.com": [ 2383 | { 2384 | "product": "Core", 2385 | "component": "Panning and Zooming" 2386 | } 2387 | ], 2388 | "tihuang@mozilla.com": [ 2389 | { 2390 | "product": "Core", 2391 | "component": "Permission Manager" 2392 | }, 2393 | { 2394 | "product": "Core", 2395 | "component": "Privacy: Anti-Tracking" 2396 | } 2397 | ], 2398 | "kwright@mozilla.com": [ 2399 | { 2400 | "product": "Core", 2401 | "component": "Preferences: Backend" 2402 | } 2403 | ], 2404 | "jwatt@jwatt.org": [ 2405 | { 2406 | "product": "Core", 2407 | "component": "Print Preview" 2408 | }, 2409 | { 2410 | "product": "Core", 2411 | "component": "Printing: Output" 2412 | }, 2413 | { 2414 | "product": "Core", 2415 | "component": "Printing: Setup" 2416 | }, 2417 | { 2418 | "product": "Core", 2419 | "component": "SVG" 2420 | } 2421 | ], 2422 | "gpascutto@mozilla.com": [ 2423 | { 2424 | "product": "Core", 2425 | "component": "Security: Process Sandboxing" 2426 | }, 2427 | { 2428 | "product": "External Software Affecting Firefox", 2429 | "component": "Other" 2430 | } 2431 | ], 2432 | "bugs@pettay.fi": [ 2433 | { 2434 | "product": "Core", 2435 | "component": "Spelling checker" 2436 | } 2437 | ], 2438 | "matt.woodrow@gmail.com": [ 2439 | { 2440 | "product": "Core", 2441 | "component": "Web Painting" 2442 | } 2443 | ], 2444 | "anatal@mozilla.com": [ 2445 | { 2446 | "product": "Core", 2447 | "component": "Web Speech" 2448 | } 2449 | ], 2450 | "mfroman@nostrum.com": [ 2451 | { 2452 | "product": "Core", 2453 | "component": "WebRTC" 2454 | }, 2455 | { 2456 | "product": "External Software Affecting Firefox", 2457 | "component": "OpenH264" 2458 | } 2459 | ], 2460 | "jib@mozilla.com": [ 2461 | { 2462 | "product": "Core", 2463 | "component": "WebRTC: Audio/Video" 2464 | } 2465 | ], 2466 | "docfaraday@gmail.com": [ 2467 | { 2468 | "product": "Core", 2469 | "component": "WebRTC: Networking" 2470 | } 2471 | ], 2472 | "na-g@nostrum.com": [ 2473 | { 2474 | "product": "Core", 2475 | "component": "WebRTC: Signaling" 2476 | } 2477 | ], 2478 | "kearwood@kearwood.com": [ 2479 | { 2480 | "product": "Core", 2481 | "component": "WebVR" 2482 | } 2483 | ], 2484 | "spohl.mozilla.bugs@gmail.com": [ 2485 | { 2486 | "product": "Core", 2487 | "component": "Widget: Cocoa" 2488 | } 2489 | ], 2490 | "stransky@redhat.com": [ 2491 | { 2492 | "product": "Core", 2493 | "component": "Widget: Gtk" 2494 | } 2495 | ], 2496 | "enndeakin@gmail.com": [ 2497 | { 2498 | "product": "Core", 2499 | "component": "Window Management" 2500 | }, 2501 | { 2502 | "product": "Core", 2503 | "component": "XUL" 2504 | } 2505 | ], 2506 | "bgrinstead@mozilla.com": [ 2507 | { 2508 | "product": "Core", 2509 | "component": "XBL" 2510 | } 2511 | ], 2512 | "peterv@propagandism.org": [ 2513 | { 2514 | "product": "Core", 2515 | "component": "XML" 2516 | }, 2517 | { 2518 | "product": "Core", 2519 | "component": "XPConnect" 2520 | }, 2521 | { 2522 | "product": "Core", 2523 | "component": "XSLT" 2524 | } 2525 | ], 2526 | "nika@thelayzells.com": [ 2527 | { 2528 | "product": "Core", 2529 | "component": "XPCOM" 2530 | } 2531 | ], 2532 | "bbeurdouche@mozilla.com": [ 2533 | { 2534 | "product": "NSS", 2535 | "component": "Build" 2536 | }, 2537 | { 2538 | "product": "NSS", 2539 | "component": "CA Certificates Code" 2540 | }, 2541 | { 2542 | "product": "NSS", 2543 | "component": "Documentation" 2544 | }, 2545 | { 2546 | "product": "NSS", 2547 | "component": "Libraries" 2548 | }, 2549 | { 2550 | "product": "NSS", 2551 | "component": "Tools" 2552 | } 2553 | ], 2554 | "kwilson@mozilla.com": [ 2555 | { 2556 | "product": "NSS", 2557 | "component": "CA Certificate Compliance" 2558 | }, 2559 | { 2560 | "product": "NSS", 2561 | "component": "CA Certificate Root Program" 2562 | } 2563 | ], 2564 | "support@getpocket.com": [ 2565 | { 2566 | "product": "Pocket", 2567 | "component": "Android client" 2568 | }, 2569 | { 2570 | "product": "Pocket", 2571 | "component": "getpocket.com" 2572 | }, 2573 | { 2574 | "product": "Pocket", 2575 | "component": "iOS client" 2576 | } 2577 | ], 2578 | "gpetrie@mozilla.com": [ 2579 | { 2580 | "product": "User Research", 2581 | "component": "Consultation" 2582 | }, 2583 | { 2584 | "product": "User Research", 2585 | "component": "Project Request" 2586 | } 2587 | ], 2588 | "adw@mozilla.com": [ 2589 | { 2590 | "product": "Firefox", 2591 | "component": "Address Bar" 2592 | } 2593 | ], 2594 | "asa@mozilla.org": [ 2595 | { 2596 | "product": "Firefox", 2597 | "component": "Disability Access" 2598 | } 2599 | ], 2600 | "jorge@mozilla.com": [ 2601 | { 2602 | "product": "Firefox", 2603 | "component": "Extension Compatibility" 2604 | } 2605 | ], 2606 | "markh@mozilla.com": [ 2607 | { 2608 | "product": "Firefox", 2609 | "component": "Firefox Accounts" 2610 | }, 2611 | { 2612 | "product": "Firefox", 2613 | "component": "Sync" 2614 | } 2615 | ], 2616 | "bdahl@mozilla.com": [ 2617 | { 2618 | "product": "Firefox", 2619 | "component": "Headless" 2620 | }, 2621 | { 2622 | "product": "Firefox", 2623 | "component": "PDF Viewer" 2624 | } 2625 | ], 2626 | "tkikuchi@mozilla.com": [ 2627 | { 2628 | "product": "Firefox", 2629 | "component": "Launcher Process" 2630 | }, 2631 | { 2632 | "product": "External Software Affecting Firefox", 2633 | "component": "Telemetry" 2634 | } 2635 | ], 2636 | "sdowne@getpocket.com": [ 2637 | { 2638 | "product": "Firefox", 2639 | "component": "New Tab Page" 2640 | }, 2641 | { 2642 | "product": "Firefox", 2643 | "component": "Pocket" 2644 | } 2645 | ], 2646 | "khudson@mozilla.com": [ 2647 | { 2648 | "product": "Firefox", 2649 | "component": "Nimbus Desktop Client" 2650 | } 2651 | ], 2652 | "rhelmer@mozilla.com": [ 2653 | { 2654 | "product": "Firefox", 2655 | "component": "Pioneer" 2656 | } 2657 | ], 2658 | "ewright@mozilla.com": [ 2659 | { 2660 | "product": "Firefox", 2661 | "component": "Protections UI" 2662 | } 2663 | ], 2664 | "emalysz@mozilla.com": [ 2665 | { 2666 | "product": "Firefox", 2667 | "component": "Screenshots" 2668 | } 2669 | ], 2670 | "dharvey@mozilla.com": [ 2671 | { 2672 | "product": "Firefox", 2673 | "component": "Search" 2674 | } 2675 | ], 2676 | "tarek@mozilla.com": [ 2677 | { 2678 | "product": "Firefox", 2679 | "component": "Services Automation" 2680 | } 2681 | ], 2682 | "pbz@mozilla.com": [ 2683 | { 2684 | "product": "Firefox", 2685 | "component": "Site Identity" 2686 | }, 2687 | { 2688 | "product": "Firefox", 2689 | "component": "Site Permissions" 2690 | } 2691 | ], 2692 | "rdalal@mozilla.com": [ 2693 | { 2694 | "product": "Firefox", 2695 | "component": "System Add-ons: Off-train Deployment" 2696 | } 2697 | ], 2698 | "edilee@mozilla.com": [ 2699 | { 2700 | "product": "Firefox", 2701 | "component": "Tours" 2702 | } 2703 | ], 2704 | "nalexander@mozilla.com": [ 2705 | { 2706 | "product": "Firefox Build System", 2707 | "component": "Android Studio and Gradle Integration" 2708 | } 2709 | ], 2710 | "mhentges@mozilla.com": [ 2711 | { 2712 | "product": "Firefox Build System", 2713 | "component": "Bootstrap Configuration" 2714 | }, 2715 | { 2716 | "product": "Firefox Build System", 2717 | "component": "General" 2718 | }, 2719 | { 2720 | "product": "Firefox Build System", 2721 | "component": "General: Unsupported Platforms" 2722 | }, 2723 | { 2724 | "product": "Firefox Build System", 2725 | "component": "Mach Core" 2726 | } 2727 | ], 2728 | "bpostelnicu@mozilla.com": [ 2729 | { 2730 | "product": "Firefox Build System", 2731 | "component": "Developer Environment Integration" 2732 | }, 2733 | { 2734 | "product": "Firefox Build System", 2735 | "component": "Source Code Analysis" 2736 | } 2737 | ], 2738 | "sledru@mozilla.com": [ 2739 | { 2740 | "product": "Firefox Build System", 2741 | "component": "Generated Documentation" 2742 | } 2743 | ], 2744 | "ahal@mozilla.com": [ 2745 | { 2746 | "product": "Firefox Build System", 2747 | "component": "Lint and Formatting" 2748 | }, 2749 | { 2750 | "product": "Firefox Build System", 2751 | "component": "Try" 2752 | }, 2753 | { 2754 | "product": "Testing", 2755 | "component": "CPPUnitTest" 2756 | }, 2757 | { 2758 | "product": "Testing", 2759 | "component": "General" 2760 | }, 2761 | { 2762 | "product": "Testing", 2763 | "component": "GTest" 2764 | }, 2765 | { 2766 | "product": "Testing", 2767 | "component": "Mochitest" 2768 | }, 2769 | { 2770 | "product": "Testing", 2771 | "component": "Python Test" 2772 | } 2773 | ], 2774 | "mrichards@mozilla.com": [ 2775 | { 2776 | "product": "Infrastructure & Operations", 2777 | "component": "AVOps: Corsica" 2778 | }, 2779 | { 2780 | "product": "Infrastructure & Operations", 2781 | "component": "AVOps: Crestron" 2782 | }, 2783 | { 2784 | "product": "Infrastructure & Operations", 2785 | "component": "AVOps: Projects" 2786 | }, 2787 | { 2788 | "product": "Infrastructure & Operations", 2789 | "component": "AVOps: Vidyo" 2790 | }, 2791 | { 2792 | "product": "Infrastructure & Operations Graveyard", 2793 | "component": "AVOps: Conference Rooms" 2794 | } 2795 | ], 2796 | "akochendorfer@mozilla.com": [ 2797 | { 2798 | "product": "Infrastructure & Operations", 2799 | "component": "AVOps: Streaming" 2800 | } 2801 | ], 2802 | "kferrando@mozilla.com": [ 2803 | { 2804 | "product": "Infrastructure & Operations", 2805 | "component": "Blogs" 2806 | } 2807 | ], 2808 | "dhouse@mozilla.com": [ 2809 | { 2810 | "product": "Infrastructure & Operations", 2811 | "component": "RelOps: Hardware" 2812 | }, 2813 | { 2814 | "product": "Infrastructure & Operations", 2815 | "component": "RelOps: Roller" 2816 | } 2817 | ], 2818 | "rthijssen@mozilla.com": [ 2819 | { 2820 | "product": "Infrastructure & Operations", 2821 | "component": "RelOps: OpenCloudConfig" 2822 | } 2823 | ], 2824 | "jwatkins@mozilla.com": [ 2825 | { 2826 | "product": "Infrastructure & Operations", 2827 | "component": "RelOps: Posix OS" 2828 | } 2829 | ], 2830 | "mcornmesser@mozilla.com": [ 2831 | { 2832 | "product": "Infrastructure & Operations", 2833 | "component": "RelOps: Windows OS" 2834 | } 2835 | ], 2836 | "cshields@mozilla.com": [ 2837 | { 2838 | "product": "Infrastructure & Operations", 2839 | "component": "Runtime" 2840 | } 2841 | ], 2842 | "jdow@mozilla.com": [ 2843 | { 2844 | "product": "Infrastructure & Operations", 2845 | "component": "SSO: Issues" 2846 | } 2847 | ], 2848 | "adelbarrio@mozilla.com": [ 2849 | { 2850 | "product": "Infrastructure & Operations", 2851 | "component": "SSO: Requests" 2852 | } 2853 | ], 2854 | "mlopatka@mozilla.com": [ 2855 | { 2856 | "product": "Data Platform and Tools", 2857 | "component": "Add-on Recommender" 2858 | }, 2859 | { 2860 | "product": "Context Graph Graveyard", 2861 | "component": "Heatmap" 2862 | }, 2863 | { 2864 | "product": "Context Graph Graveyard", 2865 | "component": "Web Morphology" 2866 | } 2867 | ], 2868 | "ssuh@mozilla.com": [ 2869 | { 2870 | "product": "Data Platform and Tools", 2871 | "component": "Datasets: Events" 2872 | }, 2873 | { 2874 | "product": "Data Platform and Tools", 2875 | "component": "Datasets: Experiments" 2876 | } 2877 | ], 2878 | "alessio.placitelli@gmail.com": [ 2879 | { 2880 | "product": "Data Platform and Tools", 2881 | "component": "Glean Metric Types" 2882 | } 2883 | ], 2884 | "jrediger@mozilla.com": [ 2885 | { 2886 | "product": "Data Platform and Tools", 2887 | "component": "Glean: SDK" 2888 | } 2889 | ], 2890 | "brizental@mozilla.com": [ 2891 | { 2892 | "product": "Data Platform and Tools", 2893 | "component": "Glean.js" 2894 | } 2895 | ], 2896 | "moconnor@mozilla.com": [ 2897 | { 2898 | "product": "Data Platform and Tools", 2899 | "component": "Monitoring & Alerting" 2900 | } 2901 | ], 2902 | "jthomas@mozilla.com": [ 2903 | { 2904 | "product": "Data Platform and Tools", 2905 | "component": "Operations" 2906 | } 2907 | ], 2908 | "jklukas@mozilla.com": [ 2909 | { 2910 | "product": "Data Platform and Tools", 2911 | "component": "Pipeline Ingestion" 2912 | } 2913 | ], 2914 | "bzhao@mozilla.com": [ 2915 | { 2916 | "product": "Mozilla China", 2917 | "component": "General" 2918 | } 2919 | ], 2920 | "bstack@mozilla.com": [ 2921 | { 2922 | "product": "Taskcluster", 2923 | "component": "General" 2924 | } 2925 | ], 2926 | "rweiss@mozilla.com": [ 2927 | { 2928 | "product": "Data Science", 2929 | "component": "Dashboard" 2930 | }, 2931 | { 2932 | "product": "Data Science", 2933 | "component": "Experiment Collaboration" 2934 | }, 2935 | { 2936 | "product": "Data Science", 2937 | "component": "General" 2938 | }, 2939 | { 2940 | "product": "Data Science", 2941 | "component": "Investigation" 2942 | }, 2943 | { 2944 | "product": "Data Science", 2945 | "component": "Meta" 2946 | }, 2947 | { 2948 | "product": "Data Science", 2949 | "component": "Review" 2950 | } 2951 | ], 2952 | "krupa.mozbugs@gmail.com": [ 2953 | { 2954 | "product": "Firefox Graveyard", 2955 | "component": "Foxfooding" 2956 | } 2957 | ], 2958 | "mreavy@mozilla.com": [ 2959 | { 2960 | "product": "Firefox Graveyard", 2961 | "component": "Screen Sharing Whitelist" 2962 | } 2963 | ], 2964 | "ptheriault@mozilla.com": [ 2965 | { 2966 | "product": "Firefox Graveyard", 2967 | "component": "Security: Review Requests" 2968 | } 2969 | ], 2970 | "jlund@mozilla.com": [ 2971 | { 2972 | "product": "Infrastructure & Operations Graveyard", 2973 | "component": "CIDuty" 2974 | } 2975 | ], 2976 | "aryx.bugmail@gmx-topmail.de": [ 2977 | { 2978 | "product": "Tree Management", 2979 | "component": "Bugherder" 2980 | } 2981 | ], 2982 | "sclements@mozilla.com": [ 2983 | { 2984 | "product": "Tree Management", 2985 | "component": "Database" 2986 | }, 2987 | { 2988 | "product": "Tree Management", 2989 | "component": "Intermittent Failures View" 2990 | }, 2991 | { 2992 | "product": "Tree Management", 2993 | "component": "Perfherder" 2994 | }, 2995 | { 2996 | "product": "Tree Management", 2997 | "component": "Push Health" 2998 | }, 2999 | { 3000 | "product": "Tree Management", 3001 | "component": "Treeherder" 3002 | }, 3003 | { 3004 | "product": "Tree Management", 3005 | "component": "Treeherder: API" 3006 | }, 3007 | { 3008 | "product": "Tree Management", 3009 | "component": "Treeherder: Changelog" 3010 | }, 3011 | { 3012 | "product": "Tree Management", 3013 | "component": "Treeherder: Data Ingestion" 3014 | }, 3015 | { 3016 | "product": "Tree Management", 3017 | "component": "Treeherder: Docs & Development" 3018 | }, 3019 | { 3020 | "product": "Tree Management", 3021 | "component": "Treeherder: Frontend" 3022 | }, 3023 | { 3024 | "product": "Tree Management", 3025 | "component": "Treeherder: Infrastructure" 3026 | }, 3027 | { 3028 | "product": "Tree Management", 3029 | "component": "Treeherder: Job Triggering & Cancellation" 3030 | }, 3031 | { 3032 | "product": "Tree Management", 3033 | "component": "Treeherder: Log Parsing & Classification" 3034 | }, 3035 | { 3036 | "product": "Tree Management", 3037 | "component": "Treeherder: Log Viewer" 3038 | }, 3039 | { 3040 | "product": "Tree Management Graveyard", 3041 | "component": "OrangeFactor" 3042 | } 3043 | ], 3044 | "erik@mozilla.com": [ 3045 | { 3046 | "product": "Context Graph Graveyard", 3047 | "component": "Fathom" 3048 | } 3049 | ], 3050 | "chris.lonnen@gmail.com": [ 3051 | { 3052 | "product": "Context Graph Graveyard", 3053 | "component": "Miracle" 3054 | } 3055 | ], 3056 | "armenzg@gmail.com": [ 3057 | { 3058 | "product": "Tree Management Graveyard", 3059 | "component": "Treeherder: SETA" 3060 | }, 3061 | { 3062 | "product": "Tree Management Graveyard", 3063 | "component": "Web Tools" 3064 | } 3065 | ], 3066 | "cameron@dawsoncode.com": [ 3067 | { 3068 | "product": "Tree Management Graveyard", 3069 | "component": "Treeherder: Test-based View" 3070 | } 3071 | ], 3072 | "john@thunderbird.net": [ 3073 | { 3074 | "product": "Thunderbird", 3075 | "component": "Add-Ons: Extensions API" 3076 | }, 3077 | { 3078 | "product": "Thunderbird", 3079 | "component": "Add-Ons: General" 3080 | } 3081 | ], 3082 | "mkmelin+mozilla@iki.fi": [ 3083 | { 3084 | "product": "Thunderbird", 3085 | "component": "Upstream Synchronization" 3086 | } 3087 | ], 3088 | "dave.hunt@gmail.com": [ 3089 | { 3090 | "product": "Testing", 3091 | "component": "AWSY" 3092 | }, 3093 | { 3094 | "product": "Testing", 3095 | "component": "Performance" 3096 | } 3097 | ], 3098 | "mcastelluccio@mozilla.com": [ 3099 | { 3100 | "product": "Testing", 3101 | "component": "Code Coverage" 3102 | } 3103 | ], 3104 | "gmierz2@outlook.com": [ 3105 | { 3106 | "product": "Testing", 3107 | "component": "Condprofile" 3108 | }, 3109 | { 3110 | "product": "Testing", 3111 | "component": "mozperftest" 3112 | }, 3113 | { 3114 | "product": "Testing", 3115 | "component": "Raptor" 3116 | }, 3117 | { 3118 | "product": "Testing", 3119 | "component": "Talos" 3120 | } 3121 | ], 3122 | "james@hoppipolla.co.uk": [ 3123 | { 3124 | "product": "Testing", 3125 | "component": "Mozbase Rust" 3126 | }, 3127 | { 3128 | "product": "Testing", 3129 | "component": "web-platform-tests" 3130 | } 3131 | ], 3132 | "tnikkel@gmail.com": [ 3133 | { 3134 | "product": "Testing", 3135 | "component": "Reftest" 3136 | } 3137 | ], 3138 | "jmaher@mozilla.com": [ 3139 | { 3140 | "product": "Testing", 3141 | "component": "XPCShell Harness" 3142 | } 3143 | ] 3144 | } -------------------------------------------------------------------------------- /src/utils/artifacts.js: -------------------------------------------------------------------------------- 1 | /* Load a private artifact from Taskcluster, using a signed url and a direct download 2 | 3 | You can use it with a signed it Taskcluster user session: 4 | 5 | import loadArtifact from '../../utils/artifacts'; 6 | const data = await loadArtifact( 7 | userSession, 8 | 'project.relman.production.bugzilla-dashboard.latest', 9 | 'private/bugzilla-dashboard/XXXX.json' 10 | ); 11 | */ 12 | 13 | async function loadArtifact(userSession, route, artifactName) { 14 | const index = userSession.getTaskClusterIndexClient(); 15 | 16 | const url = await index.buildSignedUrl( 17 | index.findArtifactFromTask, 18 | route, 19 | artifactName, 20 | ); 21 | const resp = await fetch(url); 22 | 23 | if (resp.status !== 200) { 24 | throw new Error(`Failed to download artifact ${artifactName}`); 25 | } 26 | 27 | return resp.arrayBuffer(); 28 | } 29 | 30 | export default loadArtifact; 31 | -------------------------------------------------------------------------------- /src/utils/bugzilla/generateChartJsData.js: -------------------------------------------------------------------------------- 1 | import queryBugzilla from './queryBugzilla'; 2 | import generateDatasetStyle from '../chartJs/generateDatasetStyle'; 3 | import toDayOfWeek from '../toDayOfWeek'; 4 | import COLORS from '../chartJs/colors'; 5 | 6 | /* eslint-disable camelcase */ 7 | // Count bugs created/closed each week 8 | // startDate allow us to group bugs older than such date 9 | const bugsGroupedByWeek = (bugs) => ( 10 | bugs.reduce((result, { creation_time, cf_last_resolved }) => { 11 | const newResult = { ...result }; 12 | const createdDate = toDayOfWeek(creation_time); 13 | if (!newResult[createdDate]) { 14 | newResult[createdDate] = 0; 15 | } 16 | newResult[createdDate] += 1; 17 | 18 | if (cf_last_resolved) { 19 | const resolvedDate = toDayOfWeek(cf_last_resolved); 20 | if (!newResult[resolvedDate]) { 21 | newResult[resolvedDate] = 0; 22 | } 23 | newResult[resolvedDate] -= 1; 24 | } 25 | 26 | return newResult; 27 | }, {}) 28 | ); 29 | /* eslint-enable camelcase */ 30 | 31 | const sortDates = (a, b) => new Date(a) - new Date(b); 32 | 33 | const bugsByCreationDate = (bugs) => { 34 | // Count bugs created on each week 35 | const byCreationDate = bugsGroupedByWeek(bugs); 36 | 37 | let count = 0; 38 | let lastDataPoint; 39 | const accumulatedCount = Object.keys(byCreationDate) 40 | .sort(sortDates).reduce((result, date) => { 41 | count += byCreationDate[date]; 42 | // Read more here http://momentjs.com/guides/#/warnings/js-date/ 43 | lastDataPoint = { x: new Date(date), y: count }; 44 | result.push(lastDataPoint); 45 | return result; 46 | }, []); 47 | 48 | return accumulatedCount; 49 | }; 50 | 51 | // It formats the data and options to meet chartJs' data structures 52 | // startDate enables counting into a starting date all previous data points 53 | const generateChartJsData = async (queries = [], chartType, startDate) => { 54 | const datasets = []; 55 | await Promise.all( 56 | queries.map(async ({ label, parameters }, index) => { 57 | const { bugs } = await queryBugzilla(parameters); 58 | if (bugs.length > 0) { 59 | datasets.push({ 60 | ...generateDatasetStyle(chartType, COLORS[index]), 61 | data: bugsByCreationDate(bugs, startDate), 62 | label, 63 | }); 64 | } 65 | }), 66 | ); 67 | return datasets; 68 | }; 69 | 70 | export default generateChartJsData; 71 | -------------------------------------------------------------------------------- /src/utils/bugzilla/getBugsCountAndLink.js: -------------------------------------------------------------------------------- 1 | import { stringify } from 'query-string'; 2 | import settings from './settings'; 3 | import queryBugzilla from './queryBugzilla'; 4 | 5 | const getBugzillaComponentLink = (queryParameters) => ( 6 | `${settings.BZ_HOST}/buglist.cgi?${stringify(queryParameters)}`); 7 | 8 | /* eslint-disable camelcase */ 9 | const getBugsCountAndLink = async (parameters) => { 10 | const link = getBugzillaComponentLink(parameters); 11 | const { bug_count = 0 } = await queryBugzilla( 12 | { ...parameters, count_only: 1 }, 13 | ); 14 | return { count: bug_count, link }; 15 | }; 16 | 17 | export default getBugsCountAndLink; 18 | -------------------------------------------------------------------------------- /src/utils/bugzilla/queryBugzilla.js: -------------------------------------------------------------------------------- 1 | import { stringify } from 'query-string'; 2 | import fetchJson from '../fetchJson'; 3 | import settings from './settings'; 4 | 5 | const TRANSFORM_FIELD = { 6 | chfieldfrom: 'creation_time', 7 | }; 8 | 9 | const advancedSearchToRestApi = (parameters) => ( 10 | Object.keys(parameters).reduce((result, key) => { 11 | const newResult = { ...result }; 12 | const newKey = TRANSFORM_FIELD[key] || key; 13 | newResult[newKey] = parameters[key]; 14 | return newResult; 15 | }, {}) 16 | ); 17 | 18 | const generateBugzillaRestApiUrl = (queryParameters) => { 19 | // include_fields is a Bugzilla trick to be specific about which properties to be 20 | // returned from the Bugzilla REST APIs. This makes the fetches much faster 21 | if (!queryParameters.include_fields) { 22 | // eslint-disable-next-line no-param-reassign 23 | queryParameters.include_fields = ['cf_last_resolved', 'creation_time']; 24 | } 25 | const transformedParameters = advancedSearchToRestApi(queryParameters); 26 | const query = stringify({ ...transformedParameters }); 27 | return `${settings.BZ_HOST}/rest/bug?${query}`; 28 | }; 29 | 30 | const queryBugzilla = async (queryParameters) => ( 31 | fetchJson(generateBugzillaRestApiUrl(queryParameters))); 32 | 33 | export default queryBugzilla; 34 | -------------------------------------------------------------------------------- /src/utils/bugzilla/settings.js: -------------------------------------------------------------------------------- 1 | const settings = { 2 | BZ_HOST: 'https://bugzilla.mozilla.org', 3 | }; 4 | 5 | export default settings; 6 | -------------------------------------------------------------------------------- /src/utils/bugzilla/sort.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @description Reversing the order according to first parameter. 3 | * @param {String} order asc or dsc 4 | * @returns {Number} 1 || -1 5 | */ 6 | const ascDescSortFunc = (order) => (order === 'desc' ? 1 : -1); 7 | 8 | /** 9 | * @description checks falsy values and sorts each item from array accordingly 10 | * @param {*} a First Sort Object from Array.sort function 11 | * @param {*} b Second Sort Object 12 | * @param {*} index ColumnIndex for the sorted table 13 | * @param {*} oder order for sorting a table(ascending / descending order) 14 | * @returns {Number} -1 || 0 || 1 15 | */ 16 | const sort = (a, b, index, order) => { 17 | // add position of index to Objects 18 | const objectA = a[index]; 19 | const objectB = b[index]; 20 | 21 | // Null check of Objects 22 | const countNonCheckedA = objectA ? (objectA.count || objectA.length) : 0; 23 | const countNonCheckedB = objectB ? (objectB.count || objectB.length) : 0; 24 | 25 | // Null check of count 26 | const countA = countNonCheckedA || 0; 27 | const countB = countNonCheckedB || 0; 28 | 29 | // Get Asc or Desc 30 | const orderVal = ascDescSortFunc(order); 31 | 32 | // multiply Sortvalue and order value and return 33 | if (countB < countA) { 34 | return -1 * orderVal; 35 | } 36 | if (countB > countA) { 37 | return 1 * orderVal; 38 | } 39 | return 0 * orderVal; 40 | }; 41 | 42 | export default sort; 43 | -------------------------------------------------------------------------------- /src/utils/chartJs/colors.js: -------------------------------------------------------------------------------- 1 | // Less than ideal but it works 2 | const COLORS = ['#e55525', '#ffcd02', '#45a1ff', '#b2ff46', '#fd79ff']; 3 | 4 | export default COLORS; 5 | -------------------------------------------------------------------------------- /src/utils/chartJs/generateDatasetStyle.js: -------------------------------------------------------------------------------- 1 | const generateLineChartStyle = (color) => ({ 2 | backgroundColor: color, 3 | borderColor: color, 4 | fill: false, 5 | pointRadius: '0', 6 | pointHoverBackgroundColor: 'white', 7 | lineTension: '0', 8 | }); 9 | 10 | const generateScatterChartStyle = (color) => ({ 11 | backgroundColor: color, 12 | }); 13 | 14 | const generateDatasetStyle = (type, color) => ( 15 | type === 'scatter' 16 | ? generateScatterChartStyle(color) 17 | : generateLineChartStyle(color) 18 | ); 19 | 20 | export default generateDatasetStyle; 21 | -------------------------------------------------------------------------------- /src/utils/chartJs/generateOptions.js: -------------------------------------------------------------------------------- 1 | const generateOptions = ({ 2 | reverse = false, scaleLabel, title, tooltipFormat, tooltips, ticksCallback, 3 | }) => { 4 | const chartJsOptions = { 5 | legend: { 6 | labels: { 7 | boxWidth: 10, 8 | fontSize: 10, 9 | }, 10 | }, 11 | scales: { 12 | xAxes: [{ 13 | type: 'time', 14 | time: { 15 | displayFormats: { hour: 'MMM D' }, 16 | }, 17 | }], 18 | yAxes: [{ 19 | ticks: { 20 | beginAtZero: true, 21 | reverse, 22 | }, 23 | }], 24 | }, 25 | }; 26 | 27 | if (ticksCallback) { 28 | chartJsOptions.scales.yAxes[0].ticks.callback = ticksCallback; 29 | } 30 | 31 | if (title) { 32 | chartJsOptions.title = { 33 | display: true, 34 | text: title, 35 | }; 36 | } 37 | 38 | if (tooltipFormat) { 39 | chartJsOptions.scales.xAxes[0].time.tooltipFormat = 'll'; 40 | } 41 | 42 | if (tooltips) { 43 | chartJsOptions.tooltips = tooltips; 44 | } 45 | 46 | if (scaleLabel) { 47 | chartJsOptions.scales.yAxes[0].scaleLabel = { 48 | display: true, 49 | labelString: scaleLabel, 50 | }; 51 | } 52 | return chartJsOptions; 53 | }; 54 | 55 | export default generateOptions; 56 | -------------------------------------------------------------------------------- /src/utils/fetchJson.js: -------------------------------------------------------------------------------- 1 | const jsonHeaders = { 2 | Accept: 'application/json', 3 | }; 4 | 5 | const fetchJson = async (url) => { 6 | const response = await fetch(url, jsonHeaders); 7 | if (!response) { 8 | return null; 9 | } 10 | return response.json(); 11 | }; 12 | 13 | export default fetchJson; 14 | -------------------------------------------------------------------------------- /src/utils/getAllReportees.js: -------------------------------------------------------------------------------- 1 | import pako from 'pako'; 2 | import config from '../config'; 3 | import loadArtifact from './artifacts'; 4 | 5 | const findReportees = (org, parentId) => { 6 | // Find all direct reportees of specified manager 7 | const managerFilter = (acc, key) => { 8 | if (org[key].manager !== parentId) { 9 | return acc; 10 | } 11 | return { ...acc, [key]: org[key] }; 12 | }; 13 | let reportees = Object.keys(org).reduce(managerFilter, {}); 14 | 15 | // Add subordinates reportees too 16 | if (reportees.length !== 0) { 17 | Object.keys(reportees).forEach((rId) => { 18 | const subordinates = findReportees(org, rId); 19 | reportees = { ...reportees, ...subordinates }; 20 | }); 21 | } 22 | return reportees; 23 | }; 24 | 25 | const getAllReportees = async (userSession, userId) => { 26 | const peopleGZ = await loadArtifact(userSession, config.artifactRoute, config.peopleTree); 27 | const people = JSON.parse(pako.inflate(peopleGZ, { to: 'string' })); 28 | return findReportees(people, userId || userSession.userId); 29 | }; 30 | 31 | export default getAllReportees; 32 | -------------------------------------------------------------------------------- /src/utils/getBugzillaOwners.js: -------------------------------------------------------------------------------- 1 | const getBugzillaOwners = async () => (await fetch('triageOwners.json')).json(); 2 | export default getBugzillaOwners; 3 | -------------------------------------------------------------------------------- /src/utils/toDayOfWeek.js: -------------------------------------------------------------------------------- 1 | import moment from 'moment'; 2 | 3 | // By default it changes the day to Friday 4 | // We're interested to know the state of bucket by the end of the week 5 | const toDayOfWeek = (dt = moment().utc(), dayOfWeek = 5) => { 6 | let increment = 0; 7 | // isoWeekDay represents Sunday as 7 instead of 0 8 | const day = moment(dt).isoWeekday(); 9 | if (day > dayOfWeek) { 10 | increment = 7; 11 | } 12 | return moment(dt) 13 | .add(increment, 'days') 14 | .isoWeekday(dayOfWeek) 15 | .format('YYYY-MM-DD'); 16 | }; 17 | 18 | export default toDayOfWeek; 19 | -------------------------------------------------------------------------------- /src/views/CredentialsMenu/index.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import PropTypes from 'prop-types'; 3 | import { withStyles } from '@material-ui/core/styles'; 4 | import Button from '@material-ui/core/Button'; 5 | 6 | import AuthContext from '../../components/auth/AuthContext'; 7 | import ProfileMenu from '../ProfileMenu'; 8 | 9 | const styles = (theme) => ({ 10 | button: { 11 | margin: theme.spacing.unit, 12 | }, 13 | }); 14 | 15 | class CredentialsMenu extends React.PureComponent { 16 | static handleLoginRequest() { 17 | const loginView = new URL('/login', window.location); 18 | window.open(loginView, '_blank'); 19 | } 20 | 21 | componentDidMount() { 22 | const { context } = this; 23 | if (context) { 24 | context.on( 25 | 'user-session-changed', 26 | this.handleUserSessionChanged, 27 | ); 28 | } 29 | } 30 | 31 | componentWillUnmount() { 32 | const { context } = this.context; 33 | if (context) { 34 | context.off( 35 | 'user-session-changed', 36 | this.handleUserSessionChanged, 37 | ); 38 | } 39 | } 40 | 41 | handleUserSessionChanged = () => { 42 | this.forceUpdate(); 43 | }; 44 | 45 | render() { 46 | // note: an update to the userSession will cause a forceUpdate 47 | const { context } = this; 48 | const { classes } = this.props; 49 | const userSession = context && context.getUserSession(); 50 | 51 | return ( 52 | userSession ? ( 53 | 54 | ) : ( 55 | 64 | ) 65 | ); 66 | } 67 | } 68 | 69 | CredentialsMenu.propTypes = { 70 | classes: PropTypes.shape({ 71 | button: PropTypes.isRequired, 72 | }).isRequired, 73 | }; 74 | 75 | CredentialsMenu.contextType = AuthContext; 76 | 77 | export default withStyles(styles)(CredentialsMenu); 78 | -------------------------------------------------------------------------------- /src/views/Main/index.jsx: -------------------------------------------------------------------------------- 1 | import pako from 'pako'; 2 | import React, { Component, Suspense } from 'react'; 3 | import PropTypes from 'prop-types'; 4 | import { Switch } from 'react-router-dom'; 5 | import { withStyles } from '@material-ui/core/styles'; 6 | import Spinner from '@mozilla-frontend-infra/components/Spinner'; 7 | import BottomNavigation from '@material-ui/core/BottomNavigation'; 8 | import BottomNavigationAction from '@material-ui/core/BottomNavigationAction'; 9 | import PropsRoute from '../../components/PropsRoute'; 10 | import AuthContext from '../../components/auth/AuthContext'; 11 | import Header from '../../components/Header'; 12 | import getAllReportees from '../../utils/getAllReportees'; 13 | import getBugzillaOwners from '../../utils/getBugzillaOwners'; 14 | import getBugsCountAndLink from '../../utils/bugzilla/getBugsCountAndLink'; 15 | import CONFIG, { REPORTEES_CONFIG, TEAMS_CONFIG, PRODUCT_COMPONENT } from '../../config'; 16 | import loadArtifact from '../../utils/artifacts'; 17 | 18 | const BugzillaComponents = React.lazy(() => import('../../components/BugzillaComponents')); 19 | const BugzillaComponentDetails = React.lazy(() => import('../../components/BugzillaComponentDetails')); 20 | const Reportees = React.lazy(() => import('../../components/Reportees')); 21 | const Teams = React.lazy(() => import('../Teams')); 22 | 23 | const DEFAULT_STATE = { 24 | doneLoading: undefined, 25 | bugzillaComponents: {}, 26 | partialOrg: undefined, 27 | teamComponents: {}, 28 | selectedTabIndex: 0, 29 | reporteesMetrics: {}, 30 | componentDetails: undefined, 31 | userId: '', 32 | }; 33 | 34 | const PATHNAME_TO_TAB_INDEX = { 35 | '/reportees': 0, 36 | '/components': 1, 37 | '/teams': 2, 38 | }; 39 | 40 | const styles = ({ 41 | content: { 42 | padding: '1rem 2rem', 43 | margin: '0 auto', 44 | }, 45 | }); 46 | 47 | class MainContainer extends Component { 48 | state = DEFAULT_STATE; 49 | 50 | constructor(props) { 51 | super(props); 52 | const { location } = this.props; 53 | // This guarantees that we load the right tab based on the URL's pathname 54 | this.state.selectedTabIndex = PATHNAME_TO_TAB_INDEX[location.pathname] || 0; 55 | this.handleShowComponentDetails = this.handleShowComponentDetails.bind(this); 56 | this.handleComponentBackToMenu = this.handleComponentBackToMenu.bind(this); 57 | } 58 | 59 | componentDidMount() { 60 | const { context } = this; 61 | if (context) { 62 | context.on( 63 | 'user-session-changed', 64 | this.handleUserSessionChanged, 65 | ); 66 | this.fetchData(); 67 | } 68 | } 69 | 70 | componentWillUnmount() { 71 | const { context } = this.context; 72 | if (context) { 73 | context.off( 74 | 'user-session-changed', 75 | this.handleUserSessionChanged, 76 | ); 77 | } 78 | } 79 | 80 | async getReportees(userSession, userId) { 81 | const partialOrg = await getAllReportees(userSession, userId); 82 | this.setState({ partialOrg }); 83 | return partialOrg; 84 | } 85 | 86 | handleUserSessionChanged = () => { 87 | this.fetchData(); 88 | }; 89 | 90 | handleNavigateAndClear = (_, selectedTabIndex) => { 91 | this.setState({ 92 | componentDetails: undefined, 93 | selectedTabIndex, 94 | }); 95 | }; 96 | 97 | fetchData() { 98 | const { context } = this; 99 | const userSession = context && context.getUserSession(); 100 | if (userSession) { 101 | // We show the spinner after having signed in 102 | this.setState({ doneLoading: false }); 103 | const { location } = this.props; 104 | const userId = new URLSearchParams(location.search).get('userId') || userSession.userId; 105 | this.setState({ userId }); 106 | this.retrieveData(userSession, userId); 107 | } else { 108 | this.setState(DEFAULT_STATE); 109 | } 110 | } 111 | 112 | async bugzillaComponents(userSession, bzOwners, partialOrg) { 113 | // bzOwners uses the bugzilla email address as the key 114 | // while partialOrg uses the LDAP email address 115 | /* eslint-disable no-param-reassign */ 116 | const bugzillaComponents = Object.values(partialOrg) 117 | .reduce((result, { bugzillaEmail, mail }) => { 118 | const componentsOwned = bzOwners[bugzillaEmail] || bzOwners[mail]; 119 | if (componentsOwned) { 120 | componentsOwned.forEach(({ product, component }) => { 121 | const prodComp = `${product}::${component}`; 122 | result[prodComp] = { 123 | label: prodComp, 124 | bugzillaEmail: bugzillaEmail || mail, 125 | // product/component are still used in BugzillaComponentDetails 126 | product, 127 | component, 128 | metrics: {}, 129 | }; 130 | }); 131 | } 132 | return result; 133 | }, {}); 134 | /* eslint-enable no-param-reassign */ 135 | // This will list the components but will not show metrics 136 | this.setState({ bugzillaComponents }); 137 | 138 | loadArtifact( 139 | userSession, 140 | CONFIG.artifactRoute, 141 | CONFIG.productComponentMetrics, 142 | ).then( 143 | (jsonGz) => { 144 | const json = pako.inflate(jsonGz, { to: 'string' }); 145 | return JSON.parse(json); 146 | }, 147 | ).then( 148 | (data) => { 149 | Object.entries(bugzillaComponents) 150 | .forEach(([prodComp, { metrics }]) => { 151 | const stats = data[prodComp] || { prodComp: {} }; 152 | const metricz = metrics; 153 | Object.keys(PRODUCT_COMPONENT).forEach((metric) => { 154 | metricz[metric] = stats[metric] || { count: 0, link: '' }; 155 | }); 156 | }); 157 | this.setState({ bugzillaComponents }); 158 | }, 159 | ); 160 | } 161 | 162 | async reporteesMetrics(userSession, partialOrg) { 163 | loadArtifact( 164 | userSession, 165 | CONFIG.artifactRoute, 166 | CONFIG.reporteesMetrics, 167 | ).then( 168 | (jsonGz) => { 169 | const json = pako.inflate(jsonGz, { to: 'string' }); 170 | return JSON.parse(json); 171 | }, 172 | ).then( 173 | (data) => { 174 | const reporteesMetrics = {}; 175 | Object.values(partialOrg) 176 | .forEach(({ bugzillaEmail }) => { 177 | const stats = data[bugzillaEmail] || {}; 178 | Object.keys(REPORTEES_CONFIG).forEach((name) => { 179 | if (!Object.prototype.hasOwnProperty.call(stats, name)) { 180 | stats[name] = { count: 0, link: '' }; 181 | } 182 | }); 183 | reporteesMetrics[bugzillaEmail] = stats; 184 | }); 185 | this.setState({ reporteesMetrics }); 186 | }, 187 | ); 188 | } 189 | 190 | async retrieveData(userSession, userId) { 191 | const [bzOwners, partialOrg] = await Promise.all([ 192 | getBugzillaOwners(), 193 | this.getReportees(userSession, userId), 194 | ]); 195 | // Fetch this data first since it's the landing tab 196 | await this.reporteesMetrics(userSession, partialOrg); 197 | this.teamsData(userSession, partialOrg); 198 | this.bugzillaComponents(userSession, bzOwners, partialOrg); 199 | this.setState({ doneLoading: true }); 200 | } 201 | 202 | async teamsData(userSession, partialOrg) { 203 | let teamComponents = {}; 204 | if (userSession.oidcProvider === 'mozilla-auth0') { 205 | // if non-LDAP user, get fake data 206 | teamComponents = TEAMS_CONFIG; 207 | } else { 208 | // LDAP user, get the actual data 209 | Object.entries(TEAMS_CONFIG).map(async ([teamKey, teamInfo]) => { 210 | if (partialOrg[teamInfo.owner]) { 211 | const team = { 212 | teamKey, 213 | ...teamInfo, 214 | metrics: {}, 215 | }; 216 | const { product, component } = teamInfo; 217 | await Promise.all(Object.keys(PRODUCT_COMPONENT).map(async (metric) => { 218 | const parameters = { product, component, ...PRODUCT_COMPONENT[metric].parameters }; 219 | team.metrics[metric] = await getBugsCountAndLink(parameters); 220 | })); 221 | teamComponents[teamKey] = team; 222 | } 223 | }); 224 | } 225 | this.setState({ teamComponents }); 226 | } 227 | 228 | handleShowComponentDetails(event, properties) { 229 | event.preventDefault(); 230 | const { componentKey, teamKey } = properties; 231 | // IDEA: In the future we could unify bugzilla components and teams into 232 | // the same data structure and make this logic simpler. We could use a 233 | // property 'team' to distinguish a component from a set of components 234 | if (teamKey) { 235 | this.setState((prevState) => ({ 236 | componentDetails: { 237 | title: prevState.teamComponents[teamKey].label, 238 | ...prevState.teamComponents[teamKey], 239 | }, 240 | })); 241 | } else { 242 | this.setState((prevState) => ({ 243 | componentDetails: { 244 | title: componentKey, 245 | ...prevState.bugzillaComponents[componentKey], 246 | }, 247 | })); 248 | } 249 | } 250 | 251 | handleComponentBackToMenu(event) { 252 | event.preventDefault(); 253 | this.setState({ 254 | componentDetails: undefined, 255 | }); 256 | } 257 | 258 | render() { 259 | const { 260 | doneLoading, 261 | componentDetails, 262 | bugzillaComponents, 263 | userId, 264 | partialOrg, 265 | teamComponents, 266 | selectedTabIndex, 267 | reporteesMetrics, 268 | } = this.state; 269 | const { classes } = this.props; 270 | const { context } = this; 271 | const userSession = context.getUserSession(); 272 | 273 | /* eslint-disable react/jsx-props-no-spreading */ 274 | return ( 275 |
276 |
281 |
282 | {!userSession &&

Please sign in

} 283 | {componentDetails && ( 284 | Loading...
}> 285 | 289 | 290 | )} 291 | Loading...
}> 292 | 293 | {partialOrg && ( 294 | 301 | )} 302 | {partialOrg && ( 303 | 309 | )} 310 | 316 | 317 | 318 | {doneLoading === false && } 319 |
320 | 323 | 324 | 325 | 326 | 327 | ); 328 | } 329 | } 330 | 331 | MainContainer.propTypes = { 332 | classes: PropTypes.shape().isRequired, 333 | location: PropTypes.shape().isRequired, 334 | }; 335 | 336 | MainContainer.contextType = AuthContext; 337 | 338 | export default withStyles(styles)(MainContainer); 339 | -------------------------------------------------------------------------------- /src/views/OAuth2Login/index.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ErrorPanel from '@mozilla-frontend-infra/components/ErrorPanel'; 3 | import { redirectUser } from '../../components/auth/oauth2'; 4 | 5 | export default class OAuth2Login extends React.PureComponent { 6 | state = {}; 7 | 8 | componentDidMount() { 9 | if (!window.location.hash) { 10 | // Start login flow 11 | redirectUser(); 12 | } 13 | } 14 | 15 | render() { 16 | const { loginError } = this.state; 17 | if (loginError) { 18 | return ; 19 | } 20 | 21 | if (window.location.hash) { 22 | return

Logging in..

; 23 | } 24 | 25 | return

Redirecting..

; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/views/ProfileMenu/index.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import PropTypes from 'prop-types'; 3 | import { withStyles } from '@material-ui/core/styles'; 4 | import AccountCircle from '@material-ui/icons/AccountCircle'; 5 | import { 6 | Avatar, IconButton, Menu, MenuItem, 7 | } from '@material-ui/core'; 8 | import AuthContext from '../../components/auth/AuthContext'; 9 | 10 | const styles = ({ 11 | avatar: { 12 | width: 25, 13 | height: 25, 14 | }, 15 | }); 16 | 17 | class ProfileMenu extends React.Component { 18 | state = { 19 | anchorEl: null, 20 | }; 21 | 22 | handleMenu = (event) => { 23 | this.setState({ anchorEl: event.currentTarget }); 24 | }; 25 | 26 | handleClose = () => { 27 | this.setState({ anchorEl: null }); 28 | }; 29 | 30 | renderAvatar = (userSession) => { 31 | const { classes } = this.props; 32 | return userSession.picture ? ( 33 | 38 | ) : ( 39 | 40 | ); 41 | }; 42 | 43 | render() { 44 | const { context } = this; 45 | const { classes } = this.props; 46 | const userSession = context && context.getUserSession(); 47 | const { anchorEl } = this.state; 48 | const open = Boolean(anchorEl); 49 | 50 | return ( 51 |
52 | 58 | {this.renderAvatar(userSession, classes)} 59 | 60 | 74 | {userSession.name} 75 | 76 | Expires in  77 | {userSession.expiresIn} 78 | 79 | context.setUserSession(null)}>Sign out 80 | 81 |
82 | ); 83 | } 84 | } 85 | 86 | ProfileMenu.propTypes = { 87 | classes: PropTypes.shape({ 88 | avatar: PropTypes.isRequired, 89 | }).isRequired, 90 | }; 91 | 92 | ProfileMenu.contextType = AuthContext; 93 | 94 | export default withStyles(styles)(ProfileMenu); 95 | -------------------------------------------------------------------------------- /src/views/Teams/index.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import PropTypes from 'prop-types'; 3 | import { withStyles } from '@material-ui/core/styles'; 4 | import BugzillaComponents from '../../components/BugzillaComponents'; 5 | 6 | const styles = { 7 | message: { 8 | margin: '0 0 1rem 0', 9 | }, 10 | }; 11 | 12 | /* eslint-disable react/jsx-props-no-spreading */ 13 | const Teams = ({ classes, ...rest }) => ( 14 | <> 15 |
16 | The team view allows to group components to create a project view. 17 |
18 | If you want to change what shows up in this page follow 19 | these instructions 20 |
21 | 22 | 23 | ); 24 | 25 | Teams.propTypes = { 26 | classes: PropTypes.shape().isRequired, 27 | }; 28 | 29 | export default withStyles(styles)(Teams); 30 | -------------------------------------------------------------------------------- /test/components/BugzillaComponentDetails.test.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import renderer from 'react-test-renderer'; 3 | import BugzillaComponentDetails from '../../src/components/BugzillaComponentDetails'; 4 | import bugzillaComponents from '../mocks/bugzillaComponents'; 5 | 6 | it('renders the details for a Bugzilla component', () => { 7 | /* eslint-disable react/jsx-props-no-spreading */ 8 | const tree = renderer 9 | .create(( 10 | null} 14 | /> 15 | )) 16 | .toJSON(); 17 | expect(tree).toMatchSnapshot(); 18 | }); 19 | -------------------------------------------------------------------------------- /test/components/BugzillaComponents.test.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import renderer from 'react-test-renderer'; 3 | import BugzillaComponents from '../../src/components/BugzillaComponents'; 4 | import bugzillaComponents from '../mocks/bugzillaComponents'; 5 | import { TEAMS_CONFIG } from '../../src/config'; 6 | 7 | it('renders components', () => { 8 | const tree = renderer 9 | .create(( 10 | null} 13 | /> 14 | )) 15 | .toJSON(); 16 | expect(tree).toMatchSnapshot(); 17 | }); 18 | 19 | it('renders components bucketed as teams', () => { 20 | const tree = renderer 21 | .create(( 22 | null} 25 | /> 26 | )) 27 | .toJSON(); 28 | expect(tree).toMatchSnapshot(); 29 | }); 30 | -------------------------------------------------------------------------------- /test/components/DrilldownIcon.test.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import renderer from 'react-test-renderer'; 3 | import DrilldownIcon from '../../src/components/DrilldownIcon'; 4 | 5 | it('renders the details for a Bugzilla component', () => { 6 | const tree = renderer 7 | .create(( 8 | null} 12 | /> 13 | )) 14 | .toJSON(); 15 | expect(tree).toMatchSnapshot(); 16 | }); 17 | -------------------------------------------------------------------------------- /test/components/Header.test.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import renderer from 'react-test-renderer'; 3 | import { BrowserRouter as Router } from 'react-router-dom'; 4 | import Header from '../../src/components/Header'; 5 | 6 | it('renders the reportees tab', () => { 7 | const tree = renderer 8 | .create(( 9 | 10 |
null} 13 | userId="fbar@mozilla.com" 14 | /> 15 | 16 | )) 17 | .toJSON(); 18 | expect(tree).toMatchSnapshot(); 19 | }); 20 | -------------------------------------------------------------------------------- /test/components/Reportees.test.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import renderer from 'react-test-renderer'; 3 | import Reportees from '../../src/components/Reportees'; 4 | import partialOrg from '../mocks/partialOrg'; 5 | 6 | it('renders Someone with no reportees', () => { 7 | const tree = renderer 8 | .create(( 9 | 13 | )) 14 | .toJSON(); 15 | expect(tree).toMatchSnapshot(); 16 | }); 17 | 18 | it('renders Manager who has reportees', () => { 19 | const tree = renderer 20 | .create(( 21 | 25 | )) 26 | .toJSON(); 27 | expect(tree).toMatchSnapshot(); 28 | }); 29 | 30 | it('renders Manager who has reportees & metrics', () => { 31 | const tree = renderer 32 | .create(( 33 | 47 | )) 48 | .toJSON(); 49 | expect(tree).toMatchSnapshot(); 50 | }); 51 | -------------------------------------------------------------------------------- /test/components/__snapshots__/BugzillaComponentDetails.test.jsx.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`renders the details for a Bugzilla component 1`] = ` 4 |
7 | 30 |
33 |

36 | Hello world! 37 |

38 |
41 |
42 |
43 |
44 |
45 | `; 46 | -------------------------------------------------------------------------------- /test/components/__snapshots__/DrilldownIcon.test.jsx.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`renders the details for a Bugzilla component 1`] = ` 4 |
12 | 27 |
28 | `; 29 | -------------------------------------------------------------------------------- /test/components/__snapshots__/Header.test.jsx.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`renders the reportees tab 1`] = ` 4 |
7 |
10 | 116 | 143 |
144 |
145 | `; 146 | -------------------------------------------------------------------------------- /test/mocks/bugzillaComponents.js: -------------------------------------------------------------------------------- 1 | const bugzillaComponents = [ 2 | { 3 | label: 'Core::DOM: IndexedDB', 4 | bugzillaEmail: 'someone@mozilla.com', 5 | component: 'DOM: IndexedDB', 6 | product: 'Core', 7 | }, 8 | { 9 | label: 'Core::JavaScript Engine', 10 | bugzillaEmail: 'someone@mozilla.com', 11 | component: 'JavaScript Engine', 12 | product: 'Core', 13 | }, 14 | { 15 | label: 'Core::DOM: Core & HTML', 16 | bugzillaEmail: 'someone@mozilla.com', 17 | component: 'DOM: Core & HTML', 18 | product: 'Core', 19 | metrics: { 20 | untriaged: { 21 | count: 944, 22 | link: 'https://bugzilla.mozilla.org/buglist.cgi?component=DOM%3A%20Core%20%26%20HTML&f1=bug_severity&f2=keywords&f3=resolution&limit=0&o1=notequals&o2=notsubstring&o3=isempty&product=Core&v1=enhancement&v2=meta', 23 | }, 24 | }, 25 | }, 26 | { 27 | label: 'Toolkit::Async Tooling', 28 | bugzillaEmail: 'manager@mozilla.com', 29 | component: 'Async Tooling', 30 | product: 'Toolkit', 31 | }, 32 | ]; 33 | 34 | export default bugzillaComponents; 35 | -------------------------------------------------------------------------------- /test/mocks/partialOrg.js: -------------------------------------------------------------------------------- 1 | const partialOrg = { 2 | 'someone@mozilla.com': { 3 | bugzillaEmail: 'someone@mozilla.com', 4 | name: 'Someone', 5 | mail: 'someone@mozilla.com', 6 | manager: 'manager@mozilla.com', 7 | }, 8 | 'manager@mozilla.com': { 9 | bugzillaEmail: 'someone@mozilla.com', 10 | name: 'Manager', 11 | mail: 'manager@mozilla.com', 12 | manager: null, 13 | }, 14 | }; 15 | 16 | export default partialOrg; 17 | -------------------------------------------------------------------------------- /test/utils/toDayOfWeek.test.js: -------------------------------------------------------------------------------- 1 | import moment from 'moment'; 2 | import toDayOfWeek from '../../src/utils/toDayOfWeek'; 3 | 4 | it('Monday to Friday', () => { 5 | const newDate = toDayOfWeek('2018-12-31'); 6 | expect(newDate).toBe('2019-01-04'); 7 | }); 8 | 9 | it('Friday to Friday', () => { 10 | const newDate = toDayOfWeek('2019-01-04'); 11 | expect(newDate).toBe('2019-01-04'); 12 | }); 13 | 14 | it('Saturday to next week Friday', () => { 15 | const newDate = toDayOfWeek('2018-12-29'); 16 | expect(newDate).toBe('2019-01-04'); 17 | }); 18 | 19 | it('Sunday to Friday', () => { 20 | const newDate = toDayOfWeek('2018-12-30'); 21 | expect(newDate).toBe('2019-01-04'); 22 | }); 23 | 24 | it('Current - To Friday of current week', () => { 25 | const newDate = toDayOfWeek(); 26 | const myTempDate = moment().utc(); 27 | const distance = 5 - myTempDate.day(); // 5 represents Friday 28 | myTempDate.date(myTempDate.date() + distance); 29 | expect(moment(myTempDate.format('YYYY-MM-DD')).isSame(newDate)).toBe(true); 30 | }); 31 | -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- 1 | // Whilst the configuration object can be modified here, the recommended way of making 2 | // changes is via the presets' options or Neutrino's API in `.neutrinorc.js` instead. 3 | // Neutrino's inspect feature can be used to view/export the generated configuration. 4 | const neutrino = require('neutrino'); 5 | 6 | module.exports = neutrino().webpack(); 7 | --------------------------------------------------------------------------------