1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/src/test/e2e/services
David Leek f35d9390c1
chore: deprecate username on api-tokens (#3616)
<!-- Thanks for creating a PR! To make it easier for reviewers and
everyone else to understand what your changes relate to, please add some
relevant content to the headings below. Feel free to ignore or delete
sections that you don't think are relevant. Thank you! ❤️ -->

## About the changes
<!-- Describe the changes introduced. What are they and why are they
being introduced? Feel free to also add screenshots or steps to view the
changes if they're visual. -->

This deprecates the `username` properties on api-token schemas, and adds
a `tokenName` property.
DB field `username` has been renamed to `token_name`, migration added
for the rename.
Both `username` and `tokenName` can be used when consuming the service,
but only one of them.

## Discussion points
<!-- Anything about the PR you'd like to discuss before it gets merged?
Got any questions or doubts? -->

There's a couple of things I'd like to get opinions on and discuss:
- Frontend still uses the deprecated `username` property
- ApiTokenSchema is used both for input and output of `Create`
controller endpoints and should be split out into separate schemas. I'll
set up a task for this

---------

Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-05-04 09:56:00 +02:00
..
access-service.e2e.test.ts fix: add truth checks to a number of jest tests. (#3627) 2023-04-26 14:24:09 +02:00
addon-service.e2e.test.ts fix: be explicit when specifying time & replace moment with date-fns (#1072) 2021-11-02 15:13:46 +01:00
api-token-service.e2e.test.ts chore: deprecate username on api-tokens (#3616) 2023-05-04 09:56:00 +02:00
client-metrics-service.e2e.test.ts task: Expose prometheus metrics (#2586) 2022-12-12 14:05:56 +01:00
environment-service.test.ts Feat: project default strategy (#3644) 2023-04-28 14:59:04 +03:00
feature-toggle-service-v2.e2e.test.ts feat: add title to strategy (#3510) 2023-04-18 08:59:02 +02:00
group-service.e2e.test.ts Fix all groups being removed, even when no external groups were defined (#2197) 2022-10-17 11:44:36 +03:00
last-seen-service.e2e.test.ts makes the 'Should update last seen for known toggles test' no longer … (#3293) 2023-03-10 09:58:43 +02:00
playground-service.test.ts fix: set feature.enabled to false when all strategies are deactivated (#3655) 2023-05-02 21:33:14 +03:00
project-health-service.e2e.test.ts refactor: read model for change request access checking (#3380) 2023-03-24 14:31:43 +01:00
project-service.e2e.test.ts Feat: project default strategy (#3644) 2023-04-28 14:59:04 +03:00
reset-token-service.e2e.test.ts Feat/grouping (#1845) 2022-07-21 16:23:56 +02:00
session-service.e2e.test.ts fix: be explicit when specifying time & replace moment with date-fns (#1072) 2021-11-02 15:13:46 +01:00
setting-service.test.ts feat: add event search endpoint (#1893) 2022-08-09 16:14:50 +02:00
state-service.e2e.test.ts fixes 2-456: Preserve all data from strategy import (#2720) 2022-12-21 13:33:41 +01:00
user-service.e2e.test.ts Add possibility to soft delete users (#2497) 2022-11-23 09:30:54 +02:00