Граф коммитов

8 Коммитов

Автор SHA1 Сообщение Дата
Jeffrey Yasskin 285d520f68
Add a report on external review status (#3819) 2024-04-29 13:16:56 -07:00
Jason Robbins f7da04b96d
Implement a new report page for review latency. (#3724)
* Add and lay out new page for review latency report.

* Addressed review comments

* Actually revert generated library changes

* code complete

* UI tweaks

* Added unit tests and logging
2024-03-25 10:09:51 -07:00
Jason Robbins b1e4dc779d
Implement a page for feature latency metrics. (#3723)
* Define and lay out a page for feature latency metrics.

* Use FeatureLink object rather than separate fields.

* Support multiple feature owners and parse dates in URL.

* Fix docstrings and add simple unit tests.

* Added calculation and switched URLs to use dashes.

* Change calculation to include features created before start date

* Made logic more robust

* Reverted generated downgrades

* Refactored for testibility

* Made params required, added type annotations

* Added unit tests

* Reverted generated downgrades again
2024-03-22 15:50:04 -07:00
Jeffrey Yasskin f26e2ec82e
Add a report on which people have mentored specs recently. (#3654)
* Add a report on which people have mentored specs recently.

This currently treats any change to the feature as the mentor having
done some work, which isn't correct, but it should still work to give us
a rough picture of people's activity.

* Update test screenshots.

* Add a unit test.

* Add tests for ?after.

* Fix code review comments.

* Write a playwright test.

* Also test the 'after' query param and form field.

* Update the playwright screenshots to include the <hr>.
2024-02-14 12:01:17 -05:00
Jeffrey Yasskin 812d4184c5
Make refreshing the XSRF token conditional on whether the openapi endpoint needs authentication. (#3626)
* Baseline openapi bindings.

* Make refreshing the XSRF token conditional on whether the openapi endpoint needs authentication.

* Update the test for the new middleware behavior.
2024-01-31 09:35:58 -05:00
Jeffrey Yasskin 7bce764974
Merge the OpenAPI files into a single file to make editing work better. (#3614)
* Merge the OpenAPI files into a single file to make editing work better.

* Fix an object path.

Co-authored-by: James C Scott III <jcscottiii@users.noreply.github.com>

---------

Co-authored-by: James C Scott III <jcscottiii@users.noreply.github.com>
2024-01-26 12:38:38 -05:00
James C Scott III 42817a703b
Generate new routes for admin/blink.html [4/5] (#2742)
* Generate new routes for admin/blink.html

GET /componentsusers - The getter function that list all components and possible users and whether they are owners or just subscribed
PUT /components/{componentId}/users/{userId} - Add a user to a component
DELETE /components/{componentId}/users/{userId} - Remove a user from a component

* remove redundant components

* update names
2023-03-24 18:04:20 -04:00
James C Scott III 0394a5ebc9
Add initial api.yaml and generated code [2/5] (#2770)
* Add initial api.yaml and generated code

Manual changes:
- api.yaml:  All the necessary fields to have a valid api.yaml.
- package.json: add `openapi`, `openapi-frontend` and `openapi-backend` scripts. Add @openapitools/openapi-generator-cli as a dependency to do the generation of the code. add gen/ folder to mypy exclusion
- .github/workflows/ci.yml: add gen/ folder to mypy exclusion

Generated changes:
- openapitools.json: Made by openapi-generator-cli on initial generate so that subsequent generation use the same pinned version of the JAR.
- gen/*: The generated code
- package-lock.json: Updated because I added the new devDependency

* use modular openapi file pattern

* add validate cmd & simplify paths file ref
2023-03-24 17:26:49 -04:00