1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-23 20:07:40 +02:00
Commit Graph

6701 Commits

Author SHA1 Message Date
Christopher Kolstad
5829ec7b3d
task: Sort variants by name (#1132) 2021-11-26 13:06:36 +01:00
Thomas Heartman
620aff23b4
Merge pull request #1129 from Unleash/docs/detail-health-rating-updates
docs: Clarify that health rating is only updated once an hour.
2021-11-26 12:19:47 +01:00
Youssef Khedher
c34d8439bd Feat/splash (#491)
* splash screen

* add styles for controllers

* feat: animated circles

* fix: remove unused code

* fix: folder structure

* create splash screens for envs

* add styles and ui changes

* fix: revert App.tsx

* add splash state to store

* add splash to app.tsx + add a loader

* fix: mobile view + desktop view

* fix: render splash condition + styling fix

* fix: change splash display to full screen

* Update src/hooks/api/actions/useSplashApi/useSplashApi.ts

Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>

* fix: change function type

Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>

* fix: disable incrementing counter when matching the components length.

* fix: add SWR configuration

* fix: spelling mistakes in splash screen

* fix: add keys and adjust styling

* fix: tests

* fix: tests

* fix: default command timeout

Co-authored-by: Fredrik Oseberg <fredrik.no@gmail.com>
2021-11-26 11:12:37 +01:00
Thomas Heartman
7bfe306545
Merge branch 'master' into docs/detail-health-rating-updates 2021-11-26 11:07:48 +01:00
sighphyre
00b9a6c38d Merge pull request #525 from Unleash/fix/variant-list-popup
Fix variant list
2021-11-26 11:52:26 +02:00
Simon Hornby
116a8e73f7 Merge branch 'master' into fix/variant-list-popup 2021-11-26 09:32:59 +02:00
renovate[bot]
769e8693b3
chore(deps): update metcalfc/changelog-generator action to v3 (#1121)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-25 20:08:33 +01:00
Renovate Bot
44e118be5e chore(deps): update dependency prettier to v2.5.0 2021-11-25 18:12:51 +00:00
Simon Hornby
e5c941c68d Fix variant list
- Fix an issue where clicking a variant in the list would popup a modal
dialog with empty details
2021-11-25 16:02:38 +02:00
Christopher Kolstad
5cdb3f665a
task: Ban changes to variants through feature (#1130)
* task: Ban changes to variants through feature

After adding the new `/variants` endpoint for features we now have a way
to access control adding/modifying variants, so the /:featureName
endpoint should no longer allow editing/adding variants.

This removes variants as a known field from the featureMetadata schema
and tells joi to stripUnknown, thus making sure we never include
variants in the initial creation or future update calls.

For the old features v1 API we allow it to declare that it has already
validated the data coming with its own schema, so we should use the data
we get from it. Thus keeping the old v1 functionality intact

Co-authored-by: Simon Hornby <simon@getunleash.ai>
2021-11-25 14:53:58 +01:00
Ivar Conradi Østhus
b47b507e18
fix: metrics v2 should await for the clearer (#1114) 2021-11-25 14:18:35 +01:00
Christopher Kolstad
83443627d9 feat: Use new Variants API (#518)
* feat: Use new Variants API

Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
2021-11-25 14:05:44 +01:00
Christopher Kolstad
3dfc037df7
task: add link to FCC video (#1127)
* task: add link to FCC video
2021-11-25 11:37:45 +01:00
Thomas Heartman
69d2925180
Merge pull request #1125 from Unleash/docs/fix-internal-links
docs: use internal links for linking to other doc pages.
2021-11-25 10:50:12 +01:00
Thomas Heartman
1ac46ec3c1 docs: Clarify that health rating is only updated once an hour.
This commit also gives health rating its own, separate headline. This
should improve searchability 🤞
2021-11-25 10:45:47 +01:00
Thomas Heartman
9d083fedd6
Merge branch 'master' into docs/fix-internal-links 2021-11-25 10:12:46 +01:00
Christopher Kolstad
c9ff3972e2
fix: Stop healthrating from including archived (#1128)
- Since the archived toggles are not visible in the health dashboard,
  including them in the health rating calculation makes for some really
  confusing dashboards. This PR makes sure we only include non-archived
  toggles when calculating health.
2021-11-25 10:09:23 +01:00
Thomas Heartman
c5129e00d7
Merge branch 'master' into docs/fix-internal-links 2021-11-25 09:10:57 +01:00
Thomas Heartman
8f325caa4f
Merge pull request #1124 from Unleash/docs/add-stickiness
docs: document stickiness
2021-11-25 09:10:50 +01:00
Renovate Bot
b69606cd98 chore(deps): update dependency sass to v1.43.5 2021-11-25 01:47:03 +00:00
Renovate Bot
fbb57c3f34 chore(deps): update dependency @types/react to v17.0.37 2021-11-24 23:59:52 +00:00
Youssef Khedher
707b91e173 Merge pull request #517 from Unleash/fix/search-field
fix: clear search input on route change
2021-11-24 22:05:16 +01:00
Youssef
3c6120a362 fix: typo in function name + remove unused value state 2021-11-24 20:59:23 +01:00
Fredrik Strand Oseberg
dd2b661928 Merge branch 'master' into fix/search-field 2021-11-24 14:43:01 +01:00
Thomas Heartman
573c1d1ad9
Merge branch 'master' into docs/add-stickiness 2021-11-24 14:38:45 +01:00
Fredrik Strand Oseberg
36fcac7178 Fix/project view desc (#515)
* fix: rollout icon and disabled state

* fix: mobile position

* refactor: move into style file

* fix: description box for projects

* fix: icon placement

* fix: icon

* fix: mobile project view

* fix: add style file to disabled indicator

* fix: hide icon on mobile

* fix: description

* fix: remove project logo
2021-11-24 14:36:21 +01:00
Christopher Kolstad
72092e4a1c
fix: make new variant api validate name uniqueness (#1126) 2021-11-24 14:22:28 +01:00
Fredrik Strand Oseberg
3be5181d0e Merge branch 'master' into fix/search-field 2021-11-24 14:06:26 +01:00
Thomas Heartman
e8478126a5
Merge branch 'master' into docs/add-stickiness 2021-11-24 13:59:56 +01:00
Thomas Heartman
42b1f44d84 docs: add note about Unleash using MurmurHash for stickiness. 2021-11-24 13:41:25 +01:00
Thomas Heartman
d58ed5f84b
Apply suggestions from code review
Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai>
2021-11-24 13:39:02 +01:00
Christopher Kolstad
6c6001619c
Feat/variant api (#1119)
Add a new .../:feature/variants API

This adds
- `GET /api/admin/projects/:projectId/features/:featureName/variants` which returns 
```json
{ version: '1', variants: IVariant[] }
```
- `PATCH /api/admin/projects/:projectId/features/:featureName/variants` which accepts a json patch set and updates the feature's variants field and then returns 
```json
{ version: '1', variants: IVariant[] }
```
- `PUT /api/admin/projects/:projectId/features/:featureName/variants`
 which accepts a IVariant[] and overwrites the current variants list for the feature defined in :featureName and returns
```json
{ version: '1', variants: IVariant[] }

- This also makes sure the total weight of all variants is == 1000
- Validates that there is at least 1 'variable' variant if there are variants
- Validates that 'fix' variants total weight can't exceed 1000
- Adds tests for all these invariants.


Co-authored-by: Simon Hornby <simon@getunleash.ai>
2021-11-24 13:08:04 +01:00
Thomas Heartman
8b50696e99 docs: use internal links for linking to other doc pages. 2021-11-24 13:02:06 +01:00
Thomas Heartman
c077860d54 docs: Remove link to non-existing page about sdk capabilities. 2021-11-24 12:04:33 +01:00
Thomas Heartman
9c0848b053 docs: fix links to old versions of pages; link to new versions. 2021-11-24 12:03:31 +01:00
Thomas Heartman
6634d1d580 docs: fix a typo in activation strategies: use -> user 2021-11-24 11:52:27 +01:00
Thomas Heartman
d15cb50792 docs: update stickiness docs. 2021-11-24 11:52:17 +01:00
Thomas Heartman
7feff57977 docs: add image for custom stickiness. 2021-11-24 11:43:27 +01:00
Youssef
64aa5bde06 fix: clear search input on route change 2021-11-24 11:41:43 +01:00
Thomas Heartman
eadf118759 docs: delete old unleash-context doc.
Similar to the activation strategy page: this seems to be deprecated
and was not listed in the sidebar. There is also a newer, more fleshed
out version that _does_ appear in the sidebar instead.
2021-11-24 11:27:55 +01:00
Thomas Heartman
b9325c89fb docs: delete old activation strategies file.
This file has not been touched in a while and seems to be superseded
by the new file by the same name in the `user_guide` directory.
2021-11-24 10:59:47 +01:00
Thomas Heartman
7274474792 docs: remove link to old activation strategies document. 2021-11-24 10:53:56 +01:00
Thomas Heartman
e9e1de4a89 docs: Add stickiness document to advanced section. 2021-11-24 10:48:28 +01:00
Thomas Heartman
7fe74c1358 docs: update reference to gradual rollout (was 'flexible rollout') 2021-11-24 10:48:02 +01:00
Thomas Heartman
3a785bdb0f
Merge pull request #1122 from Unleash/docs/more-feature-toggle-type-info
docs: Expand feature toggle type documentation, link from important concepts.
2021-11-24 08:59:48 +01:00
Thomas Heartman
ff4114e7d2
Merge branch 'master' into docs/more-feature-toggle-type-info 2021-11-24 08:47:16 +01:00
Thomas Heartman
df742279a5
Apply suggestions from code review
Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai>
2021-11-24 08:33:31 +01:00
Youssef Khedher
67f7969b84
Merge pull request #1095 from Unleash/feat/splash
create splash migration store and service file
2021-11-23 20:26:42 +01:00
Fredrik Strand Oseberg
786fbb0034
Merge branch 'master' into feat/splash 2021-11-23 19:54:13 +01:00
Renovate Bot
cb4fd81368 chore(deps): update dependency @testing-library/jest-dom to v5.15.1 2021-11-23 17:27:22 +00:00