1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
Commit Graph

7055 Commits

Author SHA1 Message Date
sjaanus
6b74b7c255
Fix error in migration when updating feature_environments (#2607)
Fixes a issue, where `variants` was null in features table, but column is not nullable.


Co-authored-by: sighphyre <liquidwicked64@gmail.com>
2022-12-06 14:57:54 +02:00
Ivar Conradi Østhus
fdd0509939
Revert "fix: json-schema-to-ts is a dev-dependency"
This reverts commit 29e7eb3805.
2022-12-06 13:30:51 +01:00
Ivar Conradi Østhus
29e7eb3805
fix: json-schema-to-ts is a dev-dependency 2022-12-06 13:06:46 +01:00
Ivar Conradi Østhus
bc0472d176
fix: upgrade express to v4.18.2 2022-12-06 12:46:42 +01:00
sjaanus
228ddabf73
4.18.5 2022-12-06 12:18:28 +02:00
Tymoteusz Czech
3ee2e5ae9b
fix: favorites column visibility (#2605)
Co-authored-by: sjaanus <sellinjaanus@gmail.com>
2022-12-06 10:03:43 +00:00
Gastón Fournier
aa20d2d418
Fix PATCH variants (old endpoint) when variants per environment are enabled (#2591)
## About the changes
This PR addresses some issues when working with variants after migrating
to variants per environment.

**Problem:** since PATCH
`/api/admin/projects/default/features/${featureName}/variants` does not
take into account `featureEnvironments`, when variantsPerEnvironment
gets enabled, this method will override the variants in other
environments (i.e. not doing a patch). This method has to be maintained
because of backward compatibility but it has to be adapted to deal with
variants per environment


https://linear.app/unleash/issue/2-476/when-using-patch-for-variants-without-environments-it-wipes-out

Co-authored-by: Nuno Góis <github@nunogois.com>
2022-12-06 09:47:54 +00:00
Mateusz Kwasniewski
a15157465c
Update publish-new-version.yaml 2022-12-06 09:46:41 +01:00
Ivar Conradi Østhus
0188998b4c
fix(docs): add resulution for 'decode-uri-component' 2022-12-06 09:46:22 +01:00
Thomas Heartman
8c42fbf34b
Docs(fix): add more (missing) redirects, fix links (#2592)
## What

This PR fixes some broken links we had in the application. It also adds
redirects for those links so that they should work in the future.

## Why

Because it's important to have links that work 💁
2022-12-06 09:32:42 +01:00
GitHub Actions Bot
47ec2ffcbf 4.18.4 2022-12-06 08:20:51 +00:00
andreas-unleash
7af155fe64
Feat/add enterprise badge to change req settings (#2585)
<!-- 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! ❤️ -->
Disable change requests for Pro and oss
## 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. -->

<!-- Does it close an issue? Multiple? -->
Closes #

<!-- (For internal contributors): Does it relate to an issue on public
roadmap? -->
<!--
Relates to [roadmap](https://github.com/orgs/Unleash/projects/10) item:
#
-->

### Important files
<!-- PRs can contain a lot of changes, but not all changes are equally
important. Where should a reviewer start looking to get an overview of
the changes? Are any files particularly important? -->


## Discussion points
<!-- Anything about the PR you'd like to discuss before it gets merged?
Got any questions or doubts? -->

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
Co-authored-by: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com>
Co-authored-by: Nuno Góis <github@nunogois.com>
2022-12-06 10:05:49 +02:00
GitHub Actions Bot
cfc347f1b6 4.18.2 2022-12-06 07:42:09 +00:00
Mateusz Kwasniewski
9e1fa06832
Update publish-new-version.yaml 2022-12-06 08:29:34 +01:00
Nuno Góis
d8fa693849
fix: allow import @server (#2601)
I noticed we had a Vite error when trying to run the front-end locally
bound to `unleash-cloud` due to the new `@server` import. This fixes it
by allowing serving fs from one level up.

Docs: https://vitejs.dev/config/server-options.html#server-fs-allow
2022-12-05 16:21:59 +00:00
Mateusz Kwasniewski
925b89b899
Update publish-new-version.yaml 2022-12-05 17:10:14 +01:00
Mateusz Kwasniewski
8bf7d31fed
Update publish-new-version.yaml 2022-12-05 16:32:10 +01:00
Mateusz Kwasniewski
e378f904bd
Update publish-new-version.yaml 2022-12-05 16:16:18 +01:00
Mateusz Kwasniewski
6f38f408b6
Update publish-new-version.yaml 2022-12-05 16:04:49 +01:00
Mateusz Kwasniewski
0dc6dfc5aa
Update publish-new-version.yaml 2022-12-05 16:01:40 +01:00
Mateusz Kwasniewski
8243c9d181
Update publish-new-version.yaml 2022-12-05 15:59:13 +01:00
Mateusz Kwasniewski
c1027d0359
Update publish-new-version.yaml 2022-12-05 15:51:20 +01:00
Mateusz Kwasniewski
8895004e03
Update publish-new-version.yaml 2022-12-05 15:49:22 +01:00
Mateusz Kwasniewski
31dbf098a2
github action to publish new npm version (#2599) 2022-12-05 15:46:02 +01:00
Mateusz Kwasniewski
e059b755c9
skip change request (#2598) 2022-12-05 15:38:17 +01:00
sjaanus
fd32c80201
4.18.1 2022-12-05 14:03:32 +02:00
Mateusz Kwasniewski
b9290dd5ed
CR applier should be able to create strategy (#2597) 2022-12-05 12:39:13 +01:00
sjaanus
a65a47e3b5
4.18.0 2022-12-05 12:52:48 +02:00
sjaanus
67fd18f500
4.18.0-beta.14 2022-12-05 12:15:24 +02:00
Simon Hornby
447bd44c99
Remove clone env and sync sso group flags (#2596)
Removes feature flags for syncing sso groups and clone environment.
These features are being made generally available for all who have
access to environments and sso groups
2022-12-05 12:07:15 +02:00
Ivar Conradi Østhus
4a3d26065f
Fix/cors expose ETag (#2594)
This commit fixes two issues with the frontend API

1. fix: update cors max age to match chromium defaults
https://source.chromium.org/chromium/chromium/src/+/main:services/network/public/cpp/cors/preflight_result.cc;drc=49e7c0b4886cac1f3d09dc046bd528c9c811a0fa;l=31
2: fix: expose ETage for cross-origin requests
2022-12-05 10:04:35 +01:00
Fredrik Strand Oseberg
bc3744d565
fix: remove stray only (#2589)
This removes stray onlys in our tests and adds a linter rule that will
error if only is present. Also updates the test result of one of our
tests as a result of [this pull
request](https://github.com/Unleash/unleash/pull/2344)
2022-12-02 13:10:39 +01:00
Mateusz Kwasniewski
055c2acddd
removing sort order from diff in change requests (#2587) 2022-12-02 10:39:20 +01:00
Mateusz Kwasniewski
0a9fdfc3df
fix flickering toggle (#2584) 2022-12-02 08:54:37 +01:00
Tymoteusz Czech
79e96fdb98
feat: favorite feature and project (#2582)
## About the changes
Add an ability to star a toggle from it's overiew.

Co-authored-by: sjaanus <sellinjaanus@gmail.com>
2022-12-02 09:16:03 +02:00
Pranshu Khanna
a2321192fc Added GitHub Discussions Links
Added GitHub Discussions as an option along with Slack.
2022-12-01 17:09:53 +01:00
Mateusz Kwasniewski
c7fe4a5a01
visual changes representation (#2583) 2022-12-01 14:44:33 +01:00
sjaanus
e728ecba69
Remove signup conditional flag (#2581)
Remove signup flag
2022-12-01 14:12:54 +02:00
Tymoteusz Czech
ef6ec4a83b
Favorite features on project (#2580) 2022-12-01 13:10:42 +01:00
sjaanus
0a3823e188
Add plausible events for favorite features (#2579) 2022-12-01 13:25:18 +02:00
Gastón Fournier
bf0171518c
task: continue to return export v3 when variants per env disabled (#2529)
## About the changes
With the latest changes of variants per environment, we switched to
export schema v4 without having the feature toggle enabled. This moves
the variants to `featureEnvironments` when they were previously in
`features`. The main problem is that it can create confusion as the
exported file has the same variants for each one of the environments but
after importing the file the UI will only show one set of variants
attached to the feature.

With this change, we're maintaining the previous schema until the
feature toggle is enabled.
2022-12-01 11:13:49 +00:00
Ivar Conradi Østhus
ee1ce16f41
fix: update coverage files 2022-12-01 10:32:39 +01:00
sjaanus
24fee65f7e
Make single project endpoint also return all features favorites (#2578)
Small update, that single project endpoint would also return features
with favorites.
2022-12-01 09:49:49 +02:00
renovate[bot]
60c9718b8d
chore(deps): update dependency @types/node to v16.18.4 (#2576)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node)
([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped)) |
[`16.18.3` ->
`16.18.4`](https://renovatebot.com/diffs/npm/@types%2fnode/16.18.3/16.18.4)
|
[![age](https://badges.renovateapi.com/packages/npm/@types%2fnode/16.18.4/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@types%2fnode/16.18.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@types%2fnode/16.18.4/compatibility-slim/16.18.3)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@types%2fnode/16.18.4/confidence-slim/16.18.3)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC40Mi4wIiwidXBkYXRlZEluVmVyIjoiMzQuNDIuMCJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-01 03:10:13 +00:00
renovate[bot]
2212d0bbf6
chore(deps): update dependency @swc/core to v1.3.21 (#2575)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@swc/core](https://swc.rs)
([source](https://togithub.com/swc-project/swc)) | [`1.3.20` ->
`1.3.21`](https://renovatebot.com/diffs/npm/@swc%2fcore/1.3.20/1.3.21) |
[![age](https://badges.renovateapi.com/packages/npm/@swc%2fcore/1.3.21/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@swc%2fcore/1.3.21/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@swc%2fcore/1.3.21/compatibility-slim/1.3.20)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@swc%2fcore/1.3.21/confidence-slim/1.3.20)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>swc-project/swc</summary>

###
[`v1.3.21`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#&#8203;1321---2022-11-30)

[Compare
Source](https://togithub.com/swc-project/swc/compare/v1.3.20...v1.3.21)

##### Bug Fixes

- **(ci)** Fix publish action for binaries
([#&#8203;6517](https://togithub.com/swc-project/swc/issues/6517))
([2ac3201](2ac32017ba))

- **(es/minifier)** Don't drop used variables from sequential inliner
([#&#8203;6520](https://togithub.com/swc-project/swc/issues/6520))
([b394f9f](b394f9f1d3))

- **(es/minifier)** Make sequential inliner respect resolution order
([#&#8203;6509](https://togithub.com/swc-project/swc/issues/6509))
([27ae59e](27ae59e77b))

- **(es/minifier)** Use unsafe option for arrow => method
([#&#8203;6521](https://togithub.com/swc-project/swc/issues/6521))
([9752b43](9752b43f94))

- **(es/minifier)** Don't convert a signed integer literal key to a
numeric literal
([#&#8203;6529](https://togithub.com/swc-project/swc/issues/6529))
([81224b5](81224b5d67))

- **(html/parser)** Fix parsing of cdata
([#&#8203;6534](https://togithub.com/swc-project/swc/issues/6534))
([e3cbe7e](e3cbe7e9a9))

##### Features

- **(common)** Add contexts to the error messages
([#&#8203;6526](https://togithub.com/swc-project/swc/issues/6526))
([b8fe04f](b8fe04f720))

- **(es/parser)** Make error message helpful
([#&#8203;6535](https://togithub.com/swc-project/swc/issues/6535))
([cb15721](cb157215d2))

- **(es/preset-env)** Update data
([#&#8203;6538](https://togithub.com/swc-project/swc/issues/6538))
([ae63220](ae6322064d))

- **(xml/parser)** Parse cdata section
([#&#8203;6531](https://togithub.com/swc-project/swc/issues/6531))
([7f8c4e0](7f8c4e04b2))

##### Miscellaneous Tasks

- **(bindings)** Fix jemalloc on aarch64
([#&#8203;6541](https://togithub.com/swc-project/swc/issues/6541))
([d56b5a8](d56b5a890a))

- **(swc_core)** Reexport more modules
([#&#8203;6548](https://togithub.com/swc-project/swc/issues/6548))
([9b58cce](9b58cce10b))

##### Performance

- **(common)** Fix perf bug of sourcemap for inputs with multi-byte
chars ([#&#8203;6523](https://togithub.com/swc-project/swc/issues/6523))
([47908a4](47908a49d3))

##### Refactor

- **(css/parser)** Canonicalize only if required
([#&#8203;6532](https://togithub.com/swc-project/swc/issues/6532))
([251e98c](251e98c055))

##### Testing

- **(es/minifier)** Add tests for preserving top-level directives
([#&#8203;6545](https://togithub.com/swc-project/swc/issues/6545))
([8d8f150](8d8f150792))

- **(es/transforms)** Add tests about preserving top-level directives
([#&#8203;6518](https://togithub.com/swc-project/swc/issues/6518))
([5ff87af](5ff87afa78))

- **(es/typescript)** Migrate inline tests to fixture tests
([#&#8203;6546](https://togithub.com/swc-project/swc/issues/6546))
([cddbc41](cddbc41430))

- **(ts/compat)** Migrate inline tests to fixture testing
([#&#8203;6475](https://togithub.com/swc-project/swc/issues/6475))
([cc4646a](cc4646a4cc))-
**general**: Use correct extensions for fixture tests
([#&#8203;6539](https://togithub.com/swc-project/swc/issues/6539))
([7ee86d1](7ee86d1d25))

##### Build

- **(cargo)** Update `browerslist-rs`
([#&#8203;6547](https://togithub.com/swc-project/swc/issues/6547))
([d730186](d730186e9f))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC40Mi4wIiwidXBkYXRlZEluVmVyIjoiMzQuNDIuMCJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-30 23:29:35 +00:00
renovate[bot]
af15742e3f
chore(deps): update dependency msw to v0.49.1 (#2553)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [msw](https://mswjs.io/) ([source](https://togithub.com/mswjs/msw)) |
[`0.49.0` ->
`0.49.1`](https://renovatebot.com/diffs/npm/msw/0.49.0/0.49.1) |
[![age](https://badges.renovateapi.com/packages/npm/msw/0.49.1/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/msw/0.49.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/msw/0.49.1/compatibility-slim/0.49.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/msw/0.49.1/confidence-slim/0.49.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>mswjs/msw</summary>

### [`v0.49.1`](https://togithub.com/mswjs/msw/releases/tag/v0.49.1)

[Compare
Source](https://togithub.com/mswjs/msw/compare/v0.49.0...v0.49.1)

#### v0.49.1 (2022-11-28)

##### Bug Fixes

- **setupWorker:** resolve the TS4094 error
([#&#8203;1477](https://togithub.com/mswjs/msw/issues/1477))
([`c268796`](c268796eb7))
[@&#8203;gduliscouet-ubitransport](https://togithub.com/gduliscouet-ubitransport)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC40MC4yIiwidXBkYXRlZEluVmVyIjoiMzQuNDAuMiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-30 20:01:29 +00:00
Fredrik Strand Oseberg
4bc2c747b1
fix: cr permission actions (#2574)
Fixes an issue where `PermissionSwitch` would not update because we
passed in environmentId and the UPDATE_PROJECT permission is only
project specific. Also fixes an issue where hasAccess didn't take in
projectId for UPDATE_PROJECT which is a project specific permission.
2022-11-30 14:45:23 +01:00
sjaanus
5c74efc6c6
4.18.0-beta.13 2022-11-30 15:14:49 +02:00
Tymoteusz Czech
5f88269744
feat: favorite feature table icons (#2525) 2022-11-30 12:44:38 +00:00
Fredrik Strand Oseberg
dacaaa51b7
feat: default the frontend api flags to on (#2573)
* This PR turns on the flag for the frontendApi to be on by default. We
should still be able to override them from the unleash-cloud
distribution.
2022-11-30 13:33:07 +01:00