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

7469 Commits

Author SHA1 Message Date
sjaanus
2139d8342a
Allow hiding environments from the feature overview screen fix (#2831) 2023-01-06 11:32:26 +02:00
Thomas Heartman
89c6c09db3
docs: add /docs redirects to _all_ redirect paths (#2839)
## What

For each defined doc redirect path (that doesn't start with `/docs/`),
this PR adds an additional redirect that starts with `/docs`. The rest
of the path is otherwise identical.

For instance, if we have a redirect that goes from `/user_guide/x`, then
this change will ensure that we also have redirect that goes from
`/docs/user_guide/x`.

## Why

As reported by Roman, we've had some 404s recently when people have
tried to access pages that used to exist (wayyyy back) and that used to
redirect.

The reason these redirects stopped working is that we changed the url
structure recently. Before then, the `createRedirects` function would go
and create redirects that started with `/docs/` for all the paths that
required it. However, now that we've changed the structure of the URLs,
a blanket implementation like that won't work anymore.

Luckily, though, we already have all the redirects for pages we have
moved (just not redirecting from the `/docs/...` paths), so we can map
over the paths and add the missing redirects.
2023-01-05 21:47:04 +01:00
Thomas Heartman
5fa73b929a
Docs(fix): fix broken link to sdk-generator ADR (#2838) 2023-01-05 14:50:47 +00:00
sjaanus
dc468430ce
Refactor makestyles 2 2 (#2827) 2023-01-05 16:23:40 +02:00
Mateusz Kwasniewski
5ac08e06d9
fix: when health is 0 we should not show 100 (#2833) 2023-01-05 15:14:27 +01:00
Gastón Fournier
711c867ccc
feat: wait for deps to be somewhat stable (#2768)
## About the changes
Some dependency updates we receive are recent releases with a low
adoption rate. It's fine to be early adopters but this can also
introduce unintended bugs. This PR adds a 7 days grace period before we
consider a dependency as ready to be upgraded. It doesn't guarantee its
stability but it improves it.

Ideally, I'd like to also use adoption and confidence to automatically
merge or delay the creation of the PR, but I haven't found a way of
doing that

It also protects us from:
> npm packages less than 72 hours (3 days) old can be unpublished

Documentation:
https://docs.renovatebot.com/configuration-options/#stabilitydays

### Examples

![image](https://user-images.githubusercontent.com/455064/209797881-6fb34546-9c76-44f6-a276-9d897daa1257.png)

![image](https://user-images.githubusercontent.com/455064/209797919-046bb577-4dc8-444e-8515-0b8e9a6cbcbf.png)
2023-01-05 12:45:48 +01:00
Gastón Fournier
29be130757
fix: enforce weight precision to 1 decimal (#2749)
## About the changes
According to our docs, we only support up to 1 decimal place for
weights. This is to use integers to represent the percentages (we divide
them by 10) and supporting more decimals results in bad maths due to
floating point arithmetics.

This PRs adds Frontend and Backend validations to enforce this
restriction

Closes #2222

## Discussion points
Should we reconsider supporting more decimal places, that door remains
open, but for now we'll just adhere to our documentation because that
change would require some development.
2023-01-05 12:39:18 +01:00
Tymoteusz Czech
1653b0449a
Orval generator POC (#2724)
for #2715
2023-01-05 11:57:53 +01:00
Gastón Fournier
58dd09f3e1
fix: export features with variants event when feature is disabled (#2824)
## About the changes
When exporting features one is normally also interested in disabled
features, so they are also included in the export file, while the
variants are not. I do not see a good reason for that, so this PR
removes the check and exports the variants then as well.
I could also add an option as well, but as long as there is no good
reason for ignoring the variants I would just export them with the
features.

This PR adds tests on #2719

Closes #2719

Co-authored-by: Martin Joehren <martin.joehren@esailors.de>
2023-01-05 12:30:07 +02:00
Tymoteusz Czech
36f849e9e9
docs: Orval ADR (#2818)
https://linear.app/unleash/issue/1-537/openapi-generator-adr
2023-01-05 10:24:41 +00:00
Thomas Heartman
7cff6336c1
docs: Use Go readme (#2816)
# PR 1: add remote content plugin and rust readme

## What

This PR does a few connected things:

1. It adds the ["docusaurus-plugin-remote-content" package](https://github.com/rdilweb/docusaurus-plugin-remote-content).

2. It adds configuration to make it work with Readmes found on GitHub.

3. It adds the Rust SDK's readme (replacing the link we used to have) as a proof of concept on how to do it.

## Why

With documentation split between GitHub readmes and the official docs, it's hard to keep everything up to date and in sync. It's also quite confusing that some information is only available in some places, but not in others. 

We've talked about auto-including readmes from GitHub for a while, so here's a proof of concept (finally) 🥳 

The intention is to get this merged and then to migrate the other SDK docs one by one, ensuring that everything in the documentation is also in the readme (so that no info is lost). 

## Discussion points

### Generation directory

The current generation method generates the files into `/reference/sdks/<sdk name>`. I think this works for now, but it means it adds auto-generated files into a directory that you can't ignore (at least not yet). 

We could instead generate them into `/generated/sdks` and update the slugs so that they still match the expected pattern. 

However, this would make the sidebar a little harder to work with (for now). That said, there may be ways around it. It's worth exploring.

### Generation method

By default, this plugin will generate files whenever you build. That (probably) means that you need an internet connection _and_ that you'll end up with a bunch of untracked files.

An option is to only generate the files "manually" and commit them to the repo. That would allow you to build the project without an internet connection and would also remove the need for ignoring the files. We could automate the generation if we wanted to. 

## Preview / Screenies

Visit [/reference/sdks/rust](https://unleash-docs-git-docs-include-sdk-readmes-unleash-team.vercel.app/reference/sdks/rust) in the preview to see what it looks like live. 

![image](https://user-images.githubusercontent.com/17786332/210373446-784b7e69-0f36-4e9e-874a-2b06b863b603.png)

# PR 2: add go readme

This PR changes the docs generation to use the Go SDK's GitHub readme
for the SDK docs instead of a separate document.

## What

The changes in this PR are:

- Delete the existing Go SDK documentation. All the content in this
guide already exists in the Go readme.
-   Add the Go SDK to the list of auto-generated readme docs
- Move the readme-related code into a separate module, `readme-fns.js`
(I'm not bullish about the file name: we can change it if you have
suggestions)
- Add a note to the top of all generated readmes saying you'll need an
API url and an API token. The note also links you to the relevant
reference and how-to docs.

## Why

Having two different bits of documentation for the same SDK is
troublesome. By only having the data in one place, we can avoid it going
out of sync and getting stale.
2023-01-05 09:47:49 +00:00
Mateusz Kwasniewski
674e36b40b
Styled components batch4.1 (#2812)
Co-authored-by: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com>
2023-01-05 09:45:39 +01:00
Fredrik Strand Oseberg
94c90b7731
Refactor/make styles batch 6 part 3 (#2823)
Last set of components refactoring for batch 6
2023-01-05 09:45:17 +01:00
Nuno Góis
005e4b6858
feat: service accounts (UI) (#2734)
https://linear.app/unleash/issue/2-541/ui-for-service-accounts

Adds basic CRUD UI to Service Accounts - New tab/page, table,
create/edit form in a modal, token dialog, delete dialog, actions cell.
2023-01-05 08:11:28 +00:00
renovate[bot]
878560e2f1
chore(deps): update dependency babel-loader to v9.1.2 (#2826)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

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

---

### Release Notes

<details>
<summary>babel/babel-loader</summary>

###
[`v9.1.2`](https://togithub.com/babel/babel-loader/releases/tag/v9.1.2)

[Compare
Source](https://togithub.com/babel/babel-loader/compare/v9.1.1...v9.1.2)

9.1.1 was a broken release, it didn't include all the commits.

#### Dependencies updates

- Bump qs from 6.5.2 to 6.5.3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/babel/babel-loader/pull/977](https://togithub.com/babel/babel-loader/pull/977)
- Bump json5 from 2.2.1 to 2.2.3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/babel/babel-loader/pull/980](https://togithub.com/babel/babel-loader/pull/980)

#### Misc

- GitHub Workflows security hardening by
[@&#8203;sashashura](https://togithub.com/sashashura) in
[https://github.com/babel/babel-loader/pull/976](https://togithub.com/babel/babel-loader/pull/976)

#### New Contributors

- [@&#8203;sashashura](https://togithub.com/sashashura) made their first
contribution in
[https://github.com/babel/babel-loader/pull/976](https://togithub.com/babel/babel-loader/pull/976)

**Full Changelog**:
https://github.com/babel/babel-loader/compare/v9.1.0...v9.1.2

###
[`v9.1.1`](https://togithub.com/babel/babel-loader/compare/v9.1.0...v9.1.1)

[Compare
Source](https://togithub.com/babel/babel-loader/compare/v9.1.0...v9.1.1)

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-05 01:53:41 +00:00
renovate[bot]
157b54d420
chore(deps): update dependency @babel/core to v7.20.12 (#2825)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@babel/core](https://babel.dev/docs/en/next/babel-core)
([source](https://togithub.com/babel/babel)) | [`7.20.7` ->
`7.20.12`](https://renovatebot.com/diffs/npm/@babel%2fcore/7.20.7/7.20.12)
|
[![age](https://badges.renovateapi.com/packages/npm/@babel%2fcore/7.20.12/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@babel%2fcore/7.20.12/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@babel%2fcore/7.20.12/compatibility-slim/7.20.7)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@babel%2fcore/7.20.12/confidence-slim/7.20.7)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>babel/babel</summary>

###
[`v7.20.12`](https://togithub.com/babel/babel/blob/HEAD/CHANGELOG.md#v72012-2023-01-04)

[Compare
Source](https://togithub.com/babel/babel/compare/v7.20.7...v7.20.12)

##### 🐛 Bug Fix

-   `babel-traverse`
- [#&#8203;15224](https://togithub.com/babel/babel/pull/15224) Fix
`TaggedTemplateLiteral` evaluation
([@&#8203;nmn](https://togithub.com/nmn))
- `babel-helper-create-class-features-plugin`,
`babel-plugin-proposal-class-properties`
- [#&#8203;15312](https://togithub.com/babel/babel/pull/15312) fix:
`delete this` in static class properties initialization
([@&#8203;SuperSodaSea](https://togithub.com/SuperSodaSea))

##### 💅 Polish

-   `babel-traverse`
- [#&#8203;15313](https://togithub.com/babel/babel/pull/15313) Implement
support for evaluating computed properties.
([@&#8203;JBYoshi](https://togithub.com/JBYoshi))

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-04 22:44:01 +00:00
sjaanus
d1054a3de5
Refactor makestyles 2-1 (#2820) 2023-01-04 21:01:18 +02:00
Tymoteusz Czech
f2eb96000e
fix: segment delete confirmation double dialog flash (#2819) 2023-01-04 15:58:30 +01:00
Nuno Góis
4005bb8a8b
feat: service accounts (UI - extract PAT form) (#2733)
https://linear.app/unleash/issue/2-540/extract-pat-form

By refactoring the UI logic and extracting the PAT form we can use the
same component on our service account creation form.
2023-01-04 14:51:30 +00:00
Nuno Góis
11f4435a9e
feat: service accounts (hooks) (#2732)
https://linear.app/unleash/issue/2-539/hooks-for-service-accounts

Creates and adapts hooks for the Service Accounts feature, to be used by
the FE.
2023-01-04 14:05:40 +00:00
Ivar Conradi Østhus
3a8107ce6e
fix: state-service should always keep api keys (#2552)
We have experienced side-effects where the import was unexpected and
resulted in environments thought to be removed. This had the unexpected
side-effect of also deleting API keys for some environments not part of
the import file.

This commit removes the ability of the state-service to mutate api keys
directly. There is no compelling reasons why we should remove API keys
as part of an import query.

Co-authored-by: Gastón Fournier <gaston@getunleash.ai>
Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2023-01-04 11:24:34 +00:00
Gastón Fournier
bf77182ca7
feat: limit the amount of results coming from Prometheus (#2776)
## About the changes
To avoid showing too much data in the traffic screen, limit the number
of results to `topk`.

## Discussion points
Top 10 is a rule of thumb, but maybe we could do top 25. Until we gather
more data, I believe this should be good enough
2023-01-04 11:00:04 +01:00
Tymoteusz Czech
111dddd746
fix: archived feature layout (#2713) 2023-01-04 09:24:39 +00:00
sjaanus
45652f6bf9
Makestyles 7-1 (#2813) 2023-01-04 11:17:13 +02:00
renovate[bot]
0af162a8e6
chore(deps): update dependency eslint-config-prettier to v8.6.0 (#2795)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[eslint-config-prettier](https://togithub.com/prettier/eslint-config-prettier)
| [`8.5.0` ->
`8.6.0`](https://renovatebot.com/diffs/npm/eslint-config-prettier/8.5.0/8.6.0)
|
[![age](https://badges.renovateapi.com/packages/npm/eslint-config-prettier/8.6.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/eslint-config-prettier/8.6.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/eslint-config-prettier/8.6.0/compatibility-slim/8.5.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/eslint-config-prettier/8.6.0/confidence-slim/8.5.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>prettier/eslint-config-prettier</summary>

###
[`v8.6.0`](https://togithub.com/prettier/eslint-config-prettier/blob/HEAD/CHANGELOG.md#Version-860-2023-01-02)

[Compare
Source](https://togithub.com/prettier/eslint-config-prettier/compare/v8.5.0...v8.6.0)

- Added: \[vue/multiline-ternary]. Thanks to
[@&#8203;xcatliu](https://togithub.com/xcatliu)!

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-04 03:30:02 +00:00
renovate[bot]
52882e40e9
chore(deps): update dependency vite to v4.0.4 (#2810)
[![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)) | [`4.0.3` ->
`4.0.4`](https://renovatebot.com/diffs/npm/vite/4.0.3/4.0.4) |
[![age](https://badges.renovateapi.com/packages/npm/vite/4.0.4/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/vite/4.0.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/vite/4.0.4/compatibility-slim/4.0.3)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/vite/4.0.4/confidence-slim/4.0.3)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

###
[`v4.0.4`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small404-2023-01-03-small)

[Compare
Source](https://togithub.com/vitejs/vite/compare/v4.0.3...v4.0.4)

- fix: importmap should insert before module preload link
([#&#8203;11492](https://togithub.com/vitejs/vite/issues/11492))
([25c64d7](https://togithub.com/vitejs/vite/commit/25c64d7)), closes
[#&#8203;11492](https://togithub.com/vitejs/vite/issues/11492)
- fix: server.host with ipv6 missed \[] (fix
[#&#8203;11466](https://togithub.com/vitejs/vite/issues/11466))
([#&#8203;11509](https://togithub.com/vitejs/vite/issues/11509))
([2c38bae](https://togithub.com/vitejs/vite/commit/2c38bae)), closes
[#&#8203;11466](https://togithub.com/vitejs/vite/issues/11466)
[#&#8203;11509](https://togithub.com/vitejs/vite/issues/11509)
- fix: stop considering parent URLs as public file
([#&#8203;11145](https://togithub.com/vitejs/vite/issues/11145))
([568a014](https://togithub.com/vitejs/vite/commit/568a014)), closes
[#&#8203;11145](https://togithub.com/vitejs/vite/issues/11145)
- fix(build): invalidate chunk hash when css changed
([#&#8203;11475](https://togithub.com/vitejs/vite/issues/11475))
([7a97a04](https://togithub.com/vitejs/vite/commit/7a97a04)), closes
[#&#8203;11475](https://togithub.com/vitejs/vite/issues/11475)
- fix(cli): ctrl+C no longer kills processes
([#&#8203;11434](https://togithub.com/vitejs/vite/issues/11434))
([#&#8203;11518](https://togithub.com/vitejs/vite/issues/11518))
([718fc1d](https://togithub.com/vitejs/vite/commit/718fc1d)), closes
[#&#8203;11434](https://togithub.com/vitejs/vite/issues/11434)
[#&#8203;11518](https://togithub.com/vitejs/vite/issues/11518)
- fix(cli): revert ctrl+C no longer kills processes
([#&#8203;11434](https://togithub.com/vitejs/vite/issues/11434))
([#&#8203;11518](https://togithub.com/vitejs/vite/issues/11518))
([#&#8203;11562](https://togithub.com/vitejs/vite/issues/11562))
([3748acb](https://togithub.com/vitejs/vite/commit/3748acb)), closes
[#&#8203;11434](https://togithub.com/vitejs/vite/issues/11434)
[#&#8203;11518](https://togithub.com/vitejs/vite/issues/11518)
[#&#8203;11562](https://togithub.com/vitejs/vite/issues/11562)
- fix(optimizer): check .vite/deps directory existence before removing
([#&#8203;11499](https://togithub.com/vitejs/vite/issues/11499))
([1b043f9](https://togithub.com/vitejs/vite/commit/1b043f9)), closes
[#&#8203;11499](https://togithub.com/vitejs/vite/issues/11499)
- fix(ssr): emit js sourcemaps for ssr builds
([#&#8203;11343](https://togithub.com/vitejs/vite/issues/11343))
([f12a1ab](https://togithub.com/vitejs/vite/commit/f12a1ab)), closes
[#&#8203;11343](https://togithub.com/vitejs/vite/issues/11343)
- chore: update license
([#&#8203;11476](https://togithub.com/vitejs/vite/issues/11476))
([3d346c0](https://togithub.com/vitejs/vite/commit/3d346c0)), closes
[#&#8203;11476](https://togithub.com/vitejs/vite/issues/11476)
- chore(deps): update dependency
[@&#8203;rollup/plugin-json](https://togithub.com/rollup/plugin-json) to
v6 ([#&#8203;11553](https://togithub.com/vitejs/vite/issues/11553))
([3647d07](https://togithub.com/vitejs/vite/commit/3647d07)), closes
[#&#8203;11553](https://togithub.com/vitejs/vite/issues/11553)

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-04 00:24:06 +00:00
renovate[bot]
baff943763
chore(deps): update dependency husky to v8.0.3 (#2803)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

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

---

### Release Notes

<details>
<summary>typicode/husky</summary>

### [`v8.0.3`](https://togithub.com/typicode/husky/releases/tag/v8.0.3)

[Compare
Source](https://togithub.com/typicode/husky/compare/v8.0.2...v8.0.3)

- fix: add git not installed message
[#&#8203;1208](https://togithub.com/typicode/husky/issues/1208)

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-03 20:59:24 +00:00
Nuno Góis
28fbcf69ec
feat: enterprise service accounts (BE) (#2806)
https://linear.app/unleash/issue/2-537/back-end-for-service-accounts

Supersedes https://github.com/Unleash/unleash/pull/2731
2023-01-03 15:15:32 +00:00
Fredrik Strand Oseberg
093156f5f5
Refactor/make styles batch 6 part 2 (#2811)
Adds another batch of refactored components
2023-01-03 16:15:22 +01:00
sjaanus
b631618532
Makestyles refactor #7/1 (#2805) 2023-01-03 16:30:59 +02:00
Mateusz Kwasniewski
cc1512cd44
refactor: styled component in header (#2808) 2023-01-03 14:52:10 +01:00
sjaanus
88d649d239
Allow hiding environments from the feature overview screen (#2727) 2023-01-03 15:41:34 +02:00
Thomas Heartman
c2a3872386
Fix(typo): Fix "login"/"log in", "logout"/"log out" issues (#2807)
## What

This change updates some places in the docs where we use the terms
"login" and "logout" incorrectly.

A "login" is a noun, typically referring to the set of credentials you
need to _log in_ to a service. The verb form, the act of signing in, is
written in two words: to "log in".

A similar logic applies to "logout" and "log out", although I don't find
the term "logout" in my dictionary. However, I think it makes sense to
talk about "logout requests" (and I see references to logout in other
services and documentation), so I'm happy to use that as a noun.
Regardless, the act of logging out is to "log out".
2023-01-03 13:40:03 +01:00
Thomas Heartman
01b05fb0d6
docs: fix android admonition formatting (#2800)
This change fixes a formatting issue which causes the entire document to
be rendered inside of the admonition.
2023-01-03 13:14:45 +01:00
Mateusz Kwasniewski
82a4191e1d
added flutter documentation (#2736) 2023-01-03 13:07:01 +01:00
Mateusz Kwasniewski
644ec69a13
refactor: extract styled components (#2798) 2023-01-03 12:41:48 +01:00
Thomas Heartman
6b5e25b191
Docs(fix): broken links (#2797)
This change fixes some broken links in the "about the docs" document.
Most of these links go to concrete documents and have been replaced with
their appropriate relative file links. The few links that go to
auto-generated pages have been corrected.

Unfortunately, there does not seem to be an easy way to link safely to
generated pages.
2023-01-03 11:27:45 +01:00
Thomas Heartman
d2245583ec
Docs: add missing words "connect to" 2023-01-03 11:27:06 +01:00
Thomas Heartman
983d3a9513
docs: clarify node sdk instructions wrt envs and tokens (#2799)
## What

This change does two things:

It **removes the `environment` option** from the initialization
examples. This option is deprecated and only causes confusion. There's
no good reason to have it lying around in the examples.

It also **updates the explanation of the code samples**, telling you
that you need to generate an API key and linking you to the reference
doc and how to guide.

Relates to: #2782.
2023-01-03 11:26:17 +01:00
sjaanus
bae623d69e
Fix joi failing starting from 17.7.0 release (#2790) 2023-01-03 11:50:00 +02:00
Thomas Heartman
3ac8a63f67
chore: remove constraints announcements from readme and docs (#2678)
## What

This change removes the Unleash 4.16 constraints announcement from
readme and from the docs.

## Why

It feels like 4.16 has been out for long enough now. Gearing up for
version 4.19, it may be time to take this away.

## Discussion

However, open-sourcing constraints was (and still is) a big deal, so it
might be worth keeping the banner around, but maybe in a more subdued
format? Something like "did you know Unleash's constraints feature is
open source, now?".
2023-01-03 10:11:04 +01:00
Fredrik Strand Oseberg
241ede8ca9
Refactor/make styles batch 6 (#2793)
Refactors a number of components in the frontend away from deprecated makeStyles
2023-01-03 09:24:55 +01:00
Mateusz Kwasniewski
231b26995c
refactor: batch of changes for styled components (#2791) 2023-01-03 09:20:26 +01:00
renovate[bot]
5fe16207db
chore(deps): update typescript-eslint monorepo to v5.48.0 (#2796)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/typescript-eslint)
| [`5.47.1` ->
`5.48.0`](https://renovatebot.com/diffs/npm/@typescript-eslint%2feslint-plugin/5.47.1/5.48.0)
|
[![age](https://badges.renovateapi.com/packages/npm/@typescript-eslint%2feslint-plugin/5.48.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@typescript-eslint%2feslint-plugin/5.48.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@typescript-eslint%2feslint-plugin/5.48.0/compatibility-slim/5.47.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@typescript-eslint%2feslint-plugin/5.48.0/confidence-slim/5.47.1)](https://docs.renovatebot.com/merge-confidence/)
|
|
[@typescript-eslint/parser](https://togithub.com/typescript-eslint/typescript-eslint)
| [`5.47.1` ->
`5.48.0`](https://renovatebot.com/diffs/npm/@typescript-eslint%2fparser/5.47.1/5.48.0)
|
[![age](https://badges.renovateapi.com/packages/npm/@typescript-eslint%2fparser/5.48.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@typescript-eslint%2fparser/5.48.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@typescript-eslint%2fparser/5.48.0/compatibility-slim/5.47.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@typescript-eslint%2fparser/5.48.0/confidence-slim/5.47.1)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>typescript-eslint/typescript-eslint
(@&#8203;typescript-eslint/eslint-plugin)</summary>

###
[`v5.48.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#&#8203;5480-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5471v5480-2023-01-02)

[Compare
Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.47.1...v5.48.0)

##### Features

- **eslint-plugin:** specify which method is unbound and added test case
([#&#8203;6281](https://togithub.com/typescript-eslint/typescript-eslint/issues/6281))
([cf3ffdd](cf3ffdd49a))

####
[5.47.1](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.47.0...v5.47.1)
(2022-12-26)

##### Bug Fixes

- **ast-spec:** correct some incorrect ast types
([#&#8203;6257](https://togithub.com/typescript-eslint/typescript-eslint/issues/6257))
([0f3f645](0f3f64571e))
- **eslint-plugin:** \[member-ordering] correctly invert
optionalityOrder
([#&#8203;6256](https://togithub.com/typescript-eslint/typescript-eslint/issues/6256))
([ccd45d4](ccd45d4a99))

</details>

<details>
<summary>typescript-eslint/typescript-eslint
(@&#8203;typescript-eslint/parser)</summary>

###
[`v5.48.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#&#8203;5480-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5471v5480-2023-01-02)

[Compare
Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.47.1...v5.48.0)

**Note:** Version bump only for package
[@&#8203;typescript-eslint/parser](https://togithub.com/typescript-eslint/parser)

####
[5.47.1](https://togithub.com/typescript-eslint/typescript-eslint/compare/v5.47.0...v5.47.1)
(2022-12-26)

**Note:** Version bump only for package
[@&#8203;typescript-eslint/parser](https://togithub.com/typescript-eslint/parser)

</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 these
updates 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:eyJjcmVhdGVkSW5WZXIiOiIzNC43NC4yIiwidXBkYXRlZEluVmVyIjoiMzQuNzQuMiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-03 01:45:14 +00:00
renovate[bot]
7150ff1b13
chore(deps): update dependency eslint to v8.31.0 (#2787)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

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

---

### Release Notes

<details>
<summary>eslint/eslint</summary>

### [`v8.31.0`](https://togithub.com/eslint/eslint/releases/tag/v8.31.0)

[Compare
Source](https://togithub.com/eslint/eslint/compare/v8.30.0...v8.31.0)

##### Features

-
[`52c7c73`](52c7c73c05)
feat: check assignment patterns in no-underscore-dangle
([#&#8203;16693](https://togithub.com/eslint/eslint/issues/16693))
(Milos Djermanovic)
-
[`b401cde`](b401cde47d)
feat: add options to check destructuring in no-underscore-dangle
([#&#8203;16006](https://togithub.com/eslint/eslint/issues/16006))
(Morten Kaltoft)
-
[`30d0daf`](30d0daf55e)
feat: group properties with values in parentheses in `key-spacing`
([#&#8203;16677](https://togithub.com/eslint/eslint/issues/16677))
(Francesco Trotta)

##### Bug Fixes

-
[`35439f1`](35439f1572)
fix: correct syntax error in `prefer-arrow-callback` autofix
([#&#8203;16722](https://togithub.com/eslint/eslint/issues/16722))
(Francesco Trotta)
-
[`87b2470`](87b247058e)
fix: new instance of FlatESLint should load latest config file version
([#&#8203;16608](https://togithub.com/eslint/eslint/issues/16608))
(Milos Djermanovic)

##### Documentation

-
[`4339dc4`](4339dc462d)
docs: Update README (GitHub Actions Bot)
-
[`4e4049c`](4e4049c5fa)
docs: optimize code block structure
([#&#8203;16669](https://togithub.com/eslint/eslint/issues/16669)) (Sam
Chen)
-
[`54a7ade`](54a7ade5d8)
docs: do not escape code blocks of formatters examples
([#&#8203;16719](https://togithub.com/eslint/eslint/issues/16719)) (Sam
Chen)
-
[`e5ecfef`](e5ecfefa1c)
docs: Add function call example for no-undefined
([#&#8203;16712](https://togithub.com/eslint/eslint/issues/16712))
(Elliot Huffman)
-
[`a3262f0`](a3262f0a63)
docs: Add mastodon link
([#&#8203;16638](https://togithub.com/eslint/eslint/issues/16638))
(Amaresh S M)
-
[`a14ccf9`](a14ccf91af)
docs: clarify files property
([#&#8203;16709](https://togithub.com/eslint/eslint/issues/16709)) (Sam
Chen)
-
[`3b29eb1`](3b29eb14e0)
docs: fix npm link
([#&#8203;16710](https://togithub.com/eslint/eslint/issues/16710))
(Abdullah Osama)
-
[`a638673`](a638673ee6)
docs: fix search bar focus on `Esc`
([#&#8203;16700](https://togithub.com/eslint/eslint/issues/16700))
(Shanmughapriyan S)
-
[`f62b722`](f62b722251)
docs: country flag missing in windows
([#&#8203;16698](https://togithub.com/eslint/eslint/issues/16698))
(Shanmughapriyan S)
-
[`4d27ec6`](4d27ec6019)
docs: display zh-hans in the docs language switcher
([#&#8203;16686](https://togithub.com/eslint/eslint/issues/16686))
(Percy Ma)
-
[`8bda20e`](8bda20e827)
docs: remove manually maintained anchors
([#&#8203;16685](https://togithub.com/eslint/eslint/issues/16685))
(Percy Ma)
-
[`b68440f`](b68440ff2b)
docs: User Guide Getting Started expansion
([#&#8203;16596](https://togithub.com/eslint/eslint/issues/16596)) (Ben
Perlmutter)

##### Chores

-
[`65d4e24`](65d4e24c36)
chore: Upgrade
[@&#8203;eslint/eslintrc](https://togithub.com/eslint/eslintrc)[@&#8203;1](https://togithub.com/1).4.1
([#&#8203;16729](https://togithub.com/eslint/eslint/issues/16729))
(Brandon Mills)
-
[`8d93081`](8d93081a71)
chore: fix CI failure
([#&#8203;16721](https://togithub.com/eslint/eslint/issues/16721)) (Sam
Chen)
-
[`8f17247`](8f17247a93)
chore: Set up automatic updating of README
([#&#8203;16717](https://togithub.com/eslint/eslint/issues/16717))
(Nicholas C. Zakas)
-
[`4cd87cb`](4cd87cb3c5)
ci: bump actions/stale from 6 to 7
([#&#8203;16713](https://togithub.com/eslint/eslint/issues/16713))
(dependabot\[bot])
-
[`fd20c75`](fd20c75b10)
chore: sort package.json scripts in alphabetical order
([#&#8203;16705](https://togithub.com/eslint/eslint/issues/16705))
(Darius Dzien)
-
[`10a5c78`](10a5c78393)
chore: update ignore patterns in `eslint.config.js`
([#&#8203;16678](https://togithub.com/eslint/eslint/issues/16678))
(Milos Djermanovic)

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-02 22:32:10 +00:00
renovate[bot]
84f69df050
chore(deps): update dependency immer to v9.0.17 (#2789)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

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

---

### Release Notes

<details>
<summary>immerjs/immer</summary>

### [`v9.0.17`](https://togithub.com/immerjs/immer/releases/tag/v9.0.17)

[Compare
Source](https://togithub.com/immerjs/immer/compare/v9.0.16...v9.0.17)

##### Bug Fixes

- special case NaN in setter
([#&#8203;912](https://togithub.com/immerjs/immer/issues/912))
([5721bb7](5721bb7cfa))

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-02 18:48:05 +00:00
sjaanus
8a8cd1bf27
UI Flags cleanup (#2778) 2023-01-02 15:41:43 +02:00
sjaanus
c62d775933
Fix padding for tabs in admin section (#2772)
Tabs from admin section were missing paddings left-right.
This PR adds these paddings.
2023-01-02 15:40:37 +02:00
GitHub Actions Bot
9e40cfd4c7 4.20.0-beta.1 2023-01-02 11:49:45 +00:00
Nuno Góis
88004a6138
feat: allows creation of PATs for other users (#2718)
https://linear.app/unleash/issue/2-530/api-allow-creation-of-pats-for-other-users


![image](https://user-images.githubusercontent.com/14320932/208720680-5d5ccee7-1972-4f5b-8024-3a69d50a571f.png)

Adds and takes into account the following permissions:
 - **READ_USER_PAT**;
 - **CREATE_USER_PAT**;
 - **DELETE_USER_PAT**;
 
 API only, will make some exploration on UI soon.

Co-authored-by: Gastón Fournier <gaston@getunleash.ai>
2023-01-02 10:49:57 +00:00