1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
Commit Graph

23 Commits

Author SHA1 Message Date
Gastón Fournier
f9c3259083
fix: partial index on events announced (#4856)
## About the changes
Add partial index on events by announced. This should help avoid `Seq
Scan on events` when the majority of events are announced=true

---
Co-authored-by: Ivar Østhus <ivar@getunleash.io>
Co-authored-by: Gard Rimestad <gard@getunleash.io>
2023-09-28 10:21:16 +02:00
Gastón Fournier
bc68b5d265
chore: remove sync to enterprise from release branches (#4112)
## About the changes
When we do releases on the release branch we should not sync that back
to master on unleash-enterprise repo. At most we can trigger a different
process to automate the release of unleash-enterprise, but that'd be a
different story.
2023-06-28 14:13:18 +02:00
Gastón Fournier
51fc8f0550
chore: avoid building frontend twice (#3918)
## About the changes
Running `yarn install` without the `dist` folder will trigger a `yarn
build` automatically as part of the `prepare script`

As we can see here:
https://github.com/Unleash/unleash/actions/runs/5200272004/jobs/9378770279
```
[build:frontend] ✓ built in 41.10s
// more output
[build:frontend] ✓ built in 39.81s
```
2023-06-08 10:48:28 +02:00
renovate[bot]
6ab62d5bfa
chore(deps): update aws-actions/configure-aws-credentials action to v2 (#3893)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[aws-actions/configure-aws-credentials](https://togithub.com/aws-actions/configure-aws-credentials)
| action | major | `v1` -> `v2` |

---

### Release Notes

<details>
<summary>aws-actions/configure-aws-credentials</summary>

###
[`v2`](https://togithub.com/aws-actions/configure-aws-credentials/releases/tag/v2)

[Compare
Source](https://togithub.com/aws-actions/configure-aws-credentials/compare/v1...v2)

This tag tracks the latest v2.x.x release.

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-06 15:03:11 +02:00
Gastón Fournier
a7bd91d621
fix: Remove repository which is no longer needed (#3900)
## About the changes
Sync fails
https://github.com/Unleash/unleash/actions/runs/5174602051/jobs/9321118800#step:3:23
due to https://github.com/ivarconr/unleash-enterprise/pull/562 because
we now assume the repository is Unleash/unleash

This removes the repository from the payload
2023-06-05 08:03:16 +00:00
Gastón Fournier
64f212fdda
fix: author and email should be for PRs (#3899)
## About the changes
Previous PR https://github.com/Unleash/unleash/pull/3871 we were
supposed to change this for PRs but the change was made on
`release.yaml` file. This fixes the issue
2023-06-05 09:47:20 +02:00
Gastón Fournier
c7d8c9fd25
chore: name and email convention (#3871)
## About the changes
Minor improvement to communicate the author of a commit as `Name
<Email>`

Another option is to send email and name in different fields but we're
only using it here
https://github.com/ivarconr/unleash-enterprise/blob/master/.github/update_dependency_version.sh#L39
so this should be fine
2023-05-26 14:04:41 +00:00
Gastón Fournier
540c5f2cc5
fix: workflow was moved (#3852)
## About the changes
This script was moved, updating the ref
2023-05-24 10:20:31 +02: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
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
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
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
Mateusz Kwasniewski
719217e190
refactor: move repo sync signal after npm publish (#3071) 2023-02-09 10:05:57 +01: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
90b72f1162
chore: update setup-node task to activate yarn cache (#1661) 2022-06-09 14:26:35 +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
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