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

7939 Commits

Author SHA1 Message Date
Nuno Góis
6c79c790a9
feat: implement demo guide steps logic (#3528)
https://linear.app/unleash/issue/2-915/implement-guide-steps-logic


https://user-images.githubusercontent.com/14320932/232099388-a8138b29-8256-4ed2-b8f4-f7607cf3ab9c.mp4

See discussion for context:
https://unleash-internal.slack.com/archives/C046LV85N3C/p1681723816687779?thread_ts=1681488537.345059&cid=C046LV85N3C

Relates to [roadmap](https://github.com/orgs/Unleash/projects/10) item:
#3537
2023-04-18 10:56:15 +01:00
GitHub Actions Bot
35d354d2b6 4.23.0-beta.51 2023-04-18 08:57:48 +00:00
Gastón Fournier
e7d3182af5
fix: gh actions that run on main (#3550)
## About the changes
These also need to be migrated to node 18
2023-04-18 08:55:55 +00:00
Christopher Kolstad
867a514d1f
feat: Added configurable signing algorithm to OIDC configuration (#3522)
We've had requests from customers that use RS512 as the default signing
algorithm in their OIDC server deployment. This PR adds that as a config
variable to the OIDC form.
2023-04-18 10:42:32 +02:00
GitHub Actions Bot
56f1fa330a 4.23.0-beta.50 2023-04-18 08:35:53 +00:00
Gastón Fournier
0426dd505d
chore: update to node 18 (#3527)
## About the changes
This upgrades our main branch to use node 18 which is the active LTS
version and stops using node 14 which reaches the end of life in a few
weeks: https://nodejs.dev/en/about/releases/

This PR also adds `--no-experimental-fetch` for frontend tests and other
frontend commands. Related to:
https://github.com/node-fetch/node-fetch/issues/1566

More about the experimental fetch release:
https://nodejs.org/en/blog/announcements/v18-release-announce#fetch-experimental
2023-04-18 10:35:32 +02:00
Gastón Fournier
c97294aee4
Fix openapi tests (#3549)
## About the changes
Update tests due to fixes introduced in
2da279b7fb

This PR removes the fixes from the exceptions' list
2023-04-18 08:17:23 +00:00
GitHub Actions Bot
fe85b8dcbd 4.23.0-beta.49 2023-04-18 07:01:44 +00:00
andreas-unleash
2da279b7fb
feat: add title to strategy (#3510)
<!-- Thanks for creating a PR! To make it easier for reviewers and
everyone else to understand what your changes relate to, please add some
relevant content to the headings below. Feel free to ignore or delete
sections that you don't think are relevant. Thank you! ❤️ -->
Adds title column to strategies, feature_strategies and features_view in
the db
Updates model/schemas
## About the changes
<!-- Describe the changes introduced. What are they and why are they
being introduced? Feel free to also add screenshots or steps to view the
changes if they're visual. -->

<!-- Does it close an issue? Multiple? -->
Closes #
[1-855](https://linear.app/unleash/issue/1-855/allow-for-title-on-strategy-backend)

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

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


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

---------

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-04-18 08:59:02 +02:00
Gastón Fournier
5940a81158
docs: improve open api (#3535)
## About the changes
Amends based on https://github.com/Unleash/unleash/pull/3519
2023-04-18 08:50:36 +02:00
renovate[bot]
7debbeb00d
chore(deps): update dependency @swc/core to v1.3.49 (#3546)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

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

---

### Release Notes

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

###
[`v1.3.49`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#&#8203;1349---2023-04-10)

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

##### Features

- **(plugin/runner)** Update `wasmer` to `v3`
([#&#8203;7197](https://togithub.com/swc-project/swc/issues/7197))
([56bdacc](56bdacc72d))

##### Refactor

- **(plugin/runner)** Fix publish action
([#&#8203;7234](https://togithub.com/swc-project/swc/issues/7234))
([b868ed0](b868ed02a3))

###
[`v1.3.47`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#&#8203;1347---2023-04-10)

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

##### Bug Fixes

- **(bindings/node)** Make peer dependency of helpers optional
([#&#8203;7216](https://togithub.com/swc-project/swc/issues/7216))
([e86d598](e86d59882a))

- **(es/compat)** Fix `finally` handling of `generator`
([#&#8203;7215](https://togithub.com/swc-project/swc/issues/7215))
([f5c62fb](f5c62fbbf8))

- **(es/minifier)** Don't remove used var decl
([#&#8203;7200](https://togithub.com/swc-project/swc/issues/7200))
([73bc29e](73bc29eeb0))

- **(es/testing)** Ensure that we call `fold_program`
([#&#8203;7222](https://togithub.com/swc-project/swc/issues/7222))
([e241201](e241201bf7))

- **(es/typescript)** Fix computation of enum bits
([#&#8203;7219](https://togithub.com/swc-project/swc/issues/7219))
([29bf176](29bf1760be))

##### Features

- **(es)** Expose stage 3 decorator
([#&#8203;7220](https://togithub.com/swc-project/swc/issues/7220))
([a7a53c6](a7a53c6208))

##### Refactor

- **(macros/ast-node)** Drop `darling` to reduce compile time
([#&#8203;7214](https://togithub.com/swc-project/swc/issues/7214))
([3f61638](3f61638cbf))

###
[`v1.3.46`](https://togithub.com/swc-project/swc/compare/v1.3.45...v1.3.46)

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

###
[`v1.3.45`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#&#8203;1345---2023-04-04)

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

##### Bug Fixes

- **(es)** Allow missing `.map` file
([#&#8203;7141](https://togithub.com/swc-project/swc/issues/7141))
([3e6a186](3e6a1869e8))

- **(es/compat)** Handle shorthand object prop while renaming
([#&#8203;7176](https://togithub.com/swc-project/swc/issues/7176))
([0a80e05](0a80e0506b))

- **(es/helpers)** Use snake_case for helpers
([#&#8203;7147](https://togithub.com/swc-project/swc/issues/7147))
([3ca954b](3ca954b9f9))

- **(es/modules)** Hint nodejs for multiple `export *`
([#&#8203;7184](https://togithub.com/swc-project/swc/issues/7184))
([98f1493](98f14931e7))

- **(es/parser)** Fix infinite loop on jsx in js
([#&#8203;7191](https://togithub.com/swc-project/swc/issues/7191))
([414e669](414e66910d))

- **(es/typescript)** Mark `A` as a type in `export { type A }`
([#&#8203;7196](https://togithub.com/swc-project/swc/issues/7196))
([ddfbc93](ddfbc93624))

- **(swc_core)** Fix a feature name
([#&#8203;7198](https://togithub.com/swc-project/swc/issues/7198))
([bfe6544](bfe654438f))

##### Features

- **(css/modules)** Preserve spans of CSS class names
([#&#8203;7185](https://togithub.com/swc-project/swc/issues/7185))
([df7b4e7](df7b4e71d2))

- **(es/compat)** Implement stage 3 decorator, without auto accessor
([#&#8203;6950](https://togithub.com/swc-project/swc/issues/6950))
([7a863ad](7a863ad18f))

- **(es/helpers)** Use named export and unify import path
([#&#8203;7182](https://togithub.com/swc-project/swc/issues/7182))
([a13a78e](a13a78e3fe))

- **(plugin/runner)** Improve cache path
([#&#8203;7188](https://togithub.com/swc-project/swc/issues/7188))
([976667f](976667f7d9))

##### Testing

- **(es/plugin)** Enable E2E plugin test
([#&#8203;7178](https://togithub.com/swc-project/swc/issues/7178))
([a785f18](a785f18740))

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-17 20:56:27 +00:00
David Leek
bbfb88122b
docs: jira cloud documentation (#3494)
<!-- Thanks for creating a PR! To make it easier for reviewers and
everyone else to understand what your changes relate to, please add some
relevant content to the headings below. Feel free to ignore or delete
sections that you don't think are relevant. Thank you! ❤️ -->

New PR using correct prefixes

## About the changes
<!-- Describe the changes introduced. What are they and why are they
being introduced? Feel free to also add screenshots or steps to view the
changes if they're visual. -->

Adds documentation to the docs website for the new Jira Cloud plugin.
Couple of pieces on install page are missing due to the nature of having
to have the docs before we can start the review process after which
we'll get the final details on how/where to install/from etc.

Also a couple of pending fixes that might impact screenshots/warrant new
ones made

![Skjermbilde 2023-04-06 kl 12 34
40](https://user-images.githubusercontent.com/707867/230353148-98c5915f-0d97-4cba-bec5-33d46503448d.png)
![Skjermbilde 2023-04-06 kl 12 34
49](https://user-images.githubusercontent.com/707867/230353157-e9dd3f57-e6a3-4e9b-a966-ebdfcdaf2581.png)

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

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

- website/docs/reference/integrations/jira-cloud-plugin-installation.md
- website/docs/reference/integrations/jira-cloud-plugin-usage.md

## Discussion points
<!-- Anything about the PR you'd like to discuss before it gets merged?
Got any questions or doubts? -->
Very open to improvements on wording and tips on standards used in
screenshots

---------

Co-authored-by: Simon Hornby <liquidwicked64@gmail.com>
Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2023-04-17 15:16:01 +02:00
GitHub Actions Bot
ecc334b3fb 4.23.0-beta.48 2023-04-17 13:04:20 +00:00
Jaanus Sellin
56f09ce392
feat: list affected features (#3534) 2023-04-17 16:03:59 +03:00
Thomas Heartman
0a9df052a6
docs: fix broken links (#3533)
Fixes broken links that were mistakenly committed to main.
2023-04-17 14:10:31 +02:00
GitHub Actions Bot
51c3f4733b 4.23.0-beta.47 2023-04-17 09:36:11 +00:00
Gastón Fournier
0b612c835a
chore: Auto assign PR (#3531)
## About the changes
This will auto-assign any PR to the opener of the PR. This should help
identify internal PRs from external ones, mainly helping our GitHub
Watcher role

PoC done in unleash-edge:
https://github.com/Unleash/unleash-edge/actions/workflows/auto-assign-pr-author.yaml
2023-04-17 10:34:23 +01:00
GitHub Actions Bot
7cc2777d36 4.23.0-beta.46 2023-04-17 09:22:10 +00:00
Mateusz Kwasniewski
5fa13aba0e
feat: remove project overview flags (#3532) 2023-04-17 11:21:52 +02:00
GitHub Actions Bot
f92a154cd1 4.23.0-beta.45 2023-04-17 08:52:11 +00:00
Gastón Fournier
4f78db3be9
fix: segments schemas (#3525)
## About the changes
Remove segment schemas from exceptions

---------

Co-authored-by: GitHub Actions Bot <>
2023-04-17 10:51:48 +02:00
dependabot[bot]
97f8f54d18
chore(deps): bump vm2 from 3.9.15 to 3.9.16 in /frontend (#3513)
Bumps [vm2](https://github.com/patriksimek/vm2) from 3.9.15 to 3.9.16.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/patriksimek/vm2/releases">vm2's
releases</a>.</em></p>
<blockquote>
<h2>3.9.16</h2>
<p><strong>Fixes</strong></p>
<p><a
href="24c724daa7</a>:
Fix issue in transformer issue by reworking replacement logic. (Thanky
to <a href="https://twitter.com/0x10n">Xion</a> (SeungHyun Lee) of <a
href="https://kaist-hacking.github.io/">KAIST Hacking Lab</a>.)</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/patriksimek/vm2/blob/master/CHANGELOG.md">vm2's
changelog</a>.</em></p>
<blockquote>
<h2>v3.9.16 (2023-04-11)</h2>
<p>[fix] Security fix (see <a
href="https://redirect.github.com/patriksimek/vm2/issues/516">patriksimek/vm2#516</a>).</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="24c724daa7"><code>24c724d</code></a>
Release 3.9.16</li>
<li>See full diff in <a
href="https://github.com/patriksimek/vm2/compare/3.9.15...3.9.16">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=vm2&package-manager=npm_and_yarn&previous-version=3.9.15&new-version=3.9.16)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/Unleash/unleash/network/alerts).

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-17 10:47:25 +02:00
Gastón Fournier
d9b6357281
Fix main after OpenAPI fixes (#3530)
## About the changes
After fixing some OpenAPI descriptions:
6cc51b7ba0
this test needs to be updated
2023-04-17 10:34:29 +02:00
GitHub Actions Bot
472e277757 4.23.0-beta.44 2023-04-17 07:11:42 +00:00
Gastón Fournier
ea9bf7f447
chore: add linter rules for regexp (#3500)
## About the changes
Add linter rules for regexp security vulnerabilities

Commit 1c5d54c76e [fails due to
regexp/no-super-linear-backtracking](https://github.com/Unleash/unleash/actions/runs/4668430535/jobs/8265506170#step:5:37)
as reported here:
https://github.com/Unleash/unleash/security/code-scanning/1


[0127d1a](0127d1a746)
fixes the issues and warnings by running `yarn lint --fix`
2023-04-17 07:11:22 +00:00
Christopher Kolstad
6cc51b7ba0
docs: Added docs for edge endpoints (#3501)
Adding documentation for the edge endpoints. Also separating request and
response schema for our validate endpoint to make clear that we expect a
list of strings as input, but yield tokens as output.

---------

Co-authored-by: Gastón Fournier <gaston@getunleash.io>
Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2023-04-14 15:39:39 +02:00
Thomas Heartman
222f34f43d
docs: add large segments explainer (#3441)
This PR adds an explainer document about using large/complex
constraints, inspired by the Unleash and Redis repo.

The intent is to create a comprehensive and understandable explanation
as to why we don't recommend you do this, and also to offer alternative
solutions for the same problem.

---------

Co-authored-by: Simon Hornby <liquidwicked64@gmail.com>
2023-04-14 12:59:07 +00:00
GitHub Actions Bot
da1e1c29aa 4.23.0-beta.43 2023-04-14 12:30:29 +00:00
Gastón Fournier
9105f31e81
fix: test in main (#3526)
## About the changes
Due to some merge conflict some open API specs marked as exceptions are
no longer exceptions
2023-04-14 12:30:11 +00:00
GitHub Actions Bot
ebd00a9de3 4.23.0-beta.42 2023-04-14 11:39:16 +00:00
Gastón Fournier
ff99ffc27c
chore: rule for description on properties (#3523)
## About the changes
This rule defines that all properties should have a description

We also considered enforcing an example but we noticed that in some
cases that's not needed.
2023-04-14 13:38:58 +02:00
GitHub Actions Bot
98e536bf2c 4.23.0-beta.41 2023-04-14 10:39:34 +00:00
Mateusz Kwasniewski
c270344cff
feat: visualize adding a default strategy (#3521) 2023-04-14 12:33:04 +02:00
GitHub Actions Bot
4054b4cf3a 4.23.0-beta.40 2023-04-14 10:26:41 +00:00
Gastón Fournier
d4c24c9520
chore: amend open api tags descriptions and examples (#3519)
## About the changes
Adds descriptions and examples to tag schemas
2023-04-14 12:26:19 +02:00
GitHub Actions Bot
74986d672e 4.23.0-beta.39 2023-04-14 08:37:38 +00:00
Gastón Fournier
19982ecbc7
chore: test requirements for openapi (#3511)
## About the changes
This enables us to validate the shape of our OpenAPI schemas by defining
specific json-schema rules that will be evaluated against all our open
API schemas.

Because we know there are things we need to improve, we've added a list
of `knownExceptions`. When fixing some of the known exceptions the tests
will force us to remove the exception from the list, that way
contributing to reducing the number of violations to our own rules.

Co-authored-by: Mateusz Kwasniewski <kwasniewski.mateusz@gmail.com>
Co-authored-by: Thomas Heartman <thomas@getunleash.io>
2023-04-14 10:37:17 +02:00
GitHub Actions Bot
39b53c8f2c 4.23.0-beta.38 2023-04-14 06:59:43 +00:00
Mateusz Kwasniewski
51e871da96
fix: 4 param error handler (#3520) 2023-04-14 08:59:27 +02:00
GitHub Actions Bot
5a2184ccd0 4.23.0-beta.37 2023-04-13 13:09:30 +00:00
andreas-unleash
7e5838a681
fix: remove e2e tests (#3515)
<!-- Thanks for creating a PR! To make it easier for reviewers and
everyone else to understand what your changes relate to, please add some
relevant content to the headings below. Feel free to ignore or delete
sections that you don't think are relevant. Thank you! ❤️ -->
After discussions around e2e tests:
- Became clear that the intention is to test core functionality only

Removing 2 test files:
- notifications.spec.ts : because all PRs are run against the same
heroku backend - no guarantee that more notifications will not happen as
other tests run - so the test is flaky
- settings.spec.ts: depends on instance being enterprise and a flag on  
## About the changes
<!-- Describe the changes introduced. What are they and why are they
being introduced? Feel free to also add screenshots or steps to view the
changes if they're visual. -->

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

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

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


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

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-04-13 16:04:06 +03:00
GitHub Actions Bot
0940b0aa52 4.23.0-beta.36 2023-04-13 12:52:14 +00:00
Jaanus Sellin
5dd5b4f614
feat: linkify comments (#3517) 2023-04-13 15:48:03 +03:00
GitHub Actions Bot
f55c18b475 4.23.0-beta.35 2023-04-13 12:34:06 +00:00
Jaanus Sellin
6874df66f0
feat: cr overview title (#3516) 2023-04-13 15:33:37 +03:00
GitHub Actions Bot
5d31d26530 4.23.0-beta.34 2023-04-13 11:06:20 +00:00
Nuno Góis
d2da6de7d5
feat: adds demo feature flag (#3514)
https://linear.app/unleash/issue/2-912/create-demo-feature-flag

Adds `demo` as a feature flag that controls the new interactive demo
feature.
2023-04-13 12:06:00 +01:00
GitHub Actions Bot
8270d44e40 4.23.0-beta.33 2023-04-13 09:24:49 +00:00
Jaanus Sellin
353cb8c05d
feat: CR title from review page (#3509) 2023-04-13 12:24:31 +03:00
GitHub Actions Bot
a735ad7251 4.23.0-beta.32 2023-04-13 08:09:14 +00:00