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

11194 Commits

Author SHA1 Message Date
Jaanus Sellin
79739a1d7f
feat: add completed status backend (#7022)
1. Implemented controller, service, store for status saving
2024-05-09 12:05:19 +03:00
Mateusz Kwasniewski
97d702afeb
feat: expose lifecycle stage in project overview search (#7017) 2024-05-09 10:50:51 +02:00
Jaanus Sellin
28a7797aea
feat: feature lifecycle completed schema (#7021)
1. Added new schema and tests
2. Controller also accepts the data
3. Also sending fake data from frontend currently

Next steps, implement service/store layer and frontend
2024-05-09 09:51:44 +03:00
Jaanus Sellin
8ea034cc2f
feat: add status fields for feature lifecycle table (#7014) 2024-05-09 09:39:01 +03:00
renovate[bot]
0f65f8a943
chore(deps): update dependency tss-react to v4.9.10 (#7020)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [tss-react](https://www.tss-react.dev)
([source](https://togithub.com/garronej/tss-react)) | [`4.9.6` ->
`4.9.10`](https://renovatebot.com/diffs/npm/tss-react/4.9.6/4.9.10) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/tss-react/4.9.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/tss-react/4.9.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/tss-react/4.9.6/4.9.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/tss-react/4.9.6/4.9.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>garronej/tss-react (tss-react)</summary>

###
[`v4.9.10`](https://togithub.com/garronej/tss-react/releases/tag/v4.9.10)

[Compare
Source](https://togithub.com/garronej/tss-react/compare/v4.9.9...v4.9.10)

<!-- Release notes generated using configuration in .github/release.yaml
at refs/heads/main -->

**Full Changelog**:
https://github.com/garronej/tss-react/compare/v4.9.9...v4.9.10

###
[`v4.9.9`](https://togithub.com/garronej/tss-react/releases/tag/v4.9.9)

[Compare
Source](https://togithub.com/garronej/tss-react/compare/v4.9.8...v4.9.9)

<!-- Release notes generated using configuration in .github/release.yaml
at refs/heads/main -->

**Full Changelog**:
https://github.com/garronej/tss-react/compare/v4.9.8...v4.9.9

###
[`v4.9.8`](https://togithub.com/garronej/tss-react/releases/tag/v4.9.8)

[Compare
Source](https://togithub.com/garronej/tss-react/compare/v4.9.7...v4.9.8)

<!-- Release notes generated using configuration in .github/release.yaml
at refs/heads/main -->

**Full Changelog**:
https://github.com/garronej/tss-react/compare/v4.9.7...v4.9.8

###
[`v4.9.7`](https://togithub.com/garronej/tss-react/releases/tag/v4.9.7)

[Compare
Source](https://togithub.com/garronej/tss-react/compare/v4.9.6...v4.9.7)

<!-- Release notes generated using configuration in .github/release.yaml
at refs/heads/main -->

**Full Changelog**:
https://github.com/garronej/tss-react/compare/v4.9.6...v4.9.7

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNDAuMTAiLCJ1cGRhdGVkSW5WZXIiOiIzNy4zNDAuMTAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-09 02:29:52 +00:00
renovate[bot]
74816465ee
chore(deps): update dependency tough-cookie to v4.1.4 (#7019)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [tough-cookie](https://togithub.com/salesforce/tough-cookie) |
[`4.1.3` ->
`4.1.4`](https://renovatebot.com/diffs/npm/tough-cookie/4.1.3/4.1.4) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/tough-cookie/4.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/tough-cookie/4.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/tough-cookie/4.1.3/4.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/tough-cookie/4.1.3/4.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>salesforce/tough-cookie (tough-cookie)</summary>

###
[`v4.1.4`](https://togithub.com/salesforce/tough-cookie/releases/tag/v4.1.4)

[Compare
Source](https://togithub.com/salesforce/tough-cookie/compare/v4.1.3...v4.1.4)

https://www.npmjs.com/package/tough-cookie/v/4.1.4

#### What's Changed

- Add local alias for `toString` by
[@&#8203;corvidism](https://togithub.com/corvidism) in
[https://github.com/salesforce/tough-cookie/pull/409](https://togithub.com/salesforce/tough-cookie/pull/409)
- Fix incorrect string validation for URL by
[@&#8203;coditva](https://togithub.com/coditva) in
[https://github.com/salesforce/tough-cookie/pull/261](https://togithub.com/salesforce/tough-cookie/pull/261)

#### New Contributors

- [@&#8203;corvidism](https://togithub.com/corvidism) made their first
contribution in
[https://github.com/salesforce/tough-cookie/pull/409](https://togithub.com/salesforce/tough-cookie/pull/409)
- [@&#8203;coditva](https://togithub.com/coditva) made their first
contribution in
[https://github.com/salesforce/tough-cookie/pull/261](https://togithub.com/salesforce/tough-cookie/pull/261)

**Full Changelog**:
https://github.com/salesforce/tough-cookie/compare/v4.1.3...v4.1.4

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNDAuMTAiLCJ1cGRhdGVkSW5WZXIiOiIzNy4zNDAuMTAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-08 22:49:09 +00:00
renovate[bot]
1d874dc48d
chore(deps): update dependency qs to v6.12.1 (#7018)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [qs](https://togithub.com/ljharb/qs) | [`6.12.0` ->
`6.12.1`](https://renovatebot.com/diffs/npm/qs/6.12.0/6.12.1) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/qs/6.12.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/qs/6.12.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/qs/6.12.0/6.12.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/qs/6.12.0/6.12.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>ljharb/qs (qs)</summary>

###
[`v6.12.1`](https://togithub.com/ljharb/qs/blob/HEAD/CHANGELOG.md#6121)

[Compare
Source](https://togithub.com/ljharb/qs/compare/v6.12.0...v6.12.1)

- \[Fix] `parse`: Disable `decodeDotInKeys` by default to restore
previous behavior
([#&#8203;501](https://togithub.com/ljharb/qs/issues/501))
- \[Performance] `utils`: Optimize performance under large data volumes,
reduce memory usage, and speed up processing
([#&#8203;502](https://togithub.com/ljharb/qs/issues/502))
-   \[Refactor] `utils`: use `+=`
-   \[Tests] increase coverage

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNDAuMTAiLCJ1cGRhdGVkSW5WZXIiOiIzNy4zNDAuMTAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-08 18:23:06 +00:00
Thomas Heartman
b043bcdd4a
feat: front end can create projects without ids (#7009)
This PR updates the new project creation form to not include the project
ID in the payload (because it's generated by the back end now).
2024-05-08 14:57:07 +02:00
Thomas Heartman
9f532834c8
chore: update orval schemas (#7010)
Main purpose is to get the new deprecated `id` property in the project
creation payload required for
https://github.com/Unleash/unleash/pull/7009 to pass.
2024-05-08 14:44:27 +02:00
Ivar Conradi Østhus
ea9a232acc
fix: removed dupliacted component (#7013) 2024-05-08 14:44:21 +02:00
Ivar Conradi Østhus
64c10f9eff
poc: many strategies pagination (#7011)
This fixes the case when a customer have thousands of strategies causing
the react UI to crash. We still consider it incorrect to use that amount
of strategies and this is more a workaround to help the customer out of
a crashing state.

We put it behind a flag called `manyStrategiesPagination` and plan to
only enable it for the customer in trouble.
2024-05-08 14:20:51 +02:00
Jaanus Sellin
cd49ae2a26
feat: add project id to prometheus and feature flag (#7008)
Now we are also sending project id to prometheus, also querying from
database. This sets us up for grafana dashboard.
Also put the metrics behind flag, just incase it causes cpu/memory
issues.
2024-05-08 15:19:23 +03:00
Jaanus Sellin
81439d23f3
feat: lifecycle is now navigatable by tab (#7005)
![image](https://github.com/Unleash/unleash/assets/964450/ef5677e0-36c7-4cd6-a908-baa164190367)
2024-05-08 15:19:12 +03:00
Mateusz Kwasniewski
f6e85171d9
feat: completed stage lists all environments (#7007) 2024-05-08 14:16:10 +02:00
Thomas Heartman
95ac2e6b8d
feat: generate project ids if they're missing (#7003)
This PR updates the project service to automatically create a project id
if it is not provided. The feature is behind a flag. If an ID is
provided, it will still attempt to use that ID instead.
2024-05-08 12:45:11 +02:00
Jaanus Sellin
02440dfed2
feat: duration in stage, add feature lifecycle prometheus metrics (#6973)
Introduce a new concept. Duration in stage.
Also add it into prometheus metric.
2024-05-08 11:33:51 +03:00
Thomas Heartman
b30860c12f
fix: move slug to real deps (#7004)
This was in dev deps by mistake.
2024-05-08 08:06:31 +00:00
Mateusz Kwasniewski
f30910f628
fix: optimize table placeholder loading (#7002) 2024-05-08 09:40:37 +02:00
Thomas Heartman
861ae6aa93
chore: add automatic ID generation algorithm (#7001)
This PR adds a function to automatically generate a project ID on
creation. Using this when the id is missing will be handled in following
PRs.

The function uses the existing `slug` package to create a slug, and then
takes the 12 characters of a uuidv4 string to generate an ID.

The included tests check that the 12 character hash is added and that
the resulting string is url friendly (by checking that
`encodeURIComponent` doesn't change it).

We could also test a lot of edge cases (such as dealing with double
spaces, trimming the string, etc), but I think that's better handled by
the library itself (but you can check out what I removed in
2d9bcb6390
for an idea).

The function doesn't really need to be in the service; it could be moved to a util. But for proximity, I'll create it here first.
2024-05-08 07:26:35 +00:00
Thomas Heartman
6477ccf34b
test: test how the project form deals with project envs and cr env interaction (#6997)
This PR adds some tests around how project envs and change request envs
interact in the new project form. It tests that:
1. If you remove an env from the project setup, that env is also removed
from the change request list.
2. If you try to enable CRs for an env that isn't enabled, nothing
happens.
2024-05-08 07:26:49 +02:00
renovate[bot]
c70e88950d
chore(deps): update dependency msw to v2.2.14 (#7000)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [msw](https://mswjs.io) ([source](https://togithub.com/mswjs/msw)) |
[`2.2.13` ->
`2.2.14`](https://renovatebot.com/diffs/npm/msw/2.2.13/2.2.14) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/msw/2.2.14?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/msw/2.2.14?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/msw/2.2.13/2.2.14?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/msw/2.2.13/2.2.14?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>mswjs/msw (msw)</summary>

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

[Compare
Source](https://togithub.com/mswjs/msw/compare/v2.2.13...v2.2.14)

#### v2.2.14 (2024-04-17)

##### Bug Fixes

- preserve search params in "onUnhandledRequest" messages
([#&#8203;2128](https://togithub.com/mswjs/msw/issues/2128))
([`64bcae7`](64bcae7c27))
[@&#8203;nagadevkrishna](https://togithub.com/nagadevkrishna)
[@&#8203;kettanaito](https://togithub.com/kettanaito)
- give `node` export condition higher priority
([#&#8203;2134](https://togithub.com/mswjs/msw/issues/2134))
([`f948d13`](f948d13d2d))
[@&#8203;phryneas](https://togithub.com/phryneas)

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNDAuMTAiLCJ1cGRhdGVkSW5WZXIiOiIzNy4zNDAuMTAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-08 02:07:43 +00:00
renovate[bot]
22176d80f3
chore(deps): update dependency @babel/core to v7.24.5 (#6999)
[![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/tree/HEAD/packages/babel-core))
| [`7.24.4` ->
`7.24.5`](https://renovatebot.com/diffs/npm/@babel%2fcore/7.24.4/7.24.5)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2fcore/7.24.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2fcore/7.24.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2fcore/7.24.4/7.24.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2fcore/7.24.4/7.24.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>babel/babel (@&#8203;babel/core)</summary>

###
[`v7.24.5`](https://togithub.com/babel/babel/blob/HEAD/CHANGELOG.md#v7245-2024-04-29)

[Compare
Source](https://togithub.com/babel/babel/compare/v7.24.4...v7.24.5)

##### 🐛 Bug Fix

-   `babel-plugin-transform-classes`, `babel-traverse`
- [#&#8203;16377](https://togithub.com/babel/babel/pull/16377) fix:
TypeScript annotation affects output
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))
- `babel-helpers`, `babel-plugin-proposal-explicit-resource-management`,
`babel-runtime-corejs3`
- [#&#8203;16440](https://togithub.com/babel/babel/pull/16440) Fix
suppressed error order ([@&#8203;sossost](https://togithub.com/sossost))
- [#&#8203;16408](https://togithub.com/babel/babel/pull/16408) Await
nullish async disposable
([@&#8203;JLHwung](https://togithub.com/JLHwung))

##### 💅 Polish

-   `babel-parser`
- [#&#8203;16407](https://togithub.com/babel/babel/pull/16407) Recover
from exported `using` declaration
([@&#8203;JLHwung](https://togithub.com/JLHwung))

##### 🏠 Internal

-   Other
- [#&#8203;16414](https://togithub.com/babel/babel/pull/16414) Relax
ESLint peerDependency constraint to allow v9
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))
-   `babel-parser`
- [#&#8203;16425](https://togithub.com/babel/babel/pull/16425) Improve
`@babel/parser` AST types
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
- [#&#8203;16417](https://togithub.com/babel/babel/pull/16417) Always
pass type argument to `.startNode`
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
- `babel-helper-create-class-features-plugin`,
`babel-helper-member-expression-to-functions`,
`babel-helper-module-transforms`,
`babel-helper-split-export-declaration`, `babel-helper-wrap-function`,
`babel-helpers`,
`babel-plugin-bugfix-firefox-class-in-computed-class-key`,
`babel-plugin-proposal-explicit-resource-management`,
`babel-plugin-transform-block-scoping`,
`babel-plugin-transform-destructuring`,
`babel-plugin-transform-object-rest-spread`,
`babel-plugin-transform-optional-chaining`,
`babel-plugin-transform-parameters`,
`babel-plugin-transform-private-property-in-object`,
`babel-plugin-transform-react-jsx-self`,
`babel-plugin-transform-typeof-symbol`,
`babel-plugin-transform-typescript`, `babel-traverse`
- [#&#8203;16439](https://togithub.com/babel/babel/pull/16439) Make
`NodePath<T | U>` distributive
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
-   `babel-plugin-proposal-partial-application`, `babel-types`
- [#&#8203;16421](https://togithub.com/babel/babel/pull/16421) Remove
`JSXNamespacedName` from valid `CallExpression` args
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
-   `babel-plugin-transform-class-properties`, `babel-preset-env`
- [#&#8203;16406](https://togithub.com/babel/babel/pull/16406) Do not
load unnecessary Babel 7 syntax plugins in Babel 8
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))

##### 🏃‍♀️ Performance

-   `babel-helpers`, `babel-preset-env`, `babel-runtime-corejs3`
- [#&#8203;16357](https://togithub.com/babel/babel/pull/16357)
Performance: improve `objectWithoutPropertiesLoose` on V8
([@&#8203;romgrk](https://togithub.com/romgrk))

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNDAuMTAiLCJ1cGRhdGVkSW5WZXIiOiIzNy4zNDAuMTAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-07 22:20:07 +00:00
renovate[bot]
f69536d1c9
chore(deps): update dependency superagent to v9 (#6990)
[![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.1.2` ->
`9.0.2`](https://renovatebot.com/diffs/npm/superagent/8.1.2/9.0.2) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/superagent/9.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/superagent/9.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/superagent/8.1.2/9.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/superagent/8.1.2/9.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>ladjs/superagent (superagent)</summary>

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

[Compare
Source](https://togithub.com/ladjs/superagent/compare/v9.0.1...v9.0.2)

- Merge pull request
[#&#8203;1803](https://togithub.com/ladjs/superagent/issues/1803) from
alumni/fix-url-parse
[`329cc63`](https://togithub.com/ladjs/superagent/commit/329cc63)
- fix: replace deprecated `url.parse()` with `new URL()`
[`8ead63f`](https://togithub.com/ladjs/superagent/commit/8ead63f)
- Merge pull request
[#&#8203;1804](https://togithub.com/ladjs/superagent/issues/1804) from
alumni/remove-semver
[`9406dae`](https://togithub.com/ladjs/superagent/commit/9406dae)
- chore: remove unnecessary semver checks
[`86c9bf4`](https://togithub.com/ladjs/superagent/commit/86c9bf4)
- Merge pull request
[#&#8203;1802](https://togithub.com/ladjs/superagent/issues/1802) from
alumni/fix-url-parse
[`e996382`](https://togithub.com/ladjs/superagent/commit/e996382)
- fix: replace deprecated `node:url` methods
[`7e20ced`](https://togithub.com/ladjs/superagent/commit/7e20ced)

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

[Compare
Source](https://togithub.com/ladjs/superagent/compare/v9.0.0...v9.0.1)

- Merge pull request
[#&#8203;1796](https://togithub.com/ladjs/superagent/issues/1796) from
mmmmmrob/patch-2
[`68f7bb1`](https://togithub.com/ladjs/superagent/commit/68f7bb1)
- Merge branch 'master' into patch-2
[`450f7b2`](https://togithub.com/ladjs/superagent/commit/450f7b2)
- Merge pull request
[#&#8203;1794](https://togithub.com/ladjs/superagent/issues/1794) from
SukkaW/replace-polyfill-io
[`ea633d7`](https://togithub.com/ladjs/superagent/commit/ea633d7)
- Merge pull request
[#&#8203;1791](https://togithub.com/ladjs/superagent/issues/1791) from
HannesOberreiter/patch-1
[`e334068`](https://togithub.com/ladjs/superagent/commit/e334068)
- Update README.md
[`a5c39b2`](https://togithub.com/ladjs/superagent/commit/a5c39b2)
- Add superagent-cheerio to the readme
[`0165c7c`](https://togithub.com/ladjs/superagent/commit/0165c7c)
- docs: no longer recommend `polyfill.io`
[`da9ff20`](https://togithub.com/ladjs/superagent/commit/da9ff20)
- Update README.md
[`c4205e0`](https://togithub.com/ladjs/superagent/commit/c4205e0)

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

[Compare
Source](https://togithub.com/ladjs/superagent/compare/v8.1.2...v9.0.0)

- fix: fixed ci job not installing npm deps
[`489708e`](https://togithub.com/ladjs/superagent/commit/489708e)
- fix: fix numeric identifier issue
[`ea2577e`](https://togithub.com/ladjs/superagent/commit/ea2577e)
- fix: drop support for node < v14.18.0 due to formidable node:fs scope
import statement (per
[#&#8203;1800](https://togithub.com/ladjs/superagent/issues/1800))
[`23fe5ab`](https://togithub.com/ladjs/superagent/commit/23fe5ab)
- Merge pull request
[#&#8203;1800](https://togithub.com/ladjs/superagent/issues/1800) from
tomstrong64/master
[`03de30c`](https://togithub.com/ladjs/superagent/commit/03de30c)
- fix: formidable v3 multipart form contents mapped to expected format
[`b9c7837`](https://togithub.com/ladjs/superagent/commit/b9c7837)
- Update formidable
[`3ee138d`](https://togithub.com/ladjs/superagent/commit/3ee138d)
- test: replace should with node:assert
([#&#8203;1782](https://togithub.com/ladjs/superagent/issues/1782))
[`1c8338b`](https://togithub.com/ladjs/superagent/commit/1c8338b)
- test: replace should with node:assert
([#&#8203;1780](https://togithub.com/ladjs/superagent/issues/1780))
[`0dc80d1`](https://togithub.com/ladjs/superagent/commit/0dc80d1)
- Merge pull request
[#&#8203;1777](https://togithub.com/ladjs/superagent/issues/1777) from
jimmywarting/classify
[`83e92cb`](https://togithub.com/ladjs/superagent/commit/83e92cb)
- classify agent
[`fca95a3`](https://togithub.com/ladjs/superagent/commit/fca95a3)

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNDAuMTAiLCJ1cGRhdGVkSW5WZXIiOiIzNy4zNDAuMTAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-08 00:12:36 +02:00
Ivar Conradi Østhus
9090b18e2e
docs: make sure we use latest axios 2024-05-07 23:54:48 +02:00
Ivar Conradi Østhus
f1addd9ea1
fix: update dependencies in OSS docker file 2024-05-07 23:50:25 +02:00
Mateusz Kwasniewski
843aab7447
fix: remove columns from the search api query (#6996) 2024-05-07 14:44:09 +02:00
Egor Stronhin
8ae8cbbdb4
feat: Allow to use CA certificate file path for DB (#6985)
Regarding ticket #6892:

I would like to enable the use of a CA certificate without requiring
other certificates. This would be useful for AWS Helm, as AWS only
provides a single PEM file for DB connections.
2024-05-07 14:43:19 +02:00
Mateusz Kwasniewski
8ae78236d2
chore: remove project overview refactor flag (#6897) 2024-05-07 13:58:56 +02:00
Mateusz Kwasniewski
d1803b2e62
feat: increase possible number range for yes/no metrics (#6995) 2024-05-07 13:54:56 +02:00
Jaanus Sellin
b69c294272
feat: pass metrics to feature component (#6994)
![image](https://github.com/Unleash/unleash/assets/964450/39bb4551-dc03-4931-8a7f-cd9c0ceda056)
2024-05-07 11:52:38 +03:00
Jaanus Sellin
206d0190ff
feat: create initial stages for features (#6983)
We are getting questions from engineers, why I do not see lifecycle. The
same will happen with our customers. Now customers will see lifecycle
component unified across features.
2024-05-07 11:38:51 +03:00
Mateusz Kwasniewski
a45be8d10c
test: move tests from cypress to rtl (#6987) 2024-05-07 09:03:40 +02:00
Thomas Heartman
913f81b40c
feat: show documentation relating to the specific thing your configuring in the new project form (#6993)
This PR updates the documentation text in the new project form to show
the documentation relating to the specific thing you're configuring.
2024-05-07 08:56:53 +02:00
Jaanus Sellin
77d5156eba
feat: start exposing environment metrics from feature endpoint (#6986)
We want to start showing same donut that we do show in project page.
This is setting it up for UI.
2024-05-07 09:32:46 +03:00
Thomas Heartman
07871e73e5
feat: configure CRs when creating projects (#6979)
This PR adds the ability to configure CRs when creating a project.

The design is unfinished, and the code certainly needs cleanup, but I'd
like to get this into sandbox so we can look at it.

Things that still need to be done:

1. What do we do about this button when the user has no environments
selected? As a rough draft, I've disabled it. However, we should make it
possible to navigate to and give you an explanation why it was disabled,
e.g. "You have no project environments selected. Please select at least
one project environment.".
2. The form design is not done: the width should be constant and not
jumpy the way it is now. Also, the search field is too wide.
3. I've made the desicion that if you deselect a project env, we also
remove that env from your CR config it it's in there.
4. Potential improvement: if you enable and then disable CRs for an env,
we *could* probably store the data in between, so that if you set
required approvers 5 and then disabled it, it'd still be 5 when you
re-enabled it. That sounds like a good user experience. We should also
be able to extend that to adding/removing environments from project
envs.
2024-05-07 08:14:28 +02:00
Ivar Conradi Østhus
2d9fb90443
chore: version in package.json 2024-05-06 19:56:41 +02:00
Mateusz Kwasniewski
8d04772256
fix: duplicate column name in search query (#6989) 2024-05-06 19:26:23 +02:00
Mateusz Kwasniewski
5c27e75014
test: move 2 table tests from cypress to rtl (#6984) 2024-05-06 15:00:53 +02:00
renovate[bot]
975292d109
chore(deps): update dependency @swc/core to v1.4.17 (#6970)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@swc/core](https://swc.rs)
([source](https://togithub.com/swc-project/swc)) | [`1.4.13` ->
`1.4.17`](https://renovatebot.com/diffs/npm/@swc%2fcore/1.4.13/1.4.17) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/@swc%2fcore/1.4.17?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@swc%2fcore/1.4.17?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@swc%2fcore/1.4.13/1.4.17?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@swc%2fcore/1.4.13/1.4.17?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>swc-project/swc (@&#8203;swc/core)</summary>

###
[`v1.4.17`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1417---2024-04-23)

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

##### Bug Fixes

- **(es)** Ignore `sourceMappingURL` in string literals
([#&#8203;8879](https://togithub.com/swc-project/swc/issues/8879))
([d7188cd](d7188cdb66))

- **(es/codegen)** Use `Str.raw` for es5
([#&#8203;8873](https://togithub.com/swc-project/swc/issues/8873))
([c7a06b1](c7a06b1a5e))

- **(es/compat)** Fix async generator
([#&#8203;8881](https://togithub.com/swc-project/swc/issues/8881))
([063eabd](063eabd33c))

- **(es/resolver)** Prioritze `jsc.paths` by length in tsc resolver
([#&#8203;8875](https://togithub.com/swc-project/swc/issues/8875))
([e22c368](e22c3681a6))

- **(html/codegen)** Expand elements before which body isn’t elided
([#&#8203;8877](https://togithub.com/swc-project/swc/issues/8877))
([5419a94](5419a9477f))

###
[`v1.4.16`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1416---2024-04-18)

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

##### Bug Fixes

- **(es/helpers)** Fix resolving of `usingCtx` helper
([#&#8203;8874](https://togithub.com/swc-project/swc/issues/8874))
([6e9d1a4](6e9d1a4ebf))

###
[`v1.4.15`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1415---2024-04-17)

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

##### Bug Fixes

- **(es/codegen)** Fix `ascii_only` for identifiers
([#&#8203;8866](https://togithub.com/swc-project/swc/issues/8866))
([2075a23](2075a23373))

- **(es/minifier)** Remove `raw` of strings after modification
([#&#8203;8865](https://togithub.com/swc-project/swc/issues/8865))
([740c0bb](740c0bb00a))

- **(es/parser)** Fix span of `BindingIdent`
([#&#8203;8859](https://togithub.com/swc-project/swc/issues/8859))
([fbd32fb](fbd32fbff3))

- **(es/proposal)** Update explicit resource management to match spec
([#&#8203;8860](https://togithub.com/swc-project/swc/issues/8860))
([6d24076](6d240768b1))

##### Features

- **(es/transforms)** Allocate stacks dynamically
([#&#8203;8867](https://togithub.com/swc-project/swc/issues/8867))
([a1c5415](a1c5415b3b))

##### Refactor

- **(es/minifier)** Remove `mangle.safari10`
([#&#8203;8857](https://togithub.com/swc-project/swc/issues/8857))
([df2e056](df2e056f29))

##### Build

- **(cargo)** Update rustc to `nightly-2024-04-03`
([#&#8203;8821](https://togithub.com/swc-project/swc/issues/8821))
([ca9c76b](ca9c76b46f))

- **(cargo)** Update `rustc` to `nightly-2024-04-16`
([#&#8203;8870](https://togithub.com/swc-project/swc/issues/8870))
([f9459a8](f9459a8adf))

###
[`v1.4.14`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1414---2024-04-15)

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

##### Bug Fixes

- **(es/compat)** Handle class fields correctly
([#&#8203;8835](https://togithub.com/swc-project/swc/issues/8835))
([5cc585b](5cc585b8f3))

- **(es/helpers)** Add missing helpers
([#&#8203;8843](https://togithub.com/swc-project/swc/issues/8843))
([67bfcf4](67bfcf41f5))

- **(es/minifier)** Handle switch cases
([#&#8203;8854](https://togithub.com/swc-project/swc/issues/8854))
([7a89e5d](7a89e5da3b))

- **(es/plugin)** Create `tokio` runtime only if necessary
([#&#8203;8845](https://togithub.com/swc-project/swc/issues/8845))
([62c4f5e](62c4f5efb8))

- **(es/resolver)** Correctly check strict mode
([#&#8203;8851](https://togithub.com/swc-project/swc/issues/8851))
([f6ba92b](f6ba92b033))

- **(es/utils)** Preserve optional chain effect
([#&#8203;8850](https://togithub.com/swc-project/swc/issues/8850))
([a7a32c4](a7a32c4b6c))

##### Documentation

- **(swc_core)** Resolve build issue with `--all-features` flag
([#&#8203;8848](https://togithub.com/swc-project/swc/issues/8848))
([c0d901e](c0d901eac6))

##### Refactor

- **(es)** Make the code compile with `miri`
([#&#8203;8836](https://togithub.com/swc-project/swc/issues/8836))
([3a51140](3a51140dd7))

- **(es/decorator)** Remove unsafe code
([#&#8203;8839](https://togithub.com/swc-project/swc/issues/8839))
([e8c6344](e8c63447f6))

- **(visit)** Simplify `Vec::move_map`
([#&#8203;8838](https://togithub.com/swc-project/swc/issues/8838))
([b1973d4](b1973d490a))

##### Testing

- **(es)** Update `conformance` test suite from `tsc`
([#&#8203;8834](https://togithub.com/swc-project/swc/issues/8834))
([ea5d9cc](ea5d9cc524))

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-06 12:46:00 +00:00
Mateusz Kwasniewski
d01100fbf0
test: move import test from cypress to RTL to make it less flaky (#6982) 2024-05-06 14:40:47 +02:00
Jaanus Sellin
d698eccb4a
fix: badge should render children 0 value (#6981)
When passing 0 in as child, the 0 was not rendred. Fixed the badge
component and added tests.


![image](https://github.com/Unleash/unleash/assets/964450/d681b70c-5d55-4818-86ea-7d05fa86c7b3)
2024-05-06 13:24:52 +03:00
Jaanus Sellin
233b882c7b
feat: merge feature toggle details with feature meta info box (#6977)
![image](https://github.com/Unleash/unleash/assets/964450/5286eb36-311d-42f9-90da-832724cc41d0)

---------

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
Co-authored-by: andreas-unleash <andreas@getunleash.ai>
2024-05-06 12:17:54 +03:00
Jaanus Sellin
2c05f1a0ce
feat: search order by final (#6976)
Final rank has always been ordering correctly by default. But after 5.12
I see some issues that sometimes it is not ordered. Just to be extra
sure, I am for ordering it.
2024-05-03 13:30:12 +03:00
Thomas Heartman
bd0cd018c9
support setting mode and stickiness in new project form (#6972)
This PR is a combination of two PRs:

This PR adds a functioning environment selection button to the new project creation form. Selected environments are added to the payload and to the API preview.

The implementation is mostly lifted from the existing FilterItem component we have for search filters. However, our need here is less complex, so I've removed some of the things we don't need. There is still more cleanup to be done, however, but I'd like to implement the rest of the submenus first, to see what we really do need in the end.

---

This PR adds support for stickiness and project mode in the new project
creation form.

Achieve this, it does a few things:

1. Moves `resolveStickinessOptions` from
`frontend/src/component/feature/StrategyTypes/FlexibleStrategy/StickinessSelect/StickinessSelect.tsx`
and into a separate hook. This component was used by the old project
creation form. Because the new form has a different input, but needs the
same option, moved that code into a reusable hook.
2. It adds functioning buttons for project stickiness and mode.
3. It adds labels to the search inputs for the dropdowns. Inputs *must*
have labels to meet a11y requirements. However, the designs don't have
labels, so we can hide them visually. Though that leads to another issue
(refer to the screen shot below).
4. It updates the `SelectionButton` component to handle both single- and
multiselect cases. It instead exports these two subcomponents. These are
currently in one file, but I'll split them out into their separate files
in a later PR.

As a side effect of working with the selection buttons, it also improves
how we handle keyboard interaction for these buttons.

Here's what it looks like for single-select lists. Notice the missing
part of the input's border around the top (where the label *would* be if
we showed it). We should figure out how best to handle it. I've done
like this for now, but we can sort it out later.


![image](https://github.com/Unleash/unleash/assets/17786332/5af979c2-6635-481e-8d3e-5aad1c0ab46f)
2024-05-03 07:27:13 +02:00
Thomas Heartman
44e86fc068
chore: fix failing test; don't rely on a single item only (#6974)
This test is breaking right now because it tests a date picker, week 21
is approaching, and `findByText` only expects a single element. Checking
that we have *at least* one element fixes that breakage and I don't
think it should cause any issues.

Of course, that means that right now, this test would also pass even if
the expected button wasn't there, but it would stop passing in about
four weeks time.
2024-05-02 15:03:49 +02:00
Jaanus Sellin
5c61667282
feat: add completed event as webhook event (#6968)
Now feature completed event can be used with webhook.
2024-05-02 14:48:33 +03:00
Nuno Góis
95ebe25ada
docs: update feature availability (#6971)
Updates feature availability. 

Banners is a feature that is already GA'd since Unleash 5.7, so beta
availability seems irrelevant now.

We removed the mention of planning to GA Signals & Actions in 5.12,
since that's not happening and we would prefer not to include these
mentions in the future.
2024-05-02 11:19:44 +01:00
Alvin Bryan
4ad56e8afc
Adds contributors to docs (#6900)
Hello!

We wanted to make the docs less impersonal, so we decided to add
contributors. Now each doc page that has an `editUrl` (i.e, isn't
generated) shows a list of everyone that contributed to it.

This list is generated by:
1. Running `swizzle` on the `DocItem/Footer` in Docusaurus.
2. Grabbing metadata for the current file using an internal docusaurus
API (Thank you to @homotechsual for the help there)
3. Getting the commits to the file in question with the GitHub API


![image](https://github.com/Unleash/unleash/assets/107407814/fd9c92ef-36ab-4d9e-ac11-6d724fd55d11)

<details>
 <summary> Here's the command I ran, for posterity </summary>
<code>npm run swizzle @docusaurus/theme-classic DocItem/Footer --
--wrap</code>
</details>


## Discussion points

1. Design. What do you think of the layout?
2. Right now I'm hardcoding the info of Unleash team members. This
creates a small maintenance burden, but it's something we wanted to add.
2024-04-30 15:19:38 +01:00
Tymoteusz Czech
0bacd60caf
refactor: badge icon spacing (#6962)
Simplified after previous modifications
2024-04-30 14:14:04 +02:00
Thomas Heartman
4fea198d6c
chore: add project icon to new form (#6965)
Imports and uses the same project icon used on the project cards. Also
aligns the header better and makes the text lighter.


![image](https://github.com/Unleash/unleash/assets/17786332/bf5082b0-1f00-45bb-a639-864963b6fe77)
2024-04-30 13:18:27 +02:00