1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
Commit Graph

2705 Commits

Author SHA1 Message Date
Fredrik Oseberg
62afc52c9a chore: update frontend 2021-12-02 22:05:21 +01:00
Ivar Conradi Østhus
da18e1523b 4.3.0-beta.1 2021-12-02 22:05:21 +01:00
Ivar Conradi Østhus
7d706260b2 fix: upgrade unleash-frontend to v4.3.0-beta.1 2021-12-02 22:05:21 +01:00
Ivar Conradi Østhus
784ddf8fb3
fix: cleanup old user permissions (#1150) 2021-12-01 22:10:09 +01:00
Renovate Bot
69383e17aa chore(deps): update dependency jest to v27.4.3 2021-12-01 17:43:08 +00:00
Youssef
5e6e7e1aac adding tests 2021-12-01 10:41:41 +01:00
Thomas Heartman
df74d29f1e docs: adjust variant outline; add rough ideas. 2021-12-01 10:35:05 +01:00
Youssef
26c9bfa3c8 fix: add timestamp on project creation for update_at column 2021-12-01 09:59:34 +01:00
Thomas Heartman
f83ffb6746
Merge pull request #1144 from Unleash/docs/document-proxy-payload-format
docs: describe the shape of the data returned by the Unleash proxy
2021-12-01 09:24:24 +01:00
Thomas Heartman
a70782e841
Merge pull request #1139 from Unleash/docs/add-section-on-stale-toggles
docs: Add section on (potentially) stale toggles to tech debt
2021-12-01 09:22:01 +01:00
Renovate Bot
debd66dee5 chore(deps): update node.js to v14.18.2 2021-11-30 19:51:30 +00:00
Renovate Bot
8d2f593883 chore(deps): update dependency jest to v27.4.2 2021-11-30 14:32:46 +00:00
Youssef
00f5740d18 fix: rename last_update to updated_at 2021-11-30 15:25:52 +01:00
Youssef
c3273ce1ab fix: remove lastUpdate from fieldToRow 2021-11-30 15:14:50 +01:00
Youssef
71c6b05bc4 fix: remove unused dep 2021-11-30 14:53:31 +01:00
Youssef
10c1b56e38 add lastupdate to health report 2021-11-30 14:05:44 +01:00
Thomas Heartman
e41d6b0f4d docs: describe the shape of the data returned by the Unleash proxy
This commit attempts to explain what the proxy returns in more detail,
explaining how payloads work and what the `enabled` properties mean
and how they relate to the rest of the content.
2021-11-30 12:52:46 +01:00
Youssef
991a4a8634 add last-update migration to projects table 2021-11-30 10:40:58 +01:00
Renovate Bot
b2dd2ad8eb chore(deps): update typescript-eslint monorepo to v5.5.0 2021-11-29 22:36:07 +00:00
Renovate Bot
d20fc54b80 chore(deps): update dependency jest to v27.4.0 2021-11-29 18:03:18 +00:00
Thomas Heartman
2898b77dd6 docs: Add section on (potentially) stale toggles to tech debt
Previously, when you searched for 'stale toggle' in the docs, the
first result would be the API docs and it'd be hard to find any form
of explanation of what a stale toggle is at all.

To combat that, this commit adds a section to the tech debt chapter
explaining what they are.
2021-11-29 14:55:50 +01:00
Thomas Heartman
fb185311e0
Merge pull request #1137 from Unleash/thomasheartman-patch-1
docs: typo; change "metics" -> "metrics"
2021-11-29 09:20:52 +01:00
Thomas Heartman
736faaca5b
docs: typo; change "metics" -> "metrics" 2021-11-29 08:40:59 +01:00
Thomas Heartman
f6cde0fce3
Merge pull request #1133 from Unleash/docs/update-environmment-listing
docs: List environment article and prep it for release
2021-11-29 07:51:51 +01:00
renovate[bot]
5e195f0a50
chore(deps): update dependency lint-staged to v12 (#1104)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-27 09:26:11 +01:00
Ivar Conradi Østhus
c318ee919d
fix: correct version number for unleash-frontend 2021-11-26 15:48:38 +01:00
Ivar Conradi Østhus
a355f23b9f
fix: require json-schema v0.4.0 or later (#1135) 2021-11-26 15:45:30 +01:00
Ivar Conradi Østhus
eb8265922d
Fix/enable standard environments (#1134) 2021-11-26 15:31:36 +01:00
Thomas Heartman
1af8b23149 docs: remove references to environments being a beta feature.
Also specify that if you're on version 4.3, you don't need to do anything.
2021-11-26 13:53:46 +01:00
Thomas Heartman
1837a6ec35 docs: add environments post to side bar. 2021-11-26 13:53:32 +01:00
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
Thomas Heartman
7bfe306545
Merge branch 'master' into docs/detail-health-rating-updates 2021-11-26 11:07:48 +01: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
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
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
Thomas Heartman
573c1d1ad9
Merge branch 'master' into docs/add-stickiness 2021-11-24 14:38:45 +01:00
Christopher Kolstad
72092e4a1c
fix: make new variant api validate name uniqueness (#1126) 2021-11-24 14:22:28 +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