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

281 Commits

Author SHA1 Message Date
Jaanus Sellin
e075d46f79
fix: change commit hash step name (#3784) 2023-05-16 13:36:17 +03:00
Jaanus Sellin
a7751dfbdd
feat: set commit hash as static asset version (#3783) 2023-05-16 11:44:50 +03:00
Jaanus Sellin
0a3cf646be
feat: new notify enterprise workflow (#3781) 2023-05-16 11:06:07 +03:00
Jaanus Sellin
da35454bd8
feat: release inputs added to dispatcher (#3756) 2023-05-16 10:38:12 +03:00
Gastón Fournier
00549ceaa4
fix: build is not present in npm package (#3759)
## About the changes
Before publishing we should build. This is because previously we were building on prepare https://github.com/Unleash/unleash/pull/3736/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L45
2023-05-12 13:24:27 +00:00
Gastón Fournier
18d585cd5f
fix: update GH action (#3758)
## About the changes
Another piece requiring changes, which adapts to:
https://github.com/Unleash/unleash/pull/3736
2023-05-12 12:14:39 +00:00
Nuno Góis
a9c24e4262
chore: simplify package scripts (#3736)
# Simplify package scripts

This PR's purpose is to raise a discussion surrounding our current
package scripts.

It includes some suggestions that aim to simplify the scripts and
hopefully bring a much more straightforward approach to developing and
contributing to Unleash.

Building (prod) should only happen **explicitly** and when needed.

## Before PR (current behavior)

- Clone the project;
- Open 2 terminals: One for `unleash` and another for
`unleash/frontend`;
- On `unleash`: 
  - Run `yarn` (which will also build, for some reason?);
  - Run `yarn start:dev` to start backend in dev mode (`tsc-watch`);
- On `unleash/frontend`:
  - Run `yarn` (which will also build, for some reason?);
  - Run `yarn start` to start frontend in dev mode (`vite`);

So it seems to me like we build unnecessarily every time we install
dependencies. Neither dev scripts need to build the project, as backend
uses `tsc-watch` and frontend uses `vite`. I'm unsure why this is the
case, as building can take a very long time.


![image](https://github.com/Unleash/unleash/assets/14320932/5ecb7df1-e5b4-4d70-ba7e-97119f5d1116)

There's also some complexity in the way we need to split the terminal to
`cd` into `frontend` and treat it as a different project. The fact that
we have different script names is also confusing (`yarn start`, `yarn
start:dev`, etc).

## After PR

- Clone the project;
- Run `yarn` to install all dependencies;
- Run `yarn dev` to get started developing Unleash;

Running `yarn` should take care of everything needed to start
developing. This includes installing dependencies for frontend as well.
It should not build projects if we are not being explicit about it,
especially since we don't need to build them at this stage.


![image](https://github.com/Unleash/unleash/assets/14320932/614e42fc-3467-432f-91fc-624b1b35c7c1)

Running `yarn dev` should start the project in dev mode. This means
running both projects in `dev` mode, which for `backend` means running
`tsc-watch` and for `frontend` means running `vite`.

Here this PR attempts to provide a better DX by using
[concurrently](https://www.npmjs.com/package/concurrently) and
[wait-on](https://www.npmjs.com/package/wait-on) - This means both tasks
are ran simultaneously, stdout is labeled accordingly, and are stopped
together. It also means that `frontend` waits for `backend` to be
serving at `4242` before starting, since `frontend` starts pretty much
immediately with `vite` and `backend` takes a bit longer. Of course,
when the `backend` is hot-reloading you may still find some
`ECONNREFUSED`s on `frontend` stdout while it recompiles.


![image](https://github.com/Unleash/unleash/assets/14320932/8bde8ee2-3cad-4e3f-a0db-9eed60cfb04d)

No more splitting your terminal and treating `frontend` as a separate
project.

## Discussion points

Maybe there's a better alternative to `tsc-watch`? I briefly explored
some alternatives and while they had a much faster starting speed,
hot-reload was sometimes slower. IMO we should aspire to run
`src/server-dev.ts` directly and only compile when needed.

Running `dev:backend` still serves a version of the frontend (at 4242).
**Why? Can we remove that behavior?**
I can't imagine a scenario in dev where we wouldn't want to run the
latest version of the frontend with `vite`.

~~**Note:** This PR removes all other out-of-scope scripts to focus on
this revamp. If we decide to merge it, we should evaluate what other
existing scripts we still want to include. May be a good opportunity to
clean up unused ones and only include the ones we really use. This
includes scripts that our GH actions rely on.~~

**Update:** In an effort to minimize impact surface of this PR and make
it a bit more ready for merging:
- It updates some docs in
2a4ff805e8
and
1bbc488251
to reflect our new simplified flow;
- It includes the old package scripts for now in
039bc04699;
- It updates some of our GH actions to reflect the new scripts in
7782cb9b12;

Given its current status I'll promote the PR to "ready for review". 

I still think we should have a second look at our existing scripts and
GH actions to see what we really need and/or should adapt, but it should
be a team effort so we have a broader context. Maybe on a follow-up PR.

Does this require any changes to related projects (e.g. Enterprise)?

---------

Co-authored-by: Gastón Fournier <gaston@getunleash.io>
2023-05-12 11:23:22 +01:00
Nuno Góis
edefa6fc7e
test: add interactive demo guide e2e test (#3656)
This PR revamps e2e tests, while adding a new one for the interactive
demo guide:
 - Bumps Cypress from `9.7.0` to `12.11.0`;
 - Bumps Cypress GH action from `v2` to `v5`;
 - Makes any adjustments needed;
 - Fixes a lot of issues identified with existing tests;
- Adds new `demo.spec.ts` e2e test that covers the entire demo guide
flow;

**Note:** Currently does not include `demo.spec.ts` in the GH action, as
it
[fails](https://github.com/Unleash/unleash/actions/runs/4896839575/jobs/8744137231?pr=3656)
on step 2.13 (last step of "user-specific" topic). It runs perfectly
fine locally, though.

Might be placebo, but in general tests seem less flaky now and they may
even be faster (especially when not adding the `demo` one, which would
always take a long time).
2023-05-08 09:16:18 +01:00
renovate[bot]
a39f54b4ed
chore(deps): update metcalfc/changelog-generator action to v4.1.0 (#3702)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[metcalfc/changelog-generator](https://togithub.com/metcalfc/changelog-generator)
| action | minor | `v4.0.1` -> `v4.1.0` |

---

### Release Notes

<details>
<summary>metcalfc/changelog-generator</summary>

###
[`v4.1.0`](https://togithub.com/metcalfc/changelog-generator/releases/tag/v4.1.0)

[Compare
Source](https://togithub.com/metcalfc/changelog-generator/compare/v4.0.1...v4.1.0)

-
[afdcb94](afdcb9470a)
- Releasing support for branches with slashes in 4.1.0.
-
[6745040](67450402da)
- Merge pull request
[#&#8203;188](https://togithub.com/metcalfc/changelog-generator/issues/188)
from metcalfc/pr\_183
-
[afbb436](afbb436356)
- Adding tests for branches with slash in names.
-
[f624ce0](f624ce0f5a)
- Add support for / in branch names
-
[1999345](19993455b6)
- Bump eslint from 8.34.0 to 8.36.0
-
[ead7f3a](ead7f3ad70)
- Merge pull request
[#&#8203;187](https://togithub.com/metcalfc/changelog-generator/issues/187)
from metcalfc/dependabot/npm_and_yarn/eslint-8.36.0
-
[e4611ec](e4611eca19)
- Bump eslint from 8.34.0 to 8.36.0
-
[007a68c](007a68c897)
- Merge pull request
[#&#8203;184](https://togithub.com/metcalfc/changelog-generator/issues/184)
from metcalfc/dependabot/npm_and_yarn/eslint-8.34.0
-
[9ffb3f5](9ffb3f53a9)
- Bump eslint from 8.33.0 to 8.34.0
-
[a6c4304](a6c430458e)
- Merge pull request
[#&#8203;182](https://togithub.com/metcalfc/changelog-generator/issues/182)
from metcalfc/dependabot/npm_and_yarn/prettier-2.8.4
-
[99d2f13](99d2f13d54)
- Bump prettier from 2.8.3 to 2.8.4
-
[1c1842e](1c1842e90c)
- Merge pull request
[#&#8203;181](https://togithub.com/metcalfc/changelog-generator/issues/181)
from metcalfc/dependabot/npm_and_yarn/eslint-8.33.0
-
[9f82ca5](9f82ca5bea)
- Bump eslint from 8.32.0 to 8.33.0
-
[baff252](baff252eae)
- Merge pull request
[#&#8203;180](https://togithub.com/metcalfc/changelog-generator/issues/180)
from metcalfc/dependabot/npm_and_yarn/vercel/ncc-0.36.1
-
[07a2b81](07a2b81172)
- Bump [@&#8203;vercel/ncc](https://togithub.com/vercel/ncc) from 0.36.0
to 0.36.1
-
[8434262](8434262796)
- Merge pull request
[#&#8203;177](https://togithub.com/metcalfc/changelog-generator/issues/177)
from metcalfc/dependabot/npm_and_yarn/prettier-2.8.3
-
[2a6983c](2a6983c960)
- Merge pull request
[#&#8203;178](https://togithub.com/metcalfc/changelog-generator/issues/178)
from metcalfc/dependabot/npm_and_yarn/eslint-8.32.0
-
[8ad4443](8ad44437b3)
- Bump eslint from 8.31.0 to 8.32.0
-
[1526b06](1526b0627d)
- Bump prettier from 2.8.2 to 2.8.3
-
[3177d3f](3177d3f626)
- Merge pull request
[#&#8203;176](https://togithub.com/metcalfc/changelog-generator/issues/176)
from metcalfc/dependabot/npm_and_yarn/prettier-2.8.2
-
[9631f7a](9631f7af35)
- Bump prettier from 2.8.1 to 2.8.2
-
[682bb79](682bb796f8)
- Merge pull request
[#&#8203;175](https://togithub.com/metcalfc/changelog-generator/issues/175)
from metcalfc/dependabot/npm_and_yarn/eslint-8.31.0
-
[a0a7da8](a0a7da8672)
- Bump eslint from 8.30.0 to 8.31.0
-
[c2958f1](c2958f1f63)
- Merge pull request
[#&#8203;173](https://togithub.com/metcalfc/changelog-generator/issues/173)
from metcalfc/dependabot/npm_and_yarn/eslint-8.30.0
-
[10a5fd0](10a5fd04e6)
- Bump actions/stale from 6 to 7
([#&#8203;174](https://togithub.com/metcalfc/changelog-generator/issues/174))
-
[3083199](3083199359)
- Bump eslint from 8.29.0 to 8.30.0
-
[3a5b89e](3a5b89e488)
- Remove set-output in favor of GITHUB_OUTPUT
([#&#8203;172](https://togithub.com/metcalfc/changelog-generator/issues/172))
-
[1776f11](1776f11a43)
- Merge pull request
[#&#8203;171](https://togithub.com/metcalfc/changelog-generator/issues/171)
from metcalfc/dependabot/npm_and_yarn/prettier-2.8.1
-
[0877839](0877839bb8)
- Merge pull request
[#&#8203;169](https://togithub.com/metcalfc/changelog-generator/issues/169)
from metcalfc/dependabot/npm_and_yarn/eslint-8.29.0
-
[ac3ac34](ac3ac348dd)
- Bump prettier from 2.8.0 to 2.8.1
-
[f6eef02](f6eef02196)
- Bump eslint from 8.28.0 to 8.29.0
-
[db4799e](db4799e0d1)
- Merge pull request
[#&#8203;170](https://togithub.com/metcalfc/changelog-generator/issues/170)
from metcalfc/dependabot/npm_and_yarn/vercel/ncc-0.36.0
-
[5d4ff88](5d4ff88fc2)
- Bump [@&#8203;vercel/ncc](https://togithub.com/vercel/ncc) from 0.34.0
to 0.36.0
-
[03ce106](03ce106ed0)
- Merge pull request
[#&#8203;167](https://togithub.com/metcalfc/changelog-generator/issues/167)
from metcalfc/dependabot/npm_and_yarn/eslint-8.28.0
-
[43ceb1d](43ceb1d18f)
- Merge pull request
[#&#8203;168](https://togithub.com/metcalfc/changelog-generator/issues/168)
from metcalfc/dependabot/npm_and_yarn/prettier-2.8.0
-
[f2773af](f2773af55c)
- Bump prettier from 2.7.1 to 2.8.0
-
[1c00ff3](1c00ff33ba)
- Bump eslint from 8.26.0 to 8.28.0

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-06 12:03:26 +00:00
renovate[bot]
115a689c07
chore(deps): update lycheeverse/lychee-action action to v1.7.0 (#3701)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[lycheeverse/lychee-action](https://togithub.com/lycheeverse/lychee-action)
| action | minor | `v1.6.1` -> `v1.7.0` |

---

### Release Notes

<details>
<summary>lycheeverse/lychee-action</summary>

###
[`v1.7.0`](https://togithub.com/lycheeverse/lychee-action/releases/tag/v1.7.0):
Version 1.7.0

[Compare
Source](https://togithub.com/lycheeverse/lychee-action/compare/v1.6.1...v1.7.0)

##### What's Changed

- Fix three typos in README by
[@&#8203;phieri](https://togithub.com/phieri) in
[https://github.com/lycheeverse/lychee-action/pull/184](https://togithub.com/lycheeverse/lychee-action/pull/184)
- CI: Automatic vX tag update workflow by
[@&#8203;tooomm](https://togithub.com/tooomm) in
[https://github.com/lycheeverse/lychee-action/pull/185](https://togithub.com/lycheeverse/lychee-action/pull/185)
- Format arguments in CI pipeline by
[@&#8203;mre](https://togithub.com/mre) in
[https://github.com/lycheeverse/lychee-action/pull/186](https://togithub.com/lycheeverse/lychee-action/pull/186)
- Test lychee cache by [@&#8203;mre](https://togithub.com/mre) in
[https://github.com/lycheeverse/lychee-action/pull/187](https://togithub.com/lycheeverse/lychee-action/pull/187)
- Cleanup tar archive; make installation more robst by
[@&#8203;mre](https://togithub.com/mre) in
[https://github.com/lycheeverse/lychee-action/pull/189](https://togithub.com/lycheeverse/lychee-action/pull/189)
- Readme: Add info about split up cache steps by
[@&#8203;tooomm](https://togithub.com/tooomm) in
[https://github.com/lycheeverse/lychee-action/pull/190](https://togithub.com/lycheeverse/lychee-action/pull/190)
- bump lychee version by [@&#8203;mre](https://togithub.com/mre) in
[https://github.com/lycheeverse/lychee-action/pull/192](https://togithub.com/lycheeverse/lychee-action/pull/192)

##### New Contributors

- [@&#8203;phieri](https://togithub.com/phieri) made their first
contribution in
[https://github.com/lycheeverse/lychee-action/pull/184](https://togithub.com/lycheeverse/lychee-action/pull/184)

**Full Changelog**:
https://github.com/lycheeverse/lychee-action/compare/v1.6.1...v1.7.0

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-06 05:45:31 +00:00
Christopher Kolstad
1b248a03e9
docs: Metrics tag openapi docs (#3572)
I've copied most of the descriptions from what we did for batch metrics
under the Edge tag, however there are a couple of top level descriptions
that are "fine" but I'm definitely open to suggestions.

---------

Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2023-04-26 12:10:57 +02:00
Gastón Fournier
201c86838f
Test npm publish (#3554)
## About the changes

https://github.blog/changelog/2022-10-24-npm-v9-0-0-released/ introduced
a breaking change in the way they handle files inside package.json which
caused some issues with the way we pack and distribute Unleash:

> npm pack now follows a strict order of operations when applying ignore
rules. If a files array is present in the package.json, then rules in
.gitignore and .npmignore files from the root will be ignored.

What we discovered is that when having a nested .gitignore (the one we
have inside frontend), `npm publish` was taking that nested .gitignore
into account (despite the fact that we also have a package.json with
files inside the same folder). We tricked this by removing the `build`
folder from `frontend/.gitignore` and instead adding it into the root
`.gitignore` which is being ignored by `npm publish` following what's
stated in the release note above.

-----------------

Co-authored-by: Gard Rimestad <gard@getunleash.io>
2023-04-18 15:44:19 +02:00
Gastón Fournier
e6f3b3009a
fix: missing node engine upgrade to 18 (#3552)
## About the changes
Updates frontend engine minimum version to node 18 and also improves
some messages in the release GHA task
2023-04-18 12:42:49 +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
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
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
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
andreas-unleash
99c555bf59
chore: refactor Cypress tests (#3445)
Adds proper typescript support.
Created reusable commands
Added README for cypress test
Refactored tests
Fixed bugs as I found them.
<!-- Thanks for creating a PR! To make it easier for reviewers and
everyone else to understand what your changes relate to, please add some
relevant content to the headings below. Feel free to ignore or delete
sections that you don't think are relevant. Thank you! ❤️ -->

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

<!-- 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-04 11:46:28 +03:00
renovate[bot]
e828f18e65
chore(deps): update akhileshns/heroku-deploy action to v3.12.13 (#3424)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[akhileshns/heroku-deploy](https://togithub.com/akhileshns/heroku-deploy)
| action | patch | `v3.12.12` -> `v3.12.13` |

---

### Release Notes

<details>
<summary>akhileshns/heroku-deploy</summary>

###
[`v3.12.13`](https://togithub.com/AkhileshNS/heroku-deploy/releases/tag/v3.12.13)

[Compare
Source](https://togithub.com/akhileshns/heroku-deploy/compare/v3.12.12...v3.12.13)

Switched to node 16 due to deprecation of node 12 (Thank you to
[@&#8203;brtrick](https://togithub.com/brtrick) for PR)

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-30 01:13:21 +00:00
Mateusz Kwasniewski
a6bc33c04a
Update reset_heroku.yml 2023-03-29 15:11:53 +02:00
Mateusz Kwasniewski
c5d57a51ad
Update reset_heroku.yml 2023-03-29 14:55:40 +02:00
Mateusz Kwasniewski
e62a529331
reset heroku GH action (#3420) 2023-03-29 14:51:45 +02:00
Tymoteusz Czech
f124997485
E2E test - batch updates (#3392) 2023-03-29 14:47:12 +03:00
Gastón Fournier
dfd7830881
fix: add build frontend (#3324)
## About the changes
Building main when building the main branch. I thought it was not needed
but apparently it is
2023-03-15 14:21:45 +00:00
Gastón Fournier
8cdd68914e
chore: avoid building frontend when possible (#3278)
## About the changes
This is based on @nunogois suggestion to split the build in two, so we
don't build the frontend every time we run `yarn`

e2e frontend tests were forced to run by modifying frontend/README.md

### Important files
Some github actions had to be updated to also build the frontend. The
Dockerfile building our docker image was also looked into but it should
work as is


## Discussion points
This is a potentially risky operation as we might overlook something
that requires building the frontend which might lead to invalid builds.
We need to make sure when we do this we don't have any release planned.
2023-03-15 13:17:32 +01:00
Gastón Fournier
8109c13e66
chore: enable strictNullCheck but ignore problems at compile time (#3273)
## About the changes
This enables strictNullChecks which will give us nice hints in our IDEs
to avoid introducing more and hopefully will encourage us to fix some of
the existing problems.

Also:
1. The compiler explicitly ignores these errors
2. The "null checks action" still verifies we're not introducing new
ones.

The combination of these two things should help us to reduce the number
of nulls

For testing that the action still works (cause it was modified), [a
commit](5c4b818d1a)
was added introducing a bunch of null check errors:
https://github.com/Unleash/unleash/actions/runs/4364648191/jobs/7632224720
2023-03-10 10:27:56 +01:00
renovate[bot]
763cd56af3
chore(deps): update lycheeverse/lychee-action action to v1.6.1 (#3283)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[lycheeverse/lychee-action](https://togithub.com/lycheeverse/lychee-action)
| action | patch | `v1.6.0` -> `v1.6.1` |

---

### Release Notes

<details>
<summary>lycheeverse/lychee-action</summary>

###
[`v1.6.1`](https://togithub.com/lycheeverse/lychee-action/releases/tag/v1.6.1):
Version 1.6.1

[Compare
Source](https://togithub.com/lycheeverse/lychee-action/compare/v1.6.0...v1.6.1)

#### Summary

Hotfix release, which restores old behavior for cached links with status
code 2xx.
This temporarily broke some downstream pipelines.

#### What's Changed

- Bump lychee to 0.11.1 by [@&#8203;mre](https://togithub.com/mre) in
[https://github.com/lycheeverse/lychee-action/pull/181](https://togithub.com/lycheeverse/lychee-action/pull/181)

**Full Changelog**:
https://github.com/lycheeverse/lychee-action/compare/v1.6.0...v1.6.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNTkuMCIsInVwZGF0ZWRJblZlciI6IjM0LjE1OS4wIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-09 17:49:57 +00:00
renovate[bot]
adc6863ad9
chore(deps): update lycheeverse/lychee-action action to v1.6.0 (#3237)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change | Pending |
|---|---|---|---|---|
|
[lycheeverse/lychee-action](https://togithub.com/lycheeverse/lychee-action)
| action | minor | `v1.5.4` -> `v1.6.0` | `v1.6.1` |

---

### Release Notes

<details>
<summary>lycheeverse/lychee-action</summary>

###
[`v1.6.0`](https://togithub.com/lycheeverse/lychee-action/releases/tag/v1.6.0):
Version 1.6.0

[Compare
Source](https://togithub.com/lycheeverse/lychee-action/compare/v1.5.4...v1.6.0)

#### What's Changed

- Use random tempfile for `LYCHEE_TMP` by
[@&#8203;mre](https://togithub.com/mre) in
[https://github.com/lycheeverse/lychee-action/pull/173](https://togithub.com/lycheeverse/lychee-action/pull/173)
- Bump actions/checkout from 3.1.0 to 3.2.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/lycheeverse/lychee-action/pull/175](https://togithub.com/lycheeverse/lychee-action/pull/175)
- Bump actions/checkout from 2 to 3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/lycheeverse/lychee-action/pull/177](https://togithub.com/lycheeverse/lychee-action/pull/177)
- Bump to lychee version 0.11.0 by
[@&#8203;mre](https://togithub.com/mre) in
[https://github.com/lycheeverse/lychee-action/pull/180](https://togithub.com/lycheeverse/lychee-action/pull/180)

**Full Changelog**:
https://github.com/lycheeverse/lychee-action/compare/v1.5.4...v1.6.0

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-02 05:53:54 +00:00
renovate[bot]
a596301a3f
chore: update actions/checkout action to v3 (#2915)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [actions/checkout](https://togithub.com/actions/checkout) | action |
major | `v2` -> `v3` |

---

### Release Notes

<details>
<summary>actions/checkout</summary>

###
[`v3`](https://togithub.com/actions/checkout/blob/HEAD/CHANGELOG.md#v310)

[Compare Source](https://togithub.com/actions/checkout/compare/v2...v3)

- [Use @&#8203;actions/core `saveState` and
`getState`](https://togithub.com/actions/checkout/pull/939)
- [Add `github-server-url`
input](https://togithub.com/actions/checkout/pull/922)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
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://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMDUuMSIsInVwZGF0ZWRJblZlciI6IjM0LjEwOC40In0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-28 15:16:45 +01:00
Gastón Fournier
2e749a2b3e
docs: better comment in strictNullCheck action (#3198)
## About the changes
This is a small improvement adding more context to the comment message
when this action fails. 

---------

Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2023-02-27 12:06:09 +00:00
Mateusz Kwasniewski
6ff7851474
refactor: remove explicit shell 2023-02-27 11:32:25 +01:00
Mateusz Kwasniewski
e36de99160
fix: version for older npm 2023-02-27 11:30:42 +01:00
Mateusz Kwasniewski
8886cd6ee6
fix: gh action shell (#3200) 2023-02-27 11:19:31 +01:00
Mateusz Kwasniewski
ac9f054461
fix: limited script for now 2023-02-27 11:14:21 +01:00
Mateusz Kwasniewski
a659ce8ab4
fix: gh action script error code 2023-02-27 11:11:30 +01:00
Mateusz Kwasniewski
10b41fc8b2
fix: Own version update fix (#3196) 2023-02-27 11:00:04 +01:00
Gastón Fournier
4d26088603
chore: comment outcome of null check action (#3133)
## About the change
Post a comment in the Pull Request rather than echo in the console in
case of an error. Also, [reduced the null check errors by
26](https://github.com/Unleash/unleash/actions/runs/4196924954/jobs/7278564622#step:5:40)
2023-02-17 11:12:46 +01:00
Gastón Fournier
95d300379a
chore: moved GH action script to the yaml file (#3119)
## About the changes
- Actions are not counting successfully:
https://github.com/Unleash/unleash/actions/runs/4181713524/jobs/7243938807#step:5:17
- This should fix an issue with running yarn concurrently (which might
be leading to the zero counts)
- Move the code to a GH action so it's easier to debug 
- Added a diff of the reported errors to help the PR author identify the
potential cause
2023-02-16 13:35:54 +01:00
Gastón Fournier
7aed1e0d13
chore: gradually reduce null-check errors (#3094)
## About the changes

In order to move us towards enabling `strictNullChecks` we'd want to
have a way of gradually enabling this without having to fix all errors
at once, this will force us to start reducing the number of null check
issues.

This new workflow:
1. [Checks out the current branch and main into 2 different
folders](https://github.com/Unleash/unleash/pull/3094/files#diff-068f2ace1d1d2e773fb5e4240c83ccab251556fd5524fe13847122878e40da3bR15-R23)
2. Uses the **same** script `gradual-strict-null-checks.sh` (from the
current branch) [against each folder in
parallel](https://github.com/Unleash/unleash/pull/3094/files#diff-068f2ace1d1d2e773fb5e4240c83ccab251556fd5524fe13847122878e40da3bR34-R38)
to count the number of errors if `strictNullChecks` was enabled
3. If the number of potential errors in the current branch is higher
than the number of potential errors in main [it
fails](https://github.com/Unleash/unleash/pull/3094/files#diff-068f2ace1d1d2e773fb5e4240c83ccab251556fd5524fe13847122878e40da3bR41-R46)

As an example, a [new issue was introduced in this
PR](753f57223c)
(and then
[reverted](e4deb62965)),
so we can test the build failure:

https://github.com/Unleash/unleash/actions/runs/4163632636/jobs/7204268519#step:5:10


## Discussion points
This could be a non-mandatory check, just advising, or even adding a
comment in the PR. It might be good to start with a non-strict check,
but at the same time we can decide to make it non-strict if a problem
appears

In some situations, an additional null check error might require us to
fix a bunch of them, increasing the time to deliver. In these cases we
can suppress an individual line with `// @ts-ignore: Object is possibly
'null'.` although might defeat the purpose of this workflow
2023-02-14 15:52:21 +01:00
renovate[bot]
cc30b3b3fd
chore(deps): update docker/login-action action to v2 (#2962)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [docker/login-action](https://togithub.com/docker/login-action) |
action | major | `v1` -> `v2` |

---

### Release Notes

<details>
<summary>docker/login-action</summary>

### [`v2`](https://togithub.com/docker/login-action/compare/v1...v2)

[Compare
Source](https://togithub.com/docker/login-action/compare/v1...v2)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
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://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMDUuNCIsInVwZGF0ZWRJblZlciI6IjM0LjEwOC40In0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-13 09:50:49 +01:00
Mateusz Kwasniewski
719217e190
refactor: move repo sync signal after npm publish (#3071) 2023-02-09 10:05:57 +01:00
Mateusz Kwasniewski
ff3bdf4995
feat: "GH action" trigger another repo 2023-02-09 09:47:42 +01:00
Gard Rimestad
9ef4900baf
feat: remove CI build trigger (#3070)
We do not need this trigger anymore as we auto-release beta versions
from this repository and auto bump the dependency in unleash-enterprise.
2023-02-09 09:13:43 +01:00
Mateusz Kwasniewski
5e98b8cb96
fix: "GH action" push tags for publish 2023-02-08 17:03:12 +01:00
Mateusz Kwasniewski
072154a06f
fix: "Github actions" ignore npm publish scripts 2023-02-08 16:29:49 +01:00
Mateusz Kwasniewski
3969d55686
fix: "GH actions" concurrency without cancel in progress 2023-02-08 16:11:18 +01:00
Mateusz Kwasniewski
88ce04253d
fix: "GH Actions" comments cleanup 2023-02-08 16:01:24 +01:00
Mateusz Kwasniewski
3013166023
fix: gh action 2023-02-08 15:41:28 +01:00
Mateusz Kwasniewski
1da47eb3a4
Update continuous-publish-new-version.yaml 2023-02-08 15:40:43 +01:00
Mateusz Kwasniewski
b310d98da3
feat: continuous beta version npm release (#3066) 2023-02-08 15:32:37 +01:00
Thomas Heartman
1ca918295a
docs: generate docs daily (#3067)
## What

This change fixes the `generate-docs` workflow, so that they'll run
daily as a cron job. The `schedule` property had been erroneously listed
as a sub-property of the `workflow_dispatch` property.

## Why

The way the docs are set up at the moment, they source a lot of their
content from external repos. As it stands, we don't listen for update
events in all of those external dependencies, so we don't know when they
update. We do still want the docs to be reasonably fresh, though.

So to achieve this, we can run this workflow once a day to make sure
that no docs are more than 24 hours old.
2023-02-08 10:30:00 +00:00
Jaanus Sellin
9f93f78fcc
Cypress test for importing (#3058) 2023-02-08 11:16:38 +02:00
andreas-unleash
e589e56373
Add multiple tags (#3032)
Add Tag dialog redesign to allow batch add

Some Refactoring

Signed-off-by: andreas-unleash <andreas@getunleash.ai>

<!-- Thanks for creating a PR! To make it easier for reviewers and
everyone else to understand what your changes relate to, please add some
relevant content to the headings below. Feel free to ignore or delete
sections that you don't think are relevant. Thank you! ❤️ -->

## 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-611](https://linear.app/unleash/issue/1-611/create-a-auto-complete-component-for-tags)

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


https://user-images.githubusercontent.com/104830839/216286897-4e392822-57c2-4e50-a5d8-e89d006b3fa5.mov

---------

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-02-03 12:28:06 +02:00
Tymoteusz Czech
340bcf1d1b
fix: add frontend eslint check (#2562)
Add eslint to CI pipeline
2023-01-02 10:46:32 +01:00
Ivar Conradi Østhus
8e5ca352c3
fix: allow publish-new-version action to run from branch (#2698)
We cannot hard code the branch to be "main" if we want to allow the
release script to also run from branch (e.g. 4.18 maintenance branch)
2022-12-15 09:25:44 +01:00
Mateusz Kwasniewski
1e8801b652
remove postgres because we dont run tests anymore (#2649) 2022-12-09 11:52:48 +01:00
Mateusz Kwasniewski
b62b955f4d
do not test again when creting version from github actions (#2639) 2022-12-09 09:30:16 +01:00
Mateusz Kwasniewski
a15157465c
Update publish-new-version.yaml 2022-12-06 09:46:41 +01:00
Mateusz Kwasniewski
9e1fa06832
Update publish-new-version.yaml 2022-12-06 08:29:34 +01:00
Mateusz Kwasniewski
925b89b899
Update publish-new-version.yaml 2022-12-05 17:10:14 +01:00
Mateusz Kwasniewski
8bf7d31fed
Update publish-new-version.yaml 2022-12-05 16:32:10 +01:00
Mateusz Kwasniewski
e378f904bd
Update publish-new-version.yaml 2022-12-05 16:16:18 +01:00
Mateusz Kwasniewski
6f38f408b6
Update publish-new-version.yaml 2022-12-05 16:04:49 +01:00
Mateusz Kwasniewski
0dc6dfc5aa
Update publish-new-version.yaml 2022-12-05 16:01:40 +01:00
Mateusz Kwasniewski
8243c9d181
Update publish-new-version.yaml 2022-12-05 15:59:13 +01:00
Mateusz Kwasniewski
c1027d0359
Update publish-new-version.yaml 2022-12-05 15:51:20 +01:00
Mateusz Kwasniewski
8895004e03
Update publish-new-version.yaml 2022-12-05 15:49:22 +01:00
Mateusz Kwasniewski
31dbf098a2
github action to publish new npm version (#2599) 2022-12-05 15:46:02 +01:00
NicolaeUnleash
21d67abd6c
readme: Update online demo image (#2528)
adds a slightly modified version of the online demo image from the readme.
2022-11-24 13:35:23 +00:00
Gard Rimestad
a425bcb3b8
feat: upload main branch builds to cdn (#2415)
This enables us to run tip of main builds of enterprise pointing to the
newest frontend builds.
2022-11-14 11:01:07 +01:00
renovate[bot]
0daf3e53d1
chore(deps): update lycheeverse/lychee-action action to v1.5.4 (#2367)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[lycheeverse/lychee-action](https://togithub.com/lycheeverse/lychee-action)
| action | patch | `v1.5.1` -> `v1.5.4` |

---

### Release Notes

<details>
<summary>lycheeverse/lychee-action</summary>

###
[`v1.5.4`](https://togithub.com/lycheeverse/lychee-action/releases/tag/v1.5.4):
Version 1.5.4

[Compare
Source](https://togithub.com/lycheeverse/lychee-action/compare/v1.5.3...v1.5.4)

#### What's Changed

- Cleanup old lychee bin after install by
[@&#8203;mre](https://togithub.com/mre) in
[https://github.com/lycheeverse/lychee-action/pull/172](https://togithub.com/lycheeverse/lychee-action/pull/172)

**Full Changelog**:
https://github.com/lycheeverse/lychee-action/compare/v1...v1.5.4

###
[`v1.5.3`](https://togithub.com/lycheeverse/lychee-action/releases/tag/v1.5.3):
Version 1.5.3

[Compare
Source](https://togithub.com/lycheeverse/lychee-action/compare/v1.5.2...v1.5.3)

#### What's Changed

- Bump lychee version to fix issues with email checking by
[@&#8203;mre](https://togithub.com/mre) in
[https://github.com/lycheeverse/lychee-action/pull/171](https://togithub.com/lycheeverse/lychee-action/pull/171)

**Full Changelog**:
https://github.com/lycheeverse/lychee-action/compare/v1...v1.5.3

###
[`v1.5.2`](https://togithub.com/lycheeverse/lychee-action/releases/tag/v1.5.2):
Version 1.5.2

[Compare
Source](https://togithub.com/lycheeverse/lychee-action/compare/v1.5.1...v1.5.2)

#### What's Changed

- Replace deprecated `::set-output` by `$GITHUB_ENV` by
[@&#8203;Yury-Fridlyand](https://togithub.com/Yury-Fridlyand) in
[https://github.com/lycheeverse/lychee-action/pull/167](https://togithub.com/lycheeverse/lychee-action/pull/167)
- fix: install lychee to a user owner directory by
[@&#8203;aslafy-z](https://togithub.com/aslafy-z) in
[https://github.com/lycheeverse/lychee-action/pull/162](https://togithub.com/lycheeverse/lychee-action/pull/162)
- docs: bump version in README by
[@&#8203;tooomm](https://togithub.com/tooomm) in
[https://github.com/lycheeverse/lychee-action/pull/156](https://togithub.com/lycheeverse/lychee-action/pull/156)
- docs: small adjustments to README by
[@&#8203;tooomm](https://togithub.com/tooomm) in
[https://github.com/lycheeverse/lychee-action/pull/157](https://togithub.com/lycheeverse/lychee-action/pull/157)
- Order args alphabetically by [@&#8203;mre](https://togithub.com/mre)
in
[https://github.com/lycheeverse/lychee-action/pull/159](https://togithub.com/lycheeverse/lychee-action/pull/159)
- Add debug argument by [@&#8203;mre](https://togithub.com/mre) in
[https://github.com/lycheeverse/lychee-action/pull/160](https://togithub.com/lycheeverse/lychee-action/pull/160)
- Bump actions/checkout from 3.0.2 to 3.1.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/lycheeverse/lychee-action/pull/165](https://togithub.com/lycheeverse/lychee-action/pull/165)

#### New Contributors

- [@&#8203;aslafy-z](https://togithub.com/aslafy-z) made their first
contribution in
[https://github.com/lycheeverse/lychee-action/pull/162](https://togithub.com/lycheeverse/lychee-action/pull/162)
- [@&#8203;Yury-Fridlyand](https://togithub.com/Yury-Fridlyand) made
their first contribution in
[https://github.com/lycheeverse/lychee-action/pull/167](https://togithub.com/lycheeverse/lychee-action/pull/167)

**Full Changelog**:
https://github.com/lycheeverse/lychee-action/compare/v1...v1.5.2

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-09 23:59:14 +01:00
renovate[bot]
2fb548f4ca
chore(deps): update metcalfc/changelog-generator action to v4 (#2294)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[metcalfc/changelog-generator](https://togithub.com/metcalfc/changelog-generator)
| action | major | `v3.0.0` -> `v4.0.1` |

---

### Release Notes

<details>
<summary>metcalfc/changelog-generator</summary>

###
[`v4.0.1`](https://togithub.com/metcalfc/changelog-generator/releases/tag/v4.0.1)

[Compare
Source](https://togithub.com/metcalfc/changelog-generator/compare/v4.0.0...v4.0.1)

-
[31b6d6f](31b6d6f9e6)
- Cleaning up some minor dep bumps.
-
[7f6db29](7f6db2945d)
- Merge pull request
[#&#8203;162](https://togithub.com/metcalfc/changelog-generator/issues/162)
from metcalfc/dependabot/npm_and_yarn/eslint-8.26.0
-
[c2c3288](c2c3288f0d)
- Merge pull request
[#&#8203;163](https://togithub.com/metcalfc/changelog-generator/issues/163)
from metcalfc/dependabot/npm_and_yarn/replace-1.2.2
-
[317f12d](317f12dbf2)
- Bump replace from 1.2.1 to 1.2.2
-
[d2c4bfc](d2c4bfcc29)
- Bump eslint from 8.24.0 to 8.26.0

###
[`v4.0.0`](https://togithub.com/metcalfc/changelog-generator/releases/tag/v4.0.0)

[Compare
Source](https://togithub.com/metcalfc/changelog-generator/compare/v3.0.0...v4.0.0)

-
[62b45ff](62b45fffb5)
- Upgrading to Node 16.
-
[78be9a2](78be9a21df)
- Switching to GITHUB_OUTPUT.
-
[b1a95e5](b1a95e5285)
- Switching to node 16.
-
[3327c21](3327c21f3e)
- Merge pull request
[#&#8203;157](https://togithub.com/metcalfc/changelog-generator/issues/157)
from metcalfc/dependabot/npm_and_yarn/eslint-8.24.0
-
[47b26c3](47b26c3621)
- Merge pull request
[#&#8203;159](https://togithub.com/metcalfc/changelog-generator/issues/159)
from metcalfc/dependabot/npm_and_yarn/actions/core-1.10.0
-
[9f319d4](9f319d47c2)
- Merge pull request
[#&#8203;160](https://togithub.com/metcalfc/changelog-generator/issues/160)
from metcalfc/dependabot/npm_and_yarn/actions/github-5.1.1
-
[07e86fc](07e86fc792)
- Bump [@&#8203;actions/github](https://togithub.com/actions/github)
from 5.0.3 to 5.1.1
-
[3b3ffa3](3b3ffa30c6)
- Bump [@&#8203;actions/core](https://togithub.com/actions/core) from
1.9.1 to 1.10.0
-
[4d25998](4d259988b2)
- Bump eslint from 8.23.1 to 8.24.0
-
[b14e7b5](b14e7b5b1f)
- Merge pull request
[#&#8203;153](https://togithub.com/metcalfc/changelog-generator/issues/153)
from metcalfc/dependabot/npm_and_yarn/eslint-8.23.1
-
[f9abb7d](f9abb7dc32)
- Merge pull request
[#&#8203;154](https://togithub.com/metcalfc/changelog-generator/issues/154)
from metcalfc/dependabot/github_actions/actions/stale-6
-
[6188b7b](6188b7bffc)
- Bump actions/stale from 5 to 6
-
[14b9af3](14b9af3836)
- Bump eslint from 8.23.0 to 8.23.1
-
[4d3002b](4d3002ba1b)
- Merge pull request
[#&#8203;151](https://togithub.com/metcalfc/changelog-generator/issues/151)
from metcalfc/dependabot/npm_and_yarn/eslint-8.23.0
-
[76e3028](76e302839c)
- Bump eslint from 8.21.0 to 8.23.0
-
[50f6989](50f6989629)
- Merge pull request
[#&#8203;149](https://togithub.com/metcalfc/changelog-generator/issues/149)
from metcalfc/dependabot/npm_and_yarn/actions/core-1.9.1
-
[f06c31f](f06c31fb2e)
- Bump [@&#8203;actions/core](https://togithub.com/actions/core) from
1.8.2 to 1.9.1
-
[5e0835b](5e0835b79e)
- Merge pull request
[#&#8203;139](https://togithub.com/metcalfc/changelog-generator/issues/139)
from metcalfc/dependabot/npm_and_yarn/vercel/ncc-0.34.0
-
[cd521f3](cd521f3fbf)
- Bump [@&#8203;vercel/ncc](https://togithub.com/vercel/ncc) from 0.33.4
to 0.34.0
-
[2656a3f](2656a3ff66)
- Merge pull request
[#&#8203;143](https://togithub.com/metcalfc/changelog-generator/issues/143)
from metcalfc/dependabot/npm_and_yarn/prettier-2.7.1
-
[f7f7861](f7f7861fbc)
- Bump prettier from 2.6.2 to 2.7.1
-
[b8b5290](b8b5290107)
- Merge pull request
[#&#8203;148](https://togithub.com/metcalfc/changelog-generator/issues/148)
from metcalfc/dependabot/npm_and_yarn/eslint-8.21.0
-
[a9c1b1d](a9c1b1d2f9)
- Bump eslint from 8.16.0 to 8.21.0
-
[199cd09](199cd0966a)
- Merge pull request
[#&#8203;137](https://togithub.com/metcalfc/changelog-generator/issues/137)
from metcalfc/dependabot/npm_and_yarn/actions/github-5.0.3
-
[daf6659](daf6659a8e)
- Merge pull request
[#&#8203;136](https://togithub.com/metcalfc/changelog-generator/issues/136)
from metcalfc/dependabot/npm_and_yarn/actions/core-1.8.2
-
[1f3885f](1f3885f211)
- Merge pull request
[#&#8203;138](https://togithub.com/metcalfc/changelog-generator/issues/138)
from metcalfc/dependabot/npm_and_yarn/eslint-8.16.0
-
[4b50f73](4b50f737c5)
- Bump eslint from 8.14.0 to 8.16.0
-
[83fe5ca](83fe5ca7cd)
- Bump [@&#8203;actions/github](https://togithub.com/actions/github)
from 5.0.1 to 5.0.3
-
[fee05d0](fee05d082b)
- Bump [@&#8203;actions/core](https://togithub.com/actions/core) from
1.8.0 to 1.8.2
-
[c0d0436](c0d0436bbd)
- Merge pull request
[#&#8203;130](https://togithub.com/metcalfc/changelog-generator/issues/130)
from metcalfc/dependabot/github_actions/github/codeql-action-2
-
[b0b413b](b0b413b1ad)
- Merge pull request
[#&#8203;129](https://togithub.com/metcalfc/changelog-generator/issues/129)
from metcalfc/dependabot/npm_and_yarn/eslint-8.14.0
-
[1d1490a](1d1490acc0)
- Merge pull request
[#&#8203;132](https://togithub.com/metcalfc/changelog-generator/issues/132)
from metcalfc/dependabot/npm_and_yarn/actions/core-1.8.0
-
[5f0cef2](5f0cef22d4)
- Bump [@&#8203;actions/core](https://togithub.com/actions/core) from
1.6.0 to 1.8.0
-
[b8c934f](b8c934f1ca)
- Bump eslint from 8.12.0 to 8.14.0
-
[2039c9d](2039c9dc0f)
- Merge pull request
[#&#8203;128](https://togithub.com/metcalfc/changelog-generator/issues/128)
from metcalfc/dependabot/npm_and_yarn/vercel/ncc-0.33.4
-
[bf5a458](bf5a458a53)
- Merge pull request
[#&#8203;126](https://togithub.com/metcalfc/changelog-generator/issues/126)
from metcalfc/dependabot/github_actions/actions/stale-5
-
[0435317](0435317a67)
- Bump github/codeql-action from 1 to 2
-
[d5e4a03](d5e4a03a69)
- Bump [@&#8203;vercel/ncc](https://togithub.com/vercel/ncc) from 0.33.3
to 0.33.4
-
[0bccc87](0bccc87efb)
- Bump actions/stale from 4 to 5
-
[b3e06f6](b3e06f65d0)
- Merge pull request
[#&#8203;125](https://togithub.com/metcalfc/changelog-generator/issues/125)
from metcalfc/dependabot/npm_and_yarn/prettier-2.6.2
-
[4ab1afe](4ab1afe485)
- Bump prettier from 2.6.1 to 2.6.2
-
[193ce4a](193ce4ab75)
- Merge pull request
[#&#8203;124](https://togithub.com/metcalfc/changelog-generator/issues/124)
from metcalfc/dependabot/npm_and_yarn/actions/github-5.0.1
-
[f22520b](f22520b824)
- Bump [@&#8203;actions/github](https://togithub.com/actions/github)
from 5.0.0 to 5.0.1
-
[ca9591e](ca9591e4f7)
- Merge pull request
[#&#8203;123](https://togithub.com/metcalfc/changelog-generator/issues/123)
from metcalfc/dependabot/npm_and_yarn/eslint-8.12.0
-
[0288615](0288615c5a)
- Bump eslint from 8.8.0 to 8.12.0
-
[01033c7](01033c7a0f)
- Merge pull request
[#&#8203;122](https://togithub.com/metcalfc/changelog-generator/issues/122)
from metcalfc/dependabot/npm_and_yarn/prettier-2.6.1
-
[5bb1e89](5bb1e895e2)
- Merge pull request
[#&#8203;121](https://togithub.com/metcalfc/changelog-generator/issues/121)
from metcalfc/dependabot/npm_and_yarn/actions/exec-1.1.1
-
[4fb7bc8](4fb7bc8f7b)
- Merge pull request
[#&#8203;118](https://togithub.com/metcalfc/changelog-generator/issues/118)
from metcalfc/dependabot/github_actions/actions/checkout-3
-
[3df839a](3df839a15b)
- Merge pull request
[#&#8203;115](https://togithub.com/metcalfc/changelog-generator/issues/115)
from metcalfc/dependabot/npm_and_yarn/vercel/ncc-0.33.3
-
[7ad10bc](7ad10bc246)
- Bump prettier from 2.5.1 to 2.6.1
-
[4d7e87e](4d7e87e711)
- Bump [@&#8203;actions/exec](https://togithub.com/actions/exec) from
1.1.0 to 1.1.1
-
[c67ac13](c67ac13236)
- Bump actions/checkout from 2 to 3
-
[3a8e994](3a8e994591)
- Bump [@&#8203;vercel/ncc](https://togithub.com/vercel/ncc) from 0.33.1
to 0.33.3
-
[32b2a9d](32b2a9d3d1)
- Merge pull request
[#&#8203;113](https://togithub.com/metcalfc/changelog-generator/issues/113)
from metcalfc/dependabot/npm_and_yarn/node-fetch-2.6.7
-
[91f9837](91f98370eb)
- Bump node-fetch from 2.6.6 to 2.6.7
-
[90ea792](90ea792f98)
- Merge pull request
[#&#8203;112](https://togithub.com/metcalfc/changelog-generator/issues/112)
from metcalfc/dependabot/npm_and_yarn/eslint-8.8.0
-
[ddb5dcb](ddb5dcbde5)
- Bump eslint from 8.6.0 to 8.8.0
-
[adcb9e3](adcb9e3fe4)
- Merge pull request
[#&#8203;110](https://togithub.com/metcalfc/changelog-generator/issues/110)
from metcalfc/dependabot/npm_and_yarn/eslint-8.6.0
-
[f1a4362](f1a4362ec4)
- Bump eslint from 8.4.1 to 8.6.0
-
[3a8fa5f](3a8fa5f441)
- Merge pull request
[#&#8203;109](https://togithub.com/metcalfc/changelog-generator/issues/109)
from metcalfc/dependabot/npm_and_yarn/vercel/ncc-0.33.1
-
[e588057](e588057c44)
- Bump [@&#8203;vercel/ncc](https://togithub.com/vercel/ncc) from 0.33.0
to 0.33.1
-
[04f822a](04f822a59d)
- Merge pull request
[#&#8203;105](https://togithub.com/metcalfc/changelog-generator/issues/105)
from metcalfc/dependabot/npm_and_yarn/prettier-2.5.1
-
[8d588bb](8d588bb685)
- Merge pull request
[#&#8203;107](https://togithub.com/metcalfc/changelog-generator/issues/107)
from metcalfc/dependabot/npm_and_yarn/eslint-8.4.1
-
[049d721](049d721a05)
- Bump eslint from 8.3.0 to 8.4.1
-
[d36cc2c](d36cc2c9d3)
- Bump prettier from 2.5.0 to 2.5.1
-
[188a7c9](188a7c9a5d)
- Merge pull request
[#&#8203;104](https://togithub.com/metcalfc/changelog-generator/issues/104)
from metcalfc/dependabot/npm_and_yarn/vercel/ncc-0.33.0
-
[fbb1a6e](fbb1a6e574)
- Merge pull request
[#&#8203;103](https://togithub.com/metcalfc/changelog-generator/issues/103)
from metcalfc/dependabot/npm_and_yarn/prettier-2.5.0
-
[77d58d7](77d58d7940)
- Bump [@&#8203;vercel/ncc](https://togithub.com/vercel/ncc) from 0.31.1
to 0.33.0
-
[5d9b026](5d9b02630c)
- Bump prettier from 2.4.1 to 2.5.0
-
[b2f13c8](b2f13c87a6)
- Update README for reverse changes.
-
[74a0d45](74a0d45611)
- Fix version numbers in docs.

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
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://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC42LjEiLCJ1cGRhdGVkSW5WZXIiOiIzNC4xOS4wIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-09 23:01:01 +01:00
Gastón Fournier
f1634bb524
fix: adapt to new CI builder format (#2303)
* fix: escape single quotes for curl

* Use new format of CI builder
2022-10-31 14:05:26 +01:00
Gastón Fournier
e1883caf0c
fix: escape single quotes ' for curl (#2272) 2022-10-27 14:35:46 +02:00
Gastón Fournier
b82d2b22d7
feat: trigger unleash-ci-builder (#2192)
* feat: trigger unleash-ci-builder

* Move job to build step
2022-10-14 16:48:03 +02:00
renovate[bot]
d30d2cdf0d
chore(deps): update lycheeverse/lychee-action action to v1.5.1 (#2156)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-09 20:22:56 +00:00
Tymoteusz Czech
47152cf05b
Feat/invite user (#2061)
* refactor: user creation screen cleanup

* feat: deprecation notice for google sso

* fix: docs openid typo

* invite link bar

* invite link page

* fix prettier docs

* regenerated openapi

* hooks for invite page api

* update openapi

* feat: invite link update

* feat: add public signup token soft-delete

* public signup frontend feature flag

* fix: new user api issues

* feat: allow for creating new user from invite link

* Feat/invite user public controller (#2106)

* added PublicInviteController for public urls

* added PublicInviteController for public urls

* added PublicInviteController for public urls

* added PublicInviteController for public urls

* fix test

* fix test

* update openapi

* refactor: password reset props

* fix: public invite schema and validation

Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>

* user invite frontend

Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>

* invite link delete confirmation dialog

* refactor: password reset action

* fix: new user invite loading state

* fix: run ts check with ci

* revert openapi changes

* fix: invite token api interface

* fix: openapi schema index

* fix: update test snapshots

* update frontend snapshot

* fix: prettier ci

* fix: updates after review

Co-authored-by: andreas-unleash <104830839+andreas-unleash@users.noreply.github.com>
Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
2022-09-30 13:01:32 +02:00
Gastón Fournier
65f2aaf6f5
fix: support coverage reports on external PRs (#2087)
* fix: support coverage reports on external PRs
* removed the coverage comment on the PR until we can investigate this further

Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2022-09-27 15:51:04 +02:00
Gastón Fournier
c8a007684a
Revert usage of pull_request_target (#2088) 2022-09-26 12:53:20 +02:00
Thomas Heartman
2d04bd9ea2
Add OpenAPI docs (#1391) (#2066)
## What

This PR (finally 🎉) adds generated OpenAPI docs to the official Unleash documentation. In addition to generating docs when things get merged to main, it also pushes new doc updates every day at 12:00 AM (cron `@daily`).

## Why

Now that we have OpenAPI'd all the things, we can finally start using it. This will allow us to remove hand-written api docs from the documentation and should make sure everything is always kept up to date.

### Generating from us-hosted (Unleash enterprise)

Unleash has several different versions (open source, pro, enterprise). The versions do not necessarily have the exact same api surface. In fact, the enterprise version has a few endpoints that open source does not.

Because we want to have _all_ endpoints listed in the documentation we need to generated the docs from an enterprise spec. Which brings us into the next point:

### The need for scheduled jobs

Regarding the daily scheduled tasks to update the documentation: why do we need that?

The docs are generated from the tip of the main branch. For most of the docs, this is good and something that we want. However, because the OpenAPI docs are generated from the enterprise edition, it _will not be in sync_ with the open source main branch.

Also, we probably do not want the docs to list the current bleeding edge api changes. Instead, we should prefer to use the latest enterprise release (roughly). However, because we don't get notified when this version is released and deployed, we'll instead run the API generation on a daily cadence.

This isn't the perfect solution, but it's simple and gets us 80% of the way there. More intricate solutions can be set up later.

## How

-   By adding a scheduled workflow to the generate docs config.
-   By adding .gitignore entries for the generated files

There's also some minor changes in styling etc.

## Dependencies

This is dependent on the changes introduced in #2062 having propagated to the enterprise release, which will probably not be for another week or so.

## Discussion

What should the API reference docs url be? I've set it to be `/reference/api/unleash/*` for now, but I'm on the fence about whether it should be `apis` or `api` in there. I also want to get the proxy and other APIs in there as we grow.

-------

## Commits

* docs: style openapi operation buttons

* docs: minor operation badge adjustments

* docs: use permalink to css snippet i copied

* docs: ignore files related to openapi generation

* docs: re-enable openapi docs

* Docs(#1391): prep for integration

* docs(#1391): run docs generation daily

* docs(#1391): add generation step to doc prs too

* docs(#1391): use the US hosted instance to generate docs

* docs(#1391): move doc generation into build command

* docs(#1391): use `/reference/api/*` instead of `/reference/apis/*`
2022-09-19 14:50:24 +02:00
Gastón Fournier
ee6ec888a7
feat: Update to pull_request_target (#2059)
External builds are failing to upload coverage report
2022-09-13 09:57:14 +02:00
sjaanus
e6e6da6a44
Revert workflow (#2051) 2022-09-09 06:51:56 +00:00
Gastón Fournier
6e52718eab
Schedule link checker action (#2050)
Runs at 12:30 UTC on Mon, Tue, Wed, Thu and Fri
2022-09-07 16:38:39 +02:00
Gastón Fournier
6ef8c78e06
docs: test broken links in website (#1912)
The action triggers manually as a first step to test this functionality. In the near future, we might schedule it
2022-09-07 13:31:38 +00:00
sjaanus
e21cf00ca7
Merge e2e tests into matrix (#2007) 2022-08-30 13:23:09 +00:00
olav
5ba0f3b5f0
refactor: remove duplicate install/build step (#1994) 2022-08-29 15:26:17 +02:00
sjaanus
ac957a096c
Fix changelog (#1991) 2022-08-29 12:32:06 +00:00
sjaanus
d0631f0d74
Move e2e tests from frontend to backend .github (#1975)
* Add e2e tests

* Remove cypress key

* Add project tag

* Add cypress to root

* Add cypress working directory and package.json in subfolder

* Remove record flag

* Add contains to url check

* Test segment e2e test

* Remove one of contains

* Test e2e tests

* Fix e2e

* Test new yml

* New yaml

* Test different echo

* Update workflows

* Fix deployment url

* Fix formatting
2022-08-29 12:25:11 +00:00
sjaanus
a1ce89bedc
Merge frontend with backend (#1962)
* fix: use the frontend dir from the backend

* Build is now working

* Fix workflows

* Fix workflows

* Fix build PRs

* Test coverage workflow

* Test coverage

* Test coverage run

* Fix jest report

* refactor: add missing frontend build

* refactor: ignore frontend dir for coverage

* refactor: run frontend build in PRs

* refactor: run backend tests in PRs

* Revert "refactor: run backend tests in PRs"

This reverts commit 22cabddfd1.

* refactor: remove unused frontend build file

* refactor: test workflows in PR

* refactor: use a prepare script for the frontend

* refactor: simplify yarn build scripts

* refactor: fix check-release script

* Revert "refactor: test workflows in PR"

This reverts commit 496ae19404.

* refactor: remove unused gitignore lines

* refactor: remove renovate config from the frontend repo

* refactor: remove frontend repo license

* refactor: remove frontend repo changelog

* refactor: update frontend repo readme

* refactor: add frontend node_modules to dockerignore

* refactor: update the docker yarn.lock snapshot

Co-authored-by: olav <mail@olav.io>
2022-08-26 07:25:31 +00:00
Christopher Kolstad
ea8b78669e
improvement: mark github releases as prerelease (#1808)
This marks alpha and beta releases as prereleases, so github's release
tab doesn't show beta releases as our latest releases anymore
2022-07-12 15:34:10 +02:00
renovate[bot]
aa415610f7
chore(deps): update docker/build-push-action action to v3 (#1766)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-11 14:01:45 +02:00
renovate[bot]
f444a59065
chore(deps): update docker/setup-qemu-action action to v2 (#1770)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-11 14:01:26 +02:00
renovate[bot]
4c4a3b458d
chore(deps): update docker/setup-buildx-action action to v2 (#1769)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-11 14:01:04 +02:00
Thomas Heartman
a3aff4421b
Meta: use org-wide stale bot config (#1789) 2022-07-05 15:59:11 +02:00
Gard Rimestad
0ffa52c9e4
feat: publish docker containers on tag builds (#1788)
This moves the production of docker releases from Unleash/unleash-docker
to this repository.
2022-07-05 15:55:17 +02:00
sellinjaanus
04fb065df4
Added missing archivedAt to featureSchema (#1779)
* Added missing archivedAt to featureSchema

* Added archivedAt to feature toggle.
Added archived_at to db

* Add test

* Add test

* Bug fix

* Bug fix

* update archivedAt to date-time

* Code refactoring done

* Conver to static and remove unused methods

* Add tests

* Fixes

* Fix

* Removed docker file from linting

* Fix segment test

* Fix failing test

* Make fixes

Co-authored-by: andreas-unleash <andreas@getunleash.ai>
Co-authored-by: andreas-unleash <104830839+andreas-unleash@users.noreply.github.com>
2022-07-01 11:51:26 +00:00
renovate[bot]
390ae8df2b
chore(deps): update docker/metadata-action action to v4 (#1768)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-06-29 09:36:09 +02:00
renovate[bot]
fbbd037d35
chore(deps): update docker/login-action action to v2 (#1767)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-06-29 09:24:47 +02:00
Gard Rimestad
5d5fc37dfd
Feat/docker container on main builds (#1762)
* feat: build docker containers when pushing to main

The intent here is to publish a docker container for every build of
main. This will make it easier to run the tip of main.
2022-06-28 16:13:00 +02:00
Christopher Kolstad
90b72f1162
chore: update setup-node task to activate yarn cache (#1661) 2022-06-09 14:26:35 +02:00
Ivar Conradi Østhus
5dc7d8dfac
Create codeql-analysis.yml 2022-05-23 12:22:31 +02:00
Ivar Conradi Østhus
5460245a67
fix: do not produce report.json in coverage action for now 2022-05-20 19:29:14 +02:00
Ivar Conradi Østhus
3c91acca4c
fix: coverage action 2022-05-20 16:48:13 +02:00
Ivar Conradi Østhus
51c1c790b4
fix: inline coverage action script commands 2022-05-20 16:41:43 +02:00
Ivar Conradi Østhus
477779069d
fix: switch gh token for coverage action 2022-05-20 16:23:42 +02:00
Thomas Heartman
312b5d42e8
meta: add external PRs to project board
The `pull_request` hook runs in the context of the proposed changes. That means that for forks, this action won't have access to the required secrets for it to complete. As such, PRs from outside contributors won't work correctly.

The `pull_request_target` hook, however, runs in the context of the target branch, and thus has all the permissions it needs. The [github docs for this hook](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target) also indicate that this is the way to go:

> This event allows your workflow to do things like label or comment on pull requests from forks. Avoid using this event if you need to build or run code from the pull request.

## Interesting note for PRs

It seems that when this change is proposed as a PR, the expected action (_add new item to project board_) does not run. However, this does not affect other new PRs. Also, after merging it works as expected, for both external and internal contributors.
2022-05-20 15:21:54 +02:00
Ivar Conradi Østhus
4eaec6e1d3
fix: add gh creds to coverage action 2022-05-20 12:25:17 +02:00
Ivar Conradi Østhus
f681f83706
fix: coverage action 2022-05-20 12:19:08 +02:00
Ivar Conradi Østhus
b25435052b
fix: coverage build for main should be a seperate workflow 2022-05-20 12:09:16 +02:00
Ivar Conradi Østhus
b16e842849
fix: auto-push coverage 2022-05-20 12:00:30 +02:00
Ivar Conradi Østhus
3d6cfb6582
fix: do not ignore coverage/report.json 2022-05-20 11:44:53 +02:00
Ivar Conradi Østhus
7ddb9f70eb
fix: more debugigng to jest coverage action (POC) 2022-05-20 11:38:54 +02:00
Ivar Conradi Østhus
4869ee8266
fix: more debug 2022-05-20 11:37:43 +02:00
Ivar Conradi Østhus
efb69e6474
fix: add debug step 2022-05-20 11:30:20 +02:00
Ivar Conradi Østhus
34c4f5bd84
fix: only specify base-cov-file for jest action (poc) 2022-05-20 11:20:09 +02:00
Ivar Conradi Østhus
d6f0d83a97
fix: specify coverage files to use for jest pr action (poc) 2022-05-20 11:16:44 +02:00
Thomas Heartman
119d958e7c fix: add version information for reusable workflow
without this, the workflow won't run
2022-05-11 11:38:39 +02:00
Thomas Heartman
c260f90094
chore: Add workflow file to auto-add items to project board (#1588)
This change adds a workflow file that references the reusable workflow
in the unleash/.github repo. It should (if all goes well),
automatically add new issues and prs to the project board.
2022-05-11 11:10:16 +02:00
Ivar Conradi Østhus
25b3d57c3e
fix: pr-build use pull_request_target event 2022-04-28 19:38:19 +02:00
Ivar Conradi Østhus
dc06c2c90d
fix: create separate build for forked PRs 2022-04-25 13:12:50 +02:00
sighphyre
01da74014a fix: trim out test trigger for svg gen 2022-04-22 10:40:23 +02:00
sighphyre
b72ca55f65 feat: use svg generator fork to create contributors and extend limit to 500 2022-04-22 10:36:29 +02:00
sighphyre
aa1f97889c
Update .github/workflows/update_contributors.yaml
Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2022-04-21 14:11:48 +02:00
sighphyre
7c5107e680 feat: add contributors image generation workflow 2022-04-21 13:50:08 +02:00
Ivar Conradi Østhus
2f638334b1
fix: release script syntax 2022-04-20 23:45:02 +02:00
Ivar Conradi Østhus
636f03257f
fix: update npm publish script to select correct dist-tag 2022-04-20 23:38:55 +02:00
sighphyre
9101884c5e feat: add no response action config 2022-04-20 08:30:13 +02:00
sighphyre
5165f342b7 feat: add stalebot config 2022-04-20 08:18:00 +02:00
Thomas Heartman
dfb3bb5b50
Merge pull request #1488 from Unleash/docs/readme-update
Update readme
2022-04-11 09:47:39 +02:00
Thomas Heartman
124c54ca3d fix: Add unleash users image 2022-04-08 13:19:24 +02:00
Thomas Heartman
c42089d6d4 docs: Add online demo illustration image. 2022-04-08 11:02:32 +02:00
Thomas Heartman
bd22d3db30 fix: add missing header image 2022-04-07 15:40:43 +02:00
renovate[bot]
86f03ed3a3
chore(deps): update actions/setup-node action to v3 (#1396)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-06 21:43:29 +02:00
renovate[bot]
19db5bb857
chore(deps): update actions/checkout action to v3 (#1407)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-06 21:43:00 +02:00
Ivar Conradi Østhus
fe45c69fb6
chore: add check-relase script as part of perversion validations. 2022-04-06 20:34:15 +02:00
Ivar Conradi Østhus
f5257b32fa
fix: update release script 2022-04-05 21:18:46 +02:00
Ivar Conradi Østhus
e00d5532ad
fix: add release script 2022-04-05 21:09:03 +02:00
Thomas Heartman
69c29a6cd8 chore: new doc env vars to doc workflows 2022-03-02 12:31:06 +01:00
Ivar Conradi Østhus
0e8bb74e93
fix: jest-coverage-report-action disable annotations 2022-02-02 22:18:50 +01:00
Thomas Heartman
14081c014e chore(workflows): update with new branch names 2021-12-23 14:12:19 +01:00
renovate[bot]
769e8693b3
chore(deps): update metcalfc/changelog-generator action to v3 (#1121)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-25 20:08:33 +01:00
Christopher Kolstad
6c6001619c
Feat/variant api (#1119)
Add a new .../:feature/variants API

This adds
- `GET /api/admin/projects/:projectId/features/:featureName/variants` which returns 
```json
{ version: '1', variants: IVariant[] }
```
- `PATCH /api/admin/projects/:projectId/features/:featureName/variants` which accepts a json patch set and updates the feature's variants field and then returns 
```json
{ version: '1', variants: IVariant[] }
```
- `PUT /api/admin/projects/:projectId/features/:featureName/variants`
 which accepts a IVariant[] and overwrites the current variants list for the feature defined in :featureName and returns
```json
{ version: '1', variants: IVariant[] }

- This also makes sure the total weight of all variants is == 1000
- Validates that there is at least 1 'variable' variant if there are variants
- Validates that 'fix' variants total weight can't exceed 1000
- Adds tests for all these invariants.


Co-authored-by: Simon Hornby <simon@getunleash.ai>
2021-11-24 13:08:04 +01:00
Christopher Kolstad
1848d8d4eb
task: add a workflow that validates docs for PRs (#1123) 2021-11-23 15:19:59 +01:00
renovate[bot]
dc1df85dce
chore(deps): update metcalfc/changelog-generator action to v2 (#1062)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-26 20:14:02 +02:00
Ivar Conradi Østhus
ffec4f6342 fix: rename websitev2 to website 2021-10-26 11:25:19 +02:00
Renovate Bot
985f5cd007 chore(deps): update metcalfc/changelog-generator action to v1.0.1 2021-10-12 11:36:18 +00:00
Ivar Conradi Østhus
14e09fe6aa
fix: modify actions for PRs 2021-10-06 22:16:58 +02:00
Ivar Conradi Østhus
e76345e243
fix: custom test-script for yart coverage reporter action 2021-10-06 13:09:09 +02:00
Ivar Conradi Østhus
fdffb03fb3
fix: adjust test-script for jest-coverage action 2021-10-06 12:41:50 +02:00
Aneesh Relan
7b034b631c
chore: add jest coverage action for pr builds (#997)
Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2021-10-06 12:31:28 +02:00