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

7434 Commits

Author SHA1 Message Date
Mateusz Kwasniewski
2107834768
hide discard for nonauthors (#2634) 2022-12-08 13:24:15 +01:00
Nuno Góis
1be2483e6a
Refactor premium feature (#2627)
https://linear.app/unleash/issue/2-491/improve-premiumfeature-component-and-how-its-implemented


![image](https://user-images.githubusercontent.com/14320932/206237837-6032c3c0-1e42-4be2-8b6f-223e0204e1b5.png)

Refactors `PremiumFeature` to be a bit more straightforward and match
new designs, both in standalone and tooltip modes.
This also fixes the fact that the change requests tab did not display
the premium feature info, along with other smaller fixes.

Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai>
2022-12-08 11:42:54 +00:00
Mateusz Kwasniewski
fb2c30244c
adding missing enterprise check (#2635) 2022-12-08 12:37:20 +01:00
Nuno Góis
9b10b26ba4
fix: tags endpoint returning 404 when featureId is not set (#2621)
Leverages the new `useConditionalSWR` hook to fix the underlying issue
in the `useTags` hook, preventing edge cases where we try to fetch when
featureId is not correctly set.
2022-12-08 11:16:53 +00:00
Ivar Conradi Østhus
739b6c3170
fix(docs): add resulution for qs dep 2022-12-08 11:32:22 +01:00
Ivar Conradi Østhus
d9d9f01b37
feat: add capability to write heap snapshot. (#2611)
Is protected behind a config option called `enableHeapSnapshotEnpoint`.
When API endpoint is triggered it will write a heapSnapshot to disk.

Steps to create heap snapshot:

1. Add env variable `ENABLE_HEAP_SNAPSHOT_ENPOINT=true`. 
2. Call this endpoint: `/internal-backstage/heapSnapshot`
3. Download the created heapdump from the server. 

The snapshot can be loaded in the chrome dev-tool to analysis.
2022-12-08 11:25:39 +01:00
Mateusz Kwasniewski
353f50237d
Change request UI improvements pt2 (#2624) 2022-12-08 10:59:37 +01:00
renovate[bot]
1e0602c134
chore(deps): update dependency vite to v3.2.5 (#2632)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [vite](https://togithub.com/vitejs/vite/tree/main/#readme)
([source](https://togithub.com/vitejs/vite)) | [`3.2.4` ->
`3.2.5`](https://renovatebot.com/diffs/npm/vite/3.2.4/3.2.5) |
[![age](https://badges.renovateapi.com/packages/npm/vite/3.2.5/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/vite/3.2.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/vite/3.2.5/compatibility-slim/3.2.4)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/vite/3.2.5/confidence-slim/3.2.4)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>vitejs/vite</summary>

###
[`v3.2.5`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small325-2022-12-05-small)

[Compare
Source](https://togithub.com/vitejs/vite/compare/v3.2.4...v3.2.5)

- chore: cherry pick more v4 bug fixes to v3
([#&#8203;11189](https://togithub.com/vitejs/vite/issues/11189))
([eba9b42](https://togithub.com/vitejs/vite/commit/eba9b42)), closes
[#&#8203;11189](https://togithub.com/vitejs/vite/issues/11189)
[#&#8203;10949](https://togithub.com/vitejs/vite/issues/10949)
[#&#8203;11056](https://togithub.com/vitejs/vite/issues/11056)
[#&#8203;8663](https://togithub.com/vitejs/vite/issues/8663)
[#&#8203;10958](https://togithub.com/vitejs/vite/issues/10958)
[#&#8203;11120](https://togithub.com/vitejs/vite/issues/11120)
[#&#8203;11122](https://togithub.com/vitejs/vite/issues/11122)
[#&#8203;11123](https://togithub.com/vitejs/vite/issues/11123)
[#&#8203;11132](https://togithub.com/vitejs/vite/issues/11132)
- chore: cherry pick v4 bug fix to v3
([#&#8203;11110](https://togithub.com/vitejs/vite/issues/11110))
([c93a526](https://togithub.com/vitejs/vite/commit/c93a526)), closes
[#&#8203;11110](https://togithub.com/vitejs/vite/issues/11110)
[#&#8203;10941](https://togithub.com/vitejs/vite/issues/10941)
[#&#8203;10987](https://togithub.com/vitejs/vite/issues/10987)
[#&#8203;10985](https://togithub.com/vitejs/vite/issues/10985)
[#&#8203;11067](https://togithub.com/vitejs/vite/issues/11067)
- fix: relocated logger to respect config.
([#&#8203;10787](https://togithub.com/vitejs/vite/issues/10787))
([#&#8203;10967](https://togithub.com/vitejs/vite/issues/10967))
([bc3b5a9](https://togithub.com/vitejs/vite/commit/bc3b5a9)), closes
[#&#8203;10787](https://togithub.com/vitejs/vite/issues/10787)
[#&#8203;10967](https://togithub.com/vitejs/vite/issues/10967)

</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:eyJjcmVhdGVkSW5WZXIiOiIzNC41MS4wIiwidXBkYXRlZEluVmVyIjoiMzQuNTEuMCJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-08 07:22:55 +00:00
renovate[bot]
c5f708b3d4
chore(deps): update dependency supertest to v6.3.3 (#2631)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [supertest](https://togithub.com/visionmedia/supertest) | [`6.3.1` ->
`6.3.3`](https://renovatebot.com/diffs/npm/supertest/6.3.1/6.3.3) |
[![age](https://badges.renovateapi.com/packages/npm/supertest/6.3.3/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/supertest/6.3.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/supertest/6.3.3/compatibility-slim/6.3.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/supertest/6.3.3/confidence-slim/6.3.1)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>visionmedia/supertest</summary>

### [`v6.3.3`](https://togithub.com/ladjs/supertest/releases/tag/v6.3.3)

[Compare
Source](https://togithub.com/visionmedia/supertest/compare/v6.3.2...v6.3.3)

- chore: bump deps
[`2910f73`](https://togithub.com/visionmedia/supertest/commit/2910f73)

### [`v6.3.2`](https://togithub.com/ladjs/supertest/releases/tag/v6.3.2)

[Compare
Source](https://togithub.com/visionmedia/supertest/compare/v6.3.1...v6.3.2)

- docs: added maintainer note
[`e24875d`](https://togithub.com/visionmedia/supertest/commit/e24875d)
- docs: fixed links
[`5b59ddc`](https://togithub.com/visionmedia/supertest/commit/5b59ddc)

</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:eyJjcmVhdGVkSW5WZXIiOiIzNC41MS4wIiwidXBkYXRlZEluVmVyIjoiMzQuNTEuMCJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-08 04:33:13 +00:00
renovate[bot]
ef2e1e4b1f
chore(deps): update dependency superagent to v8.0.6 (#2630)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [superagent](https://togithub.com/ladjs/superagent) | [`8.0.4` ->
`8.0.6`](https://renovatebot.com/diffs/npm/superagent/8.0.4/8.0.6) |
[![age](https://badges.renovateapi.com/packages/npm/superagent/8.0.6/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/superagent/8.0.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/superagent/8.0.6/compatibility-slim/8.0.4)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/superagent/8.0.6/confidence-slim/8.0.4)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>ladjs/superagent</summary>

###
[`v8.0.6`](https://togithub.com/ladjs/superagent/releases/tag/v8.0.6)

[Compare
Source](https://togithub.com/ladjs/superagent/compare/v8.0.5...v8.0.6)

- chore: bump deps
[`7d5e3a8`](https://togithub.com/ladjs/superagent/commit/7d5e3a8)

###
[`v8.0.5`](https://togithub.com/ladjs/superagent/releases/tag/v8.0.5)

[Compare
Source](https://togithub.com/ladjs/superagent/compare/v8.0.4...v8.0.5)

- docs: fixed links, added maintainer note
[`08a18b9`](https://togithub.com/ladjs/superagent/commit/08a18b9)
- Merge pull request
[#&#8203;1753](https://togithub.com/ladjs/superagent/issues/1753) from
lamweili/patch-1
[`92b1435`](https://togithub.com/ladjs/superagent/commit/92b1435)
- chore(deps-dev): downgraded mocha from ^10.1.0 to ^6.2.3
[`889e90c`](https://togithub.com/ladjs/superagent/commit/889e90c)

</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:eyJjcmVhdGVkSW5WZXIiOiIzNC40OS4wIiwidXBkYXRlZEluVmVyIjoiMzQuNDkuMCJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-08 04:22:49 +00:00
renovate[bot]
ece2949d4b
chore(deps): update dependency openapi-enforcer to v1.22.2 (#2629)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [openapi-enforcer](https://openapi-enforcer.com)
([source](https://togithub.com/byu-oit/openapi-enforcer)) | [`1.22.1` ->
`1.22.2`](https://renovatebot.com/diffs/npm/openapi-enforcer/1.22.1/1.22.2)
|
[![age](https://badges.renovateapi.com/packages/npm/openapi-enforcer/1.22.2/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/openapi-enforcer/1.22.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/openapi-enforcer/1.22.2/compatibility-slim/1.22.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/openapi-enforcer/1.22.2/confidence-slim/1.22.1)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>byu-oit/openapi-enforcer</summary>

###
[`v1.22.2`](https://togithub.com/byu-oit/openapi-enforcer/blob/HEAD/CHANGELOG.md#&#8203;1222)

[Compare
Source](11e77301c5...72e13f2b91)

##### Fixed

-   **Fix Validation of `not` Sub Schema**

Any time a schema had the property `not`, it was not validating
correctly.
    This code for this fix, including tests, is thanks to
    [gaetano-guerriero](https://togithub.com/gaetano-guerriero).

</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:eyJjcmVhdGVkSW5WZXIiOiIzNC40OS4wIiwidXBkYXRlZEluVmVyIjoiMzQuNDkuMCJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-07 20:55:52 +00:00
renovate[bot]
3135243e19
chore(deps): update dependency @types/node to v16.18.6 (#2628)
[![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.4` ->
`16.18.6`](https://renovatebot.com/diffs/npm/@types%2fnode/16.18.4/16.18.6)
|
[![age](https://badges.renovateapi.com/packages/npm/@types%2fnode/16.18.6/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@types%2fnode/16.18.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@types%2fnode/16.18.6/compatibility-slim/16.18.4)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@types%2fnode/16.18.6/confidence-slim/16.18.4)](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:eyJjcmVhdGVkSW5WZXIiOiIzNC40OS4wIiwidXBkYXRlZEluVmVyIjoiMzQuNDkuMCJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-07 20:45:29 +00:00
renovate[bot]
7aa2ac4803
chore(deps): update dependency @types/jest to v29.2.4 (#2626)
[![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/jest](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jest)
([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped)) |
[`29.2.3` ->
`29.2.4`](https://renovatebot.com/diffs/npm/@types%2fjest/29.2.3/29.2.4)
|
[![age](https://badges.renovateapi.com/packages/npm/@types%2fjest/29.2.4/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@types%2fjest/29.2.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@types%2fjest/29.2.4/compatibility-slim/29.2.3)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@types%2fjest/29.2.4/confidence-slim/29.2.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:eyJjcmVhdGVkSW5WZXIiOiIzNC40OS4wIiwidXBkYXRlZEluVmVyIjoiMzQuNDkuMCJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-07 20:34:54 +00:00
renovate[bot]
cec7edd370
chore(deps): update dependency @types/deep-diff to v1.0.2 (#2615)
[![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/deep-diff](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/deep-diff)
([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped)) |
[`1.0.1` ->
`1.0.2`](https://renovatebot.com/diffs/npm/@types%2fdeep-diff/1.0.1/1.0.2)
|
[![age](https://badges.renovateapi.com/packages/npm/@types%2fdeep-diff/1.0.2/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@types%2fdeep-diff/1.0.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@types%2fdeep-diff/1.0.2/compatibility-slim/1.0.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@types%2fdeep-diff/1.0.2/confidence-slim/1.0.1)](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:eyJjcmVhdGVkSW5WZXIiOiIzNC40OS4wIiwidXBkYXRlZEluVmVyIjoiMzQuNDkuMCJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-07 16:22:03 +00:00
Fredrik Strand Oseberg
928b3515dc
fix: update package json and remove empty exports (#2625)
* Removes exports statements in e2e tests
* Updates package.json to optionally use heroku url for e2e tests when
running locally
2022-12-07 14:08:59 +01:00
andreas-unleash
d69ca0a508
ui flags replaced in index.html (#2617)
Signed-off-by: andreas-unleash <andreas@getunleash.ai>

<!-- 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! ❤️ -->
This PR puts the ui flags in the index.html in a meta tag. This makes
them accessible without logging in and allows us to track user signups
with invite links
## 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>
2022-12-07 14:31:27 +02:00
Fredrik Strand Oseberg
8fed007fe1
fix: update vercel proxy paths (#2623)
* Updates vercel proxy paths to match new deployment
2022-12-07 13:00:51 +01:00
Mateusz Kwasniewski
fee95475bd
UI adjustments change requests (#2622) 2022-12-07 12:52:17 +01:00
Nuno Góis
990b708632
fix: isPro check on change request configuration (#2610)
https://linear.app/unleash/issue/2-487/bug-change-request-badge-is-not-working-on-pro
Using the new `isPro()` from `useUiConfig()` seems to fix this in Pro,
correctly showing the premium feature info:


![image](https://user-images.githubusercontent.com/14320932/205958034-f412471a-c732-425a-bb14-64b62ea1e665.png)

The errors described in the issue should be fixed by the new
`useEnterpriseSWR`. See:
https://unleash-internal.slack.com/archives/C046LV6HH6W/p1670337216187539?thread_ts=1670331887.521059&cid=C046LV6HH6W
2022-12-07 10:23:19 +00:00
Nuno Góis
9accbcfa8b
Fix pro project role descriptions (#2612)
https://linear.app/unleash/issue/2-485/bug-pro-access-page-the-tooltip-on-the-roles-is-not-working

Fixes an issue where we would not show anything for project role
permissions since we're not serving that specific endpoint below
Enterprise level. This way we fallback to the access role descriptions,
which are also nice and informative:


![image](https://user-images.githubusercontent.com/14320932/205987327-def46ef2-4010-47dd-ba7d-5a264f0b547d.png)


PR also adds support for SWR options in ConditionalSWR and
EnterpriseSWR.
2022-12-07 10:22:42 +00:00
Mateusz Kwasniewski
c66daa0ba2
fix sort type (#2616) 2022-12-07 09:00:57 +01:00
renovate[bot]
8bbf0c4ade
chore(deps): update dependency @types/cors to v2.8.13 (#2614)
[![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/cors](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cors)
([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped)) |
[`2.8.12` ->
`2.8.13`](https://renovatebot.com/diffs/npm/@types%2fcors/2.8.12/2.8.13)
|
[![age](https://badges.renovateapi.com/packages/npm/@types%2fcors/2.8.13/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@types%2fcors/2.8.13/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@types%2fcors/2.8.13/compatibility-slim/2.8.12)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@types%2fcors/2.8.13/confidence-slim/2.8.12)](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:eyJjcmVhdGVkSW5WZXIiOiIzNC40OS4wIiwidXBkYXRlZEluVmVyIjoiMzQuNDkuMCJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-07 01:32:17 +00:00
dependabot[bot]
e4dc8d92e3
fix: Bump qs from 6.5.2 to 6.5.3 (#2613) 2022-12-06 23:10:33 +01:00
Mateusz Kwasniewski
95937a4538
adjusting mobile styles (#2604) 2022-12-06 17:01:14 +01:00
Mateusz Kwasniewski
c4f3ada0eb
POC: integration tests (#2422) 2022-12-06 15:28:33 +01:00
Nuno Góis
b976fee44b
feat: add plan checks to uiconfig (#2600)
Hopefully a cleaner and DRY way of checking for the current Unleash plan
level, which may help in cases like
https://github.com/Unleash/unleash/pull/2585#discussion_r1038138963
2022-12-06 13:19:19 +00:00
sjaanus
f4146bfc4b
Merge branch 'main' of https://github.com/Unleash/unleash 2022-12-06 15:05:50 +02:00
sjaanus
848ade9279
4.18.6 2022-12-06 15:03:26 +02:00
Fredrik Strand Oseberg
8f540f0698
Docs/change request beta docs (#2608)
<!-- 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! ❤️ -->

## 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. -->

This PR adds beta documentation for the change request feature. 

<!-- 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? -->

Co-authored-by: sjaanus <sellinjaanus@gmail.com>
2022-12-06 14:02:44 +01:00
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