Christopher Kolstad
e9d9db17fe
feat: Adding Project access requires same role ( #6270 )
...
In order to prevent users from being able to assign roles/permissions
they don't have, this PR adds a check that the user performing the
action either is Admin, Project owner or has the same role they are
trying to grant/add.
This addAccess method is only used from Enterprise, so there will be a
separate PR there, updating how we return the roles list for a user, so
that our frontend can only present the roles a user is actually allowed
to grant.
This adds the validation to the backend to ensure that even if the
frontend thinks we're allowed to add any role to any user here, the
backend can be smart enough to stop it.
We should still update frontend as well, so that it doesn't look like we
can add roles we won't be allowed to.
2024-02-20 15:56:53 +01:00
Ivar Conradi Østhus
4857a73621
fix: upgrade vite to v5.1.3 ( #6282 )
2024-02-20 13:50:06 +00:00
Christopher Kolstad
7f5d3df59c
docs: add ADR for logging with error object ( #6249 )
...
I've held an internal knowledge sharing session on this already. If
someone can think of a better phrasing for the background, I'm all ears.
I think it's just nice to have this documented, so people remember that
our logging framework already has a good way to format errors when you
use the API `logger.error("<message>", e)`
2024-02-20 13:41:33 +00:00
Gastón Fournier
dd87eabefc
chore: upgrade vite dependency ( #6281 )
...
## About the changes
Just `cd frontend && yarn upgrade vite` to solve
https://github.com/Unleash/unleash/security/dependabot/119
2024-02-20 13:53:58 +01:00
Gastón Fournier
7b8c1f0d04
chore: regenerate yarn.lock of docker folder ( #6280 )
...
## About the changes
Regenerate yarn.lock from docker folder: `rm cloud/yarn.lock && cd cloud
&& yarn install`
Resolves: https://github.com/Unleash/unleash/security/dependabot/120
2024-02-20 12:33:41 +01:00
Ivar Conradi Østhus
ef3f7dae55
fix: upgrade nodemailer to v6.9.9 ( #6278 )
2024-02-20 11:38:26 +01:00
Gastón Fournier
9c156ac31f
chore: avoid printing out warnings from known frontend proxies ( #6271 )
...
## About the changes
Our frontend API creates new instances of unleash-client-proxy. Because
this is by-design, we don't want to log a warning that was designed to
warn users about potential misconfiguration of Unleash Proxy.
As an extra, I'm renaming ProxyController to FrontendAPIController to
better reflect the intent of this controller.
2024-02-20 11:27:21 +01:00
Thomas Heartman
a468c55fc7
feat: add environment selection to connected instances screen ( #6277 )
...
This PR adds an environment selector to the connected instances table,
using query parameters to store the environment selection.
I'm still using the old data to populate this, so it'll show you all
data when nothing is selected and only filtered data when you select an
env. There is no way to unselect an env at the moment: I'm not sure
that's something we'll need to do, so we'll handle that when we know.
I imagine in the future, we might update the component to make separate
calls per environments and a call to determine which envs are available,
but for now, this will do just fine.
<img width="848" alt="image"
src="https://github.com/Unleash/unleash/assets/17786332/ef7562d5-c0ab-48c6-ba43-7c0007719ab4 ">
2024-02-20 12:14:44 +02:00
Gastón Fournier
a9cd81a61c
chore: pin ip library ( #6276 )
...
## About the changes
Add resolution to IP library so transitive dependencies also use the
latest library
2024-02-20 10:37:27 +01:00
Thomas Heartman
d967d4adb0
feat: add tabs ( #6267 )
...
This PR adds a new file "Application.tsx", which is analogous to the
existing Project.tsx file in that it contains the base layout for the
application page, as well as tabs pointing to sub pages. Currently, the
overview tab uses a paragraph with some fallback text, while the
connected instances table displays the instances table.
I have mostly copied the existing ApplicationEdit component and used
that as a base, assuming that we'll delete that component when we're
done with this.
<img width="1449" alt="image"
src="https://github.com/Unleash/unleash/assets/17786332/ac574a83-3cf4-4de5-a4de-188575074ecb ">
2024-02-20 17:32:33 +08:00
Nuno Góis
7e6a3c7e69
fix: clickable names in inc wh and action tables ( #6275 )
...
https://linear.app/unleash/issue/2-1954/make-names-clickable-in-actions-and-incoming-webhooks
Makes names clickable in the incoming webhook and action tables. When
clicked, they open the edit form for that resource.
![image](https://github.com/Unleash/unleash/assets/14320932/973f38c0-2603-4cbf-9352-90ddfe0b6e3f )
![image](https://github.com/Unleash/unleash/assets/14320932/ff733899-b86a-494a-8d2c-65d53e19a356 )
2024-02-20 09:28:00 +00:00
renovate[bot]
86b9ba79d7
chore(deps): update dependency node to v18.19.1 ( #6274 )
...
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Update | Change |
|---|---|---|
| [node](https://nodejs.org )
([source](https://togithub.com/nodejs/node )) | patch | `18.19.0` ->
`18.19.1` |
---
### Release Notes
<details>
<summary>nodejs/node (node)</summary>
###
[`v18.19.1`](https://togithub.com/nodejs/node/compare/v18.19.0...v18.19.1 )
[Compare
Source](https://togithub.com/nodejs/node/compare/v18.19.0...v18.19.1 )
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "after 7pm every weekday,before 5am
every weekday" in timezone Europe/Madrid, 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://developer.mend.io/github/Unleash/unleash ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMDAuMCIsInVwZGF0ZWRJblZlciI6IjM3LjIwMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-20 01:16:03 +00:00
renovate[bot]
5cb691e4ea
chore(deps): update dependency @types/node to v18.19.15 ( #6273 )
...
[![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/tree/HEAD/types/node ))
| [`18.19.14` ->
`18.19.15`](https://renovatebot.com/diffs/npm/@types%2fnode/18.19.14/18.19.15 )
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode/18.19.15?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode/18.19.15?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode/18.19.14/18.19.15?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode/18.19.14/18.19.15?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Configuration
📅 **Schedule**: Branch creation - "after 7pm every weekday,before 5am
every weekday" in timezone Europe/Madrid, 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://developer.mend.io/github/Unleash/unleash ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMDAuMCIsInVwZGF0ZWRJblZlciI6IjM3LjIwMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-19 21:16:41 +00:00
renovate[bot]
c3db90d8c4
chore(deps): update dependency @types/semver to v7.5.7 ( #6272 )
...
[![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/semver](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/semver )
([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/semver ))
| [`7.5.6` ->
`7.5.7`](https://renovatebot.com/diffs/npm/@types%2fsemver/7.5.6/7.5.7 )
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fsemver/7.5.7?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fsemver/7.5.7?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fsemver/7.5.6/7.5.7?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fsemver/7.5.6/7.5.7?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Configuration
📅 **Schedule**: Branch creation - "after 7pm every weekday,before 5am
every weekday" in timezone Europe/Madrid, 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://developer.mend.io/github/Unleash/unleash ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMDAuMCIsInVwZGF0ZWRJblZlciI6IjM3LjIwMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-19 19:28:06 +00:00
Ivar Conradi Østhus
851b3db39a
docs: tutorial on node-sdk with aws lambda ( #6258 )
...
This is a docs tutorial on how to use the Unleash Node SDK in an AWS
Lambda.
(Peer reviewed outside of Git.)
2024-02-19 17:29:10 +01:00
andreas-unleash
f71badd255
feat: dashboard project filtering ( #6259 )
...
Adds the same project selector Autocomplete as we use in the playground.
Implements the filtering
Closes: #
[1-2036](https://linear.app/unleash/issue/1-2036/api-project-filtering )
<img width="1508" alt="Screenshot 2024-02-16 at 15 57 24"
src="https://github.com/Unleash/unleash/assets/104830839/4490e43c-17db-41b6-ba75-e7b0f2df0522 ">
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2024-02-19 16:28:03 +02:00
Nuno Góis
9b980bb212
fix: small ui/ux adjustments to the actions form ( #6269 )
...
Small UI/UX adjustments to the actions form after aligning.
![image](https://github.com/Unleash/unleash/assets/14320932/5ededf9c-af54-4628-8fb3-0fcc6afc87dc )
2024-02-19 13:22:18 +00:00
Gastón Fournier
a007ddd5df
Revert "chore(deps): update dependency husky to v9" ( #6268 )
...
Reverts Unleash/unleash#6232
Husky
- Transitioned to `ESM` for module usage.
- Dropped support for Node 14 and 16.
I believe the first is causing an issue with our build. I tried fixing
this but didn't succeed, so I'm reverting
2024-02-19 12:42:45 +01:00
renovate[bot]
34ecc923cb
chore(deps): update dependency husky to v9 ( #6232 )
...
[![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://togithub.com/typicode/husky ) | [`8.0.3` ->
`9.0.11`](https://renovatebot.com/diffs/npm/husky/8.0.3/9.0.11 ) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/husky/9.0.11?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/husky/9.0.11?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/husky/8.0.3/9.0.11?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/husky/8.0.3/9.0.11?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>typicode/husky (husky)</summary>
###
[`v9.0.11`](https://togithub.com/typicode/husky/releases/tag/v9.0.11 )
[Compare
Source](https://togithub.com/typicode/husky/compare/v9.0.10...v9.0.11 )
- chore: update package-lock.json by
[@​btea](https://togithub.com/btea ) in
[https://github.com/typicode/husky/pull/1383 ](https://togithub.com/typicode/husky/pull/1383 )
- fix: husky=0 in init (fixes
[#​1393](https://togithub.com/typicode/husky/issues/1393 )) by
[@​typicode](https://togithub.com/typicode ) in
[https://github.com/typicode/husky/pull/1395 ](https://togithub.com/typicode/husky/pull/1395 )
###
[`v9.0.10`](https://togithub.com/typicode/husky/releases/tag/v9.0.10 )
[Compare
Source](https://togithub.com/typicode/husky/compare/v9.0.9...v9.0.10 )
- fix: rename index.d.ts to index.d.mts by
[@​mrkjdy](https://togithub.com/mrkjdy ) in
[https://github.com/typicode/husky/pull/1379 ](https://togithub.com/typicode/husky/pull/1379 )
### [`v9.0.9`](https://togithub.com/typicode/husky/releases/tag/v9.0.9 )
[Compare
Source](https://togithub.com/typicode/husky/compare/v9.0.8...v9.0.9 )
- refactor: rename files by
[@​typicode](https://togithub.com/typicode ) in
[https://github.com/typicode/husky/pull/1378 ](https://togithub.com/typicode/husky/pull/1378 )
### [`v9.0.8`](https://togithub.com/typicode/husky/releases/tag/v9.0.8 )
[Compare
Source](https://togithub.com/typicode/husky/compare/v9.0.7...v9.0.8 )
- docs: update index.md by
[@​khaledYS](https://togithub.com/khaledYS ) in
[https://github.com/typicode/husky/pull/1369 ](https://togithub.com/typicode/husky/pull/1369 )
- Fix tab detection on install command by
[@​glensc](https://togithub.com/glensc ) in
[https://github.com/typicode/husky/pull/1376 ](https://togithub.com/typicode/husky/pull/1376 )
- refactor: reduce file size by
[@​typicode](https://togithub.com/typicode ) in
[https://github.com/typicode/husky/pull/1377 ](https://togithub.com/typicode/husky/pull/1377 )
### [`v9.0.7`](https://togithub.com/typicode/husky/releases/tag/v9.0.7 )
[Compare
Source](https://togithub.com/typicode/husky/compare/v9.0.6...v9.0.7 )
- fix: typo and source `~/.huskyrc` correctly (compatibility with v8)
- docs: fix example by [@​typicode](https://togithub.com/typicode )
in
[https://github.com/typicode/husky/pull/1363 ](https://togithub.com/typicode/husky/pull/1363 )
### [`v9.0.6`](https://togithub.com/typicode/husky/releases/tag/v9.0.6 )
[Compare
Source](https://togithub.com/typicode/husky/compare/v9.0.5...v9.0.6 )
- docs: add favicon by [@​rakleed](https://togithub.com/rakleed )
in
[https://github.com/typicode/husky/pull/1354 ](https://togithub.com/typicode/husky/pull/1354 )
- chore: apply editorconfig to code only by
[@​typicode](https://togithub.com/typicode ) in
[https://github.com/typicode/husky/pull/1355 ](https://togithub.com/typicode/husky/pull/1355 )
- docs: update install script to mjs and fix CI checks by
[@​starnayuta](https://togithub.com/starnayuta ) in
[https://github.com/typicode/husky/pull/1357 ](https://togithub.com/typicode/husky/pull/1357 )
- Fix unbound variable by
[@​typicode](https://togithub.com/typicode ) in
[https://github.com/typicode/husky/pull/1359 ](https://togithub.com/typicode/husky/pull/1359 )
### [`v9.0.5`](https://togithub.com/typicode/husky/releases/tag/v9.0.5 )
[Compare
Source](https://togithub.com/typicode/husky/compare/v9.0.4...v9.0.5 )
- docs: update path to startup files by
[@​ManuelRauber](https://togithub.com/ManuelRauber ) in
[https://github.com/typicode/husky/pull/1350 ](https://togithub.com/typicode/husky/pull/1350 )
- fix: init error by [@​typicode](https://togithub.com/typicode )
in
[https://github.com/typicode/husky/pull/1353 ](https://togithub.com/typicode/husky/pull/1353 )
### [`v9.0.4`](https://togithub.com/typicode/husky/releases/tag/v9.0.4 )
[Compare
Source](https://togithub.com/typicode/husky/compare/v9.0.3...v9.0.4 )
- fix: init create dir before by
[@​typicode](https://togithub.com/typicode ) in
[https://github.com/typicode/husky/pull/1348 ](https://togithub.com/typicode/husky/pull/1348 )
- refactor: simplify by
[@​typicode](https://togithub.com/typicode ) in
[https://github.com/typicode/husky/pull/1349 ](https://togithub.com/typicode/husky/pull/1349 )
- fix: init not working on pnpm
[#​1334](https://togithub.com/typicode/husky/issues/1334 ) by
[@​rozbo](https://togithub.com/rozbo ) in
[https://github.com/typicode/husky/pull/1347 ](https://togithub.com/typicode/husky/pull/1347 )
### [`v9.0.3`](https://togithub.com/typicode/husky/releases/tag/v9.0.3 )
[Compare
Source](https://togithub.com/typicode/husky/compare/v9.0.2...v9.0.3 )
- docs: fix link by [@​typicode](https://togithub.com/typicode ) in
[https://github.com/typicode/husky/pull/1340 ](https://togithub.com/typicode/husky/pull/1340 )
- chore: fix links in issue template by
[@​julien-f](https://togithub.com/julien-f ) in
[https://github.com/typicode/husky/pull/1341 ](https://togithub.com/typicode/husky/pull/1341 )
- fix: add scripts field if not present by
[@​chalkygames123](https://togithub.com/chalkygames123 ) in
[https://github.com/typicode/husky/pull/1338 ](https://togithub.com/typicode/husky/pull/1338 )
- docs: changelog link by
[@​typicode](https://togithub.com/typicode ) in
[https://github.com/typicode/husky/pull/1343 ](https://togithub.com/typicode/husky/pull/1343 )
- fix: insert final newline by
[@​chalkygames123](https://togithub.com/chalkygames123 ) in
[https://github.com/typicode/husky/pull/1339 ](https://togithub.com/typicode/husky/pull/1339 )
- fix: fix git hooks path on windows by
[@​rozbo](https://togithub.com/rozbo ) in
[https://github.com/typicode/husky/pull/1346 ](https://togithub.com/typicode/husky/pull/1346 )
### [`v9.0.2`](https://togithub.com/typicode/husky/releases/tag/v9.0.2 )
[Compare
Source](https://togithub.com/typicode/husky/compare/v9.0.1...v9.0.2 )
#### What's Changed
- fix: exit code by
[@​gergelypap](https://togithub.com/gergelypap ) in
[https://github.com/typicode/husky/pull/1336 ](https://togithub.com/typicode/husky/pull/1336 )
- docs: typo by
[@​chalkygames123](https://togithub.com/chalkygames123 ) in
[https://github.com/typicode/husky/pull/1337 ](https://togithub.com/typicode/husky/pull/1337 )
#### New Contributors
- [@​gergelypap](https://togithub.com/gergelypap ) made their first
contribution in
[https://github.com/typicode/husky/pull/1336 ](https://togithub.com/typicode/husky/pull/1336 )
**Full Changelog**:
https://github.com/typicode/husky/compare/v9.0.1...v9.0.2
### [`v9.0.1`](https://togithub.com/typicode/husky/releases/tag/v9.0.1 )
[Compare
Source](https://togithub.com/typicode/husky/compare/v8.0.3...v9.0.1 )
<p align="center">
Kicking off the year with an exciting update!
</p>
<p align="center">
<img
src="https://github.com/typicode/husky/assets/5502029/457ab087-e935-4196-b99f-601ecf37f263 "
height="400px" alt="" />
</p>
#### TLDR;
Improved user experience and a (even) smaller package size while packing
in more features!
#### 👋 By the Way
**I'm available for remote work** (Front-end/Back-end mainly JS/TS but
open to other stacks Rails, Go, Elixir). You can contact me at my mail:
typicode at gmail 🙂
#### Introducing `husky init`
Adding husky to a project is now easier than ever. Although the
installation process was straightforward, it often required consulting
the documentation.
##### v8
```shell
npm pkg set scripts.prepare="husky install"
npm run prepare
npx husky add .husky/pre-commit "npm test"
```
##### v9
```shell
npx husky init
```
#### Adding a New Hook
Adding a hook is now as simple as creating a file. This can be
accomplished using your favorite editor, a script or a basic `echo`
command.
##### v8
```shell
npx husky add .husky/pre-commit "npm test"
git add --chmod=+x .husky/pre-commit # On Windows
```
##### v9
```shell
echo "npm test" > .husky/pre-commit
```
#### Further Size Reduction
`v8` was already the most compact Git hooks manager at approximately
`6kB`.
`v9` takes this a step further, reducing the size to just `3kB`, likely
making it the smallest devDependency in your toolkit.
**To give you an idea of how small it is, the biggest file in the
project is the MIT license 😄 **
#### More to Come
Additional features are in the pipeline for `v9`. Stay tuned
🙌
#### Other Changes
- **Enhanced security** with CI and npm `--provenance` for safer
publishing.
- Added **`$XDG_CONFIG_HOME`** support. Move `~/.huskyrc` to
`~/.config/husky/init.sh` for centralized configuration.
- **Fixed permission issue for Windows-created hooks**; they no longer
need to be executable.
- Removed `husky install`. Use `husky` or `husky some/dir` for the same
functionality (deprecation notice to be added).
- Modified behavior when `.git` is missing; it now triggers a warning
instead of failure.
- Replaced `HUSKY_DEBUG=1` with `HUSKY=2` for debugging.
- Updated the Husky API for module usage.
- Transitioned to `ESM` for module usage.
- Dropped support for Node 14 and 16.
- Revamped docs.
#### How to Migrate
`v9` is backward compatible with `v8`, allowing you to freely upgrade
and migrate your hooks later.
`package.json`
```diff
{
"scripts": {
- "prepare": "husky install"
+ "prepare": "husky"
}
}
```
`.husky/pre-commit`
```diff
- #!/usr/bin/env sh
- . "$(dirname -- "$0")/_/husky.sh"
npm test
```
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "after 7pm every weekday,before 5am
every weekday" in timezone Europe/Madrid, Automerge - At any time (no
schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
♻ **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://developer.mend.io/github/Unleash/unleash ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNzMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjE3My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-19 11:05:26 +01:00
Gastón Fournier
07e9429a7d
chore(security): bump IP dependency ( #6265 )
...
## About the changes
Bump IP package that fixes https://github.com/indutny/node-ip/issues/136
vulnerability
2024-02-19 10:54:40 +01:00
Jaanus Sellin
03929e3031
feat: project applications UI ( #6260 )
...
![image](https://github.com/Unleash/unleash/assets/964450/a1129857-820c-4e93-ac59-ef5f4743d774 )
2024-02-19 09:50:53 +02:00
Thomas Heartman
bd907244c4
chore: don't hide columns in connected instances table ( #6264 )
...
Don't hide anything yet, so remove related code. Plus other code we
don't need has been removed.
2024-02-19 14:37:13 +08:00
Thomas Heartman
0e9102fb22
feat: add connected instances table ( #6263 )
...
This PR adds a first iteration of the connected instances table on a new
connected instances tab of the application page (hidden behind a flag).
As a first version, it only uses data that we currently return for each
application (so no "connected through" or "last synchronized").
It also uses the existing version of the application data and just
filters it for the "production" environment right now.
Adding query parameters (and potentially a new URL?) to the applications
page (to save state and fetch data) will be done in a follow-up. This
should lay the groundwork for adding a new API too.
<img width="1485" alt="image"
src="https://github.com/Unleash/unleash/assets/17786332/4fb68456-d0f5-4f82-9246-5333a273df9c ">
2024-02-19 14:12:12 +08:00
Nuno Góis
5f781b4c8f
refactor: better prom metric helper types ( #6261 )
...
Improves typing in our Prometheus metric helpers.
2024-02-16 15:11:29 +00:00
Tymoteusz Czech
b02f8005f1
migration: flag-trends - add users column ( #6254 )
...
Add `users` column to per-project trends.
2024-02-16 15:42:47 +01:00
Gastón Fournier
7a48fb57a6
feat: permission matrix (PoC) ( #6223 )
...
## About the changes
This is a rough initial version as a PoC for a permission matrix.
This is only available after enabling the flag `userAccessUIEnabled`
that is set to true by default in local development.
The access was added to the users' admin page but could be embedded in
different contexts (e.g. when assigning a role to a user):
![image](https://github.com/Unleash/unleash/assets/455064/3f541f46-99bb-409b-a0fe-13f5d3f9572a )
This is how the matrix looks like
![screencapture-localhost-3000-admin-users-3-access-2024-02-13-12_15_44](https://github.com/Unleash/unleash/assets/455064/183deeb6-a0dc-470f-924c-f435c6196407 )
---------
Co-authored-by: Nuno Góis <github@nunogois.com>
2024-02-16 14:31:33 +01:00
Ivar Conradi Østhus
4a81f0932f
fix: Allow AuthType None to use valid API tokens ( #6247 )
...
Fixes ##5799 and #5785
When you do not provide a token we should resolve to the "default"
environment to maintain backward compatibility. If you actually provide
a token we should prefer that and even block the request if it is not
valid.
An interesting fact is that "default" environment is not available on a
fresh installation of Unleash. This means that you need to provide a
token to actually get access to toggle configurations.
---------
Co-authored-by: Thomas Heartman <thomas@getunleash.io>
2024-02-16 08:24:56 +00:00
Thomas Heartman
e5fe4a7766
chore: add sdkReporting flag to front end ( #6253 )
...
It's already in the back end, but wasn't declared in the front end
flags.
2024-02-16 15:43:27 +08:00
Mateusz Kwasniewski
f0d5c8e3d1
fix: include first day of range in the extended metrics ( #6245 )
2024-02-16 08:36:25 +01:00
Thomas Heartman
a8fa1ae347
fix: hide warnings that you'll overwrite changes on CRs that are already applied ( #6214 )
...
The current approach uses adds an extra parameter to the components and
passes it through from the parent components. It's never a lot of
levels, so it feels alright, but it's feels like a bit of a code smell.
I wonder if it would make sense to use a context for each change
request? 🤔
Supersedes: https://github.com/Unleash/unleash/pull/6181
2024-02-16 12:41:14 +08:00
Thomas Heartman
64a6af2858
feat: show info on what would be deleted ( #6235 )
...
This PR updates the way we show deleted strategies in the CR UI. Instead
of showing just the strategy name and a diff on hover, we show the same
strategy config as we do for new and updated strategies.
This makes it easier to see what you have deleted.
In doing so, it also fixes two issues:
1. inconsistent border radius for segment changes listed. Due to an
override in `frontend/src/themes/theme.ts`, these would get a border
radius of `theme.shape.borderRadiusLarge` instead of
`theme.shape.borderRadiusMedium`. It does this by adding a class and
making the selector more specific.
2. The background was unset for the strategy rollout box and constraint
item boxes.
It looks like this:
<img width="728" alt="image"
src="https://github.com/Unleash/unleash/assets/17786332/7cba28ac-0454-444d-8cfa-f46543ccf2dc ">
<img width="728" alt="image"
src="https://github.com/Unleash/unleash/assets/17786332/832be653-3def-4afc-b72f-36fcd76ad83d ">
Or with more kinds of strategies:
<img width="454" alt="image"
src="https://github.com/Unleash/unleash/assets/17786332/f18e5482-7d2e-4cbd-8177-9de6dfb10307 ">
Note: I'm happy to isolate the color changes to a separate PR if that's
preferable.
2024-02-16 04:13:40 +00:00
Nuno Góis
e4649e6421
chore: add call incoming webhook rate limit metric ( #6252 )
...
Follow up to https://github.com/Unleash/unleash/pull/6248 - Add this
rate limit to metrics.
![image](https://github.com/Unleash/unleash/assets/14320932/6b458f5d-2e13-4ac4-8331-7950e7784585 )
2024-02-15 17:05:52 +00:00
Mateusz Kwasniewski
2c5cd13160
docs: troubleshooting unleash over https ( #6250 )
2024-02-15 15:49:21 +01:00
David Leek
cb53df6176
chore: emit PROXY_REPOSITORY_CREATED event when creating new repo ( #6251 )
...
## About the changes
- Emits a new event on the eventBus when Proxy-service creates a new
repository for a frontend token
- Adds a prometheus metrics counter for created proxy-repositories
![image](https://github.com/Unleash/unleash/assets/707867/85a84fa7-4f03-4dc1-b0ba-3ffd2477045b )
2024-02-15 14:58:48 +01:00
Mateusz Kwasniewski
c2b1fd20e5
fix: long descriptions should have tooltips ( #6202 )
2024-02-15 14:17:55 +01:00
Nuno Góis
ef8d2edcc0
chore: rate limit calling inc webhooks ( #6248 )
...
https://linear.app/unleash/issue/2-1942/rate-limit-incoming-webhooks-call-endpoint
Adds a configurable rate limit to calling incoming webhooks. We're
setting a 1RPS limit for now, but I'm open to suggestions.
2024-02-15 10:25:32 +00:00
Jaanus Sellin
8dc27204d1
feat: add gen:api:clean for clean orval schemas ( #6244 )
...
Created a build script that generates orval schemas with automatic
cleanup. Also generating new ones.
1. yarn gen:api **(generates schemas)**
2. rm -rf src/openapi/apis **(remove apis)**
3. sed -i '1q' src/openapi/index.ts **(remove all rows except first)**
2024-02-15 11:45:35 +02:00
Nuno Góis
7a699cf68c
fix: refine project actions form ( #6242 )
...
https://linear.app/unleash/issue/2-1934/refine-the-actions-form-uiux
First effort in refining the project actions form to look slightly more
like the design, including some refactors.
![image](https://github.com/Unleash/unleash/assets/14320932/ab6e11b4-b3b4-4c58-8bd1-9fcc9cb7014b )
2024-02-15 08:28:20 +00:00
Nuno Góis
6a9f80c554
fix: misc UI/UX fixes ( #6241 )
...
https://linear.app/unleash/issue/UNL-338/adjustments-incoming-webhooks-actions
Includes misc UI/UX fixes, including a typo, the vertical alignment of
the Enterprise badge in project settings and the way incoming webhooks
are displayed in non-Enterprise plans.
2024-02-15 08:17:11 +00:00
Thomas Heartman
011008a361
fix: add missing key to list of application projects ( #6243 )
...
This is in the applications table. To achieve it, we also wrap the text in a span.
2024-02-15 07:56:26 +00:00
Mateusz Kwasniewski
2999f8df2d
fix: remove jitter from time sensitive scheduled jobs ( #6240 )
2024-02-14 15:10:44 +01:00
Tymoteusz Czech
0d51bad67b
feat: dashboard lead time gauge ( #6225 )
2024-02-14 13:32:12 +01:00
Jaanus Sellin
624524819a
chore: update orval types ( #6238 )
2024-02-14 13:13:34 +02:00
Jaanus Sellin
3d77825493
feat: project applications server side paging and sorting and filtering ( #6236 )
...
Uses exactly same pattern as search-store. Nothing too crazy here.
Most code is in tests.
2024-02-14 13:03:44 +02:00
Thomas Heartman
6a8f903bcf
docs: add missing full stop
...
This adds a missing full stop to the quickstart docs.
2024-02-14 11:45:00 +09:00
Thomas Heartman
7eb9a01bda
chore: extract and export type used by CR emails ( #6234 )
...
This change takes the (now rather involved) type used to send CR
schedule suspension emails and extracts it into a proper exported type.
This will allow us to import it in enterprise as well instead of
redefining it.
2024-02-14 10:38:13 +09:00
Thomas Heartman
fd977c57e8
docs: mention that environment-level variants also suspend CRs now ( #6211 )
...
Small update to extend an existing description.
2024-02-14 10:12:39 +09:00
Thomas Heartman
2ab99624d2
feat: show env var conflicts in change requests ( #6182 )
...
This PR adds showing of env variant conflicts in change requests.
This is a simple solution that only compares the total state of
variants. We *could* potentially do a modified version where we show
each and every variant as its own property. Because variants have to be
unique by name and because their names can't be changed after their
creation, we could create a map of variant name to their data.
<img width="1105" alt="image"
src="https://github.com/Unleash/unleash/assets/17786332/0c67f958-6c4e-453a-9791-0e132fb1f23e ">
2024-02-14 10:12:19 +09:00
Thomas Heartman
e366e48b4c
feat: support environment variant updates in email service ( #6183 )
...
This change updates the email service's `sendScheduleSuspendedEmail`
method to support environment variants being changed.
2024-02-14 10:11:39 +09:00
renovate[bot]
e9176ac1e2
fix(deps): update dependency joi to v17.12.1 ( #6230 )
...
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [joi](https://togithub.com/hapijs/joi ) | [`17.11.0` ->
`17.12.1`](https://renovatebot.com/diffs/npm/joi/17.11.0/17.12.1 ) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/joi/17.12.1?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/joi/17.12.1?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/joi/17.11.0/17.12.1?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/joi/17.11.0/17.12.1?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>hapijs/joi (joi)</summary>
###
[`v17.12.1`](https://togithub.com/hapijs/joi/compare/v17.12.0...v17.12.1 )
[Compare
Source](https://togithub.com/hapijs/joi/compare/v17.12.0...v17.12.1 )
###
[`v17.12.0`](https://togithub.com/hapijs/joi/compare/v17.11.1...v17.12.0 )
[Compare
Source](https://togithub.com/hapijs/joi/compare/v17.11.1...v17.12.0 )
###
[`v17.11.1`](https://togithub.com/hapijs/joi/compare/v17.11.0...v17.11.1 )
[Compare
Source](https://togithub.com/hapijs/joi/compare/v17.11.0...v17.11.1 )
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "after 7pm every weekday,before 5am
every weekday" in timezone Europe/Madrid, 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://developer.mend.io/github/Unleash/unleash ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNzMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjE3My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-14 00:49:58 +00:00