Gastón Fournier
e22f6a04ba
chore: wrapTimer function types ( #8428 )
...
This gives us better types for our wrapTimer function.
Maybe the type `(args: any) => any` could also be improved
---------
Co-authored-by: Nuno Góis <nuno@getunleash.io>
2024-10-15 11:18:22 +02:00
Thomas Heartman
6d913809ca
chore: extract api token service composition root; place it in /features ( #7519 )
...
This is a refactoring task, creating an ApiTokenService composition root
in /features.
2024-07-03 11:49:11 +02:00
Mateusz Kwasniewski
5bd32f264d
feat: strategy limit to 30 ( #7473 )
2024-06-28 11:18:44 +02:00
David Leek
9ea66e8850
chore: remove deprecated legacy features endpoint ( #7129 )
...
This PR is part of #4380 - Remove legacy `/api/feature` endpoint.
## About the changes
### Frontend
- Removes the useFeatures hook
- Removes the part of StrategyView that displays features using this
strategy (not been working since v4.4)
- Removes 2 unused features entries from routes
### Backend
- Removes the /api/admin/features endpoint
- Moves a couple of non-feature related tests (auth etc) to use
/admin/projects endpoint instead
- Removes a test that was directly related to the removed endpoint
- Moves a couple of tests to the projects/features endpoint
- Reworks some tests to fetch features from projects features endpoint
and strategies from project strategies
2024-05-27 09:24:09 +02:00
Christopher Kolstad
7e38d6bae1
Node20 ( #7095 )
...
Upgrades workflows, nvmrc and package.json to use Node 20.
2024-05-23 14:14:09 +02:00
Jaanus Sellin
2d519469d4
chore: rename feature toggle to feature flag #5 ( #7115 )
2024-05-23 08:36:58 +03:00
Jaanus Sellin
d578deab7f
chore: remove new frontend api feature flag ( #6906 )
...
The flag has been 100% for a bit now, we need to prepare for GA.
2024-04-24 09:15:57 +03:00
Christopher Kolstad
cf2bd28ff6
feat: use audit info in events ( #6872 )
...
I've tried to use/add the audit info to all events I could see/find.
This makes this PR necessarily huge, because we do store quite a few
events.
I realise it might not be complete yet, but tests
run green, and I think we now have a pattern to follow for other events.
2024-04-18 16:32:35 +02:00
Gastón Fournier
e845459034
chore: Better randomness ( #6755 )
...
## About the changes
This change is irrelevant as it doesn't pose a security risk, but
there's no reason for us not to use a different type of random
generation for the `sessionId`
**Note:** the magic number 18 was picked because that's the length of
the string we get from `String(Math.random())`
Closes https://github.com/Unleash/unleash/security/code-scanning/68 and
https://github.com/Unleash/unleash/security/code-scanning/69
2024-04-02 16:21:33 +02:00
Christopher Kolstad
53354224fc
chore: Bump biome and configure husky ( #6589 )
...
Upgrades biome to 1.6.1, and updates husky pre-commit hook.
Most changes here are making type imports explicit.
2024-03-18 13:58:05 +01:00
Mateusz Kwasniewski
2716f72ea6
feat: separate new frontend api path for perf measurements ( #6583 )
2024-03-15 13:31:08 +02:00
Jaanus Sellin
8c87e27b8a
feat: enable frontend cache for everyone ( #6546 )
2024-03-14 10:55:49 +02:00
Jaanus Sellin
3c22a302c7
fix: fix frontend api timings ( #6536 )
...
Just a typo
2024-03-13 15:10:48 +02:00
Jaanus Sellin
c4412d8276
fix: measure frontend times only when flag enabled ( #6535 )
...
Moving to controller level to measure only for flag. Other option would
have been to check flag also at service.
2024-03-13 14:28:59 +02:00
Jaanus Sellin
570af43615
feat: share context between both frontend apis ( #6529 )
...
We are sharing contexts because we want both clients to use same session
ID.
2024-03-13 11:17:40 +02:00
Jaanus Sellin
259fde09db
feat: add possibility to see differences for frontend API ( #6528 )
2024-03-13 09:41:48 +02:00
Mateusz Kwasniewski
6278cdb6c7
feat: better logging for old and new frontend api differences ( #6524 )
2024-03-12 16:22:16 +01:00
Jaanus Sellin
a08bada1de
feat: do not return disabled features to FE api ( #6520 )
2024-03-12 14:41:25 +02:00
Jaanus Sellin
2a57acca41
feat: start monitoring total time to update cache ( #6517 )
2024-03-12 14:27:04 +02:00
Mateusz Kwasniewski
1d526e707b
test: compare frontend api implementations ( #6515 )
2024-03-12 12:22:27 +01:00
Jaanus Sellin
b7915171ff
feat: start tracking operation duration ( #6514 )
2024-03-12 12:30:30 +02:00
Mateusz Kwasniewski
bc83a4d66e
refactor: rename proxy to frontend api in openapi schemas ( #6511 )
2024-03-12 10:15:24 +01:00
Mateusz Kwasniewski
1f374ea20e
refactor: rename proxy to frontend api ( #6502 )
2024-03-11 17:30:46 +01:00