1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-04 00:18:01 +01:00
unleash.unleash/src/lib/features/project
Thomas Heartman 95359ecff8
fix: cap project ids to 90 characters (without suffix) (#7481)
This fixes the issue where project names that are 100 characters long
or longer would cause the project creation to fail. This is because
the resulting ID would be longer than the 100 character limit imposed
by the back end.

We solve this by capping the project ID to 90 characters, which leaves
us with 10 characters for the suffix, meaning you can have 1 billion
projects (999,999,999 + 1) that start with the same 90
characters (after slugification) before anything breaks.

It's a little shorter than what it strictly has to be (we could
probably get around with 95 characters), but at this point, you're
reaching into edge case territory anyway, and I'd rather have a little
too much wiggle room here.
2024-06-28 09:25:27 +02:00
..
createProjectService.ts
fake-project-flag-creators-read-model.ts
fake-project-owners-read-model.ts
project-applications.e2e.test.ts
project-controller.ts chore: remove unstable label from GA metrics features (#7433) 2024-06-24 13:32:35 +02:00
project-flag-creators-read-model.ts
project-flag-creators-read-model.type.ts
project-flag-creators.e2e.test.ts
project-owners-read-model.test.ts
project-owners-read-model.ts
project-owners-read-model.type.ts
project-service.e2e.test.ts fix: cap project ids to 90 characters (without suffix) (#7481) 2024-06-28 09:25:27 +02:00
project-service.test.ts chore: change generated project id format to use incrementing numbers instead of hashes (#7456) 2024-06-27 09:21:09 +02:00
project-service.ts fix: cap project ids to 90 characters (without suffix) (#7481) 2024-06-28 09:25:27 +02:00
project-store-type.ts
project-store.ts
projects.e2e.test.ts