1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00
unleash.unleash/src/test/e2e/api/admin
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
..
project chore: deprecate username on api-tokens (#3616) 2023-05-04 09:56:00 +02:00
user feat: authorization middleware (#3464) 2023-04-06 11:46:54 +02:00
addon.e2e.test.ts OpenAPI: addon operations (#3421) 2023-04-18 10:50:34 +00:00
api-token.auth.e2e.test.ts feat: add READ_API_TOKEN permission (#1528) 2022-04-26 10:24:34 +02:00
api-token.e2e.test.ts chore: deprecate username on api-tokens (#3616) 2023-05-04 09:56:00 +02:00
archive.test.ts feat: project mode (#3334) 2023-03-16 15:29:52 +01:00
client-metrics.e2e.test.ts fix: generate all hour buckets if missing (#2319) 2022-11-04 09:30:02 +01:00
conditional-middleware.e2e.test.ts Rename suggest changes to change request (#2311) 2022-11-02 08:34:14 +02:00
config.e2e.test.ts Fix/remove settings cache (#2694) 2022-12-14 17:35:22 +01:00
constraints.e2e.test.ts fix: enabling more tests with strict schema validation (#3081) 2023-02-14 11:25:13 +01:00
context.e2e.test.ts feat: add context value descriptions (#1496) 2022-04-19 08:40:07 +02:00
environment.test.ts fix: enabling more tests with strict schema validation (#3081) 2023-02-14 11:25:13 +01:00
event.e2e.test.ts fix: enabling more tests with strict schema validation (#3081) 2023-02-14 11:25:13 +01:00
favorites.e2e.test.ts Make single project endpoint also return all features favorites (#2578) 2022-12-01 09:49:49 +02:00
feature-archive.e2e.test.ts feat: remove bulk operations flag (#3643) 2023-04-28 11:18:03 +03:00
feature-type.test.ts refactor: add OpenAPI schema to feature types controller (#1684) 2022-06-09 13:17:13 +02:00
feature.auth.e2e.test.ts task: removes deprecated feature api (#3609) 2023-04-26 10:45:00 +02:00
feature.custom-auth.e2e.test.ts task: removes deprecated feature api (#3609) 2023-04-26 10:45:00 +02:00
feedback.e2e.test.ts refactor: add schemas to feedback controller (#1698) 2022-06-17 08:15:56 +02:00
instance-admin.e2e.test.ts feat: project mode (#3334) 2023-03-16 15:29:52 +01:00
maintenance.e2e.test.ts task: removes deprecated feature api (#3609) 2023-04-26 10:45:00 +02:00
metrics.e2e.test.ts fix: rename metrics-service to client-instance service 2021-12-10 09:31:54 +01:00
playground.e2e.test.ts chore: deprecate username on api-tokens (#3616) 2023-05-04 09:56:00 +02:00
public-signup-token.e2e.test.ts Maintenance mode middleware (#2707) 2022-12-19 09:01:04 +02:00
splash.e2e.test.ts fix: update e2e test for splash 2021-11-12 11:18:09 +01:00
state.e2e.test.ts chore: deprecate username on api-tokens (#3616) 2023-05-04 09:56:00 +02:00
strategy.e2e.test.ts chore: remove deprecated strategies and allow deprecate default (#3575) 2023-04-21 11:42:36 +02:00
tag-types.e2e.test.ts feat: unify error responses (#3607) 2023-04-25 13:40:46 +00:00
tags.e2e.test.ts fix: fix bulk removal of tags (#3651) 2023-04-28 14:49:34 +03:00
user-admin.e2e.test.ts task: removes deprecated feature api (#3609) 2023-04-26 10:45:00 +02:00