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

10470 Commits

Author SHA1 Message Date
Fredrik Strand Oseberg
de0bebd7ad
fix: set correct lables for project charts (#6099) 2024-02-01 10:31:11 +01:00
Fredrik Strand Oseberg
7ec0fa55ab
chore: set version (#6098)
Set the version in package json to represent the new release
2024-02-01 09:40:04 +01:00
Thomas Heartman
58836d3ab2
docs: show links to other sidebars when the navbar is collapsed (#6096)
This change adds links to Unleash Academy from the docs sidebar and
vice versa when the nav bar is collapsed (on narrow screens).
2024-02-01 15:10:30 +09:00
Nnenna Ndukwe
542acd30a9
docs: simplify Python tutorial (#6073)
<!-- 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. -->

- Reducing the amount of steps to implement the Python app feature flag
- fixed spaces & indentations in Python code snippets (mentioned in past
PR review)
- `git clone` my forked repo so we can customize that code in the future
as we improve it, without being blocked.


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

More improvements to be made to the HTTP calls in `routes.py` as I
continue working on resolving some issues I'm running into in the app.

---------

Co-authored-by: Simon Hornby <liquidwicked64@gmail.com>
2024-01-31 08:34:46 -05:00
Jaanus Sellin
bb02ffd8c4
feat: A/B test search feedback variants (#6085)
Search was not getting any feedback. We introduced 3 different variants
to compare conversion rate.


![image](https://github.com/Unleash/unleash/assets/964450/9c4fbcd6-c6d9-4570-9a08-9321087f609a)

![image](https://github.com/Unleash/unleash/assets/964450/6d643d48-1dcb-4a67-9951-7f0c6865f31d)

![image](https://github.com/Unleash/unleash/assets/964450/423dbd54-5dd1-409c-9cd5-295edb9453d9)
2024-01-31 14:32:23 +02:00
Fredrik Strand Oseberg
79e86e1aca
feat: project health widget (#6092)
Adds the project health widget to the edb:

<img width="1243" alt="Skjermbilde 2024-01-31 kl 12 16 23"
src="https://github.com/Unleash/unleash/assets/16081982/7df1e4dc-3245-4c30-bb9e-f21e90697392">
2024-01-31 13:19:28 +01:00
David Leek
fcb8bf6918
chore: scheduled created-by migrations metrics (#6089)
## About the changes

the created_by_user_id data migration from resolving events.created_by
(for both events and features) now emits events on how many rows were
updated.

Adds listeners for these events that records these metrics with
prometheus


![image](https://github.com/Unleash/unleash/assets/707867/3bb02645-0919-4a9a-83fe-a07383ac0be1)
2024-01-31 12:30:42 +01:00
Jaanus Sellin
884bc86745
chore: add documentation to search filters/operators (#6088)
![image](https://github.com/Unleash/unleash/assets/964450/d8920542-78b6-48e1-96a9-6d8d60082849)

![image](https://github.com/Unleash/unleash/assets/964450/406d7f21-01e2-4b75-9b1e-b48f319669dd)
2024-01-31 13:28:15 +02:00
Jaanus Sellin
0f901bbe12
fix: fix skeleton not appearing on feature toggle list (#6093)
The `FeatureToggleListTable` is nested directly within `PageContent`.
`PageContent` was cause for removing the skeleton from the table.
However, this is unnecessary because the table has its own loader that
manages the skeletons. Therefore, `PageContent` does not require a
loader.
2024-01-31 13:26:39 +02:00
Thomas Heartman
67f8a3cccd
docs: change "time burden" to "time investment" (#6079)
This PR changes the wording for the courses from "estimated time burden"
to "estimated time".
2024-01-31 10:48:28 +00:00
Jaanus Sellin
4635c4882f
chore: revert docusaurus-plugin-openapi-docs (#6091)
Reverting https://github.com/Unleash/unleash/pull/5819, because it is
breaking docs
2024-01-31 10:42:18 +00:00
Mateusz Kwasniewski
a9d1bdb4b2
fix: freezing navigation (#6090) 2024-01-31 11:33:39 +01:00
Thomas Heartman
5417662f5a
chore: add metrics for conflict creation detection (#6022)
This PR adds a 'change-request-conflict-created' event whenever someone
save a strategy update for a strategy that's used in either pending or
scheduled change requests.

Data for pending change requests will only be sent if change requests
are enabled. Data for scheduled change requests will be sent regardless.

Getting this data is somewhat involved, so I've extracted as much of the
logic into a separate file as possible.

The event re-uses the existing `change_request` metric and sends the
following data for each change request that we discover conflicts on:

```ts 
{
  state: ChangeRequestState,
  changeRequest: string, // <unleash identifier>#<change request id>
  action: 'edit-strategy',
  eventType: 'conflict-created'
}
```

There's only one action for this for now, but we could expand this event
to things such as strategy deletion, feature archival, in the future.
That said, I'd be happy to take it out.

## Discussion points

### Has the strategy actually been updated?

This does not check whether a strategy has actually changed before
emitting the event, only that you save your strategy changes.

This assumes that most people will simply close the modal by
clicking/tapping outside it or using the escape key instead of pressing
save.

However, it will likely lead to some false positives. If we think that
is an issue, I would suggest adding a check that something in the
strategy has actually changed in a follow-up PR.
2024-01-31 18:56:56 +09:00
Tymoteusz Czech
d77e5391ed
refactor: FlagsChart and FlagsProjectChart components (#6087)
Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
2024-01-31 09:50:50 +00:00
Thomas Heartman
bc95ed654f
docs: add academy links and banners (#6083)
This PR adds academy links and banners. Supersedes #6077
2024-01-31 18:18:21 +09:00
Thomas Heartman
ccf165568a
docs: make navbar separators partially transparent (#6084)
Sets the opacity of the navbar separators to 0.3
2024-01-31 11:17:03 +02:00
Ivar Conradi Østhus
55474124a9
fix: we want to build docs on PRs related to docs 2024-01-31 10:12:36 +01:00
renovate[bot]
0c95cd3f59
fix(deps): update dependency docusaurus-plugin-openapi-docs to v2.0.4 (#5819)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[docusaurus-plugin-openapi-docs](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs)
([source](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/tree/HEAD/packages/docusaurus-plugin-openapi-docs))
| [`2.0.0-beta.3` ->
`2.0.4`](https://renovatebot.com/diffs/npm/docusaurus-plugin-openapi-docs/2.0.0-beta.3/2.0.4)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/docusaurus-plugin-openapi-docs/2.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/docusaurus-plugin-openapi-docs/2.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/docusaurus-plugin-openapi-docs/2.0.0-beta.3/2.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/docusaurus-plugin-openapi-docs/2.0.0-beta.3/2.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>PaloAltoNetworks/docusaurus-openapi-docs
(docusaurus-plugin-openapi-docs)</summary>

###
[`v2.0.4`](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/blob/HEAD/CHANGELOG.md#204-Jan-18-2024)

[Compare
Source](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/compare/v2.0.3...v2.0.4)

High level enhancements

-   Add x-codeSamples support
-   Add callbacks support

Other enhancements and bug fixes

- Add support to x-codeSamples
([#&#8203;697](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/697))
- Remove deprecated node packages
([#&#8203;699](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/699))
- Add Callbacks support
([#&#8203;691](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/691))

###
[`v2.0.3`](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/blob/HEAD/CHANGELOG.md#203-Jan-9-2024)

[Compare
Source](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/compare/v2.0.2...v2.0.3)

High level enhancements

-   Add callbacks support
-   Add markdown support to example/examples summary

Other enhancements and bug fixes

- Add markdown support to example summary
([#&#8203;690](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/690))
- Add Callbacks support
([#&#8203;691](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/691))

###
[`v2.0.2`](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/blob/HEAD/CHANGELOG.md#202-Dec-5-2023)

[Compare
Source](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/compare/v2.0.1...v2.0.2)

High level enhancements

-   Adds security schemes to API Explorer panel

Other enhancements and bug fixes

- Add missing security schemes component
([#&#8203;673](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/673))

###
[`v2.0.1`](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/blob/HEAD/CHANGELOG.md#201-Dec-1-2023)

[Compare
Source](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/compare/v2.0.0...v2.0.1)

High level enhancements

-   Improve support for handling multi-part form data

Other enhancements and bug fixes

- Improve support for handling multipart form data
([#&#8203;666](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/666))
- use SCHEMA_TYPE to distinguish request/response to support
readOnly/writeOnly properties
([#&#8203;665](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/665))
- add negative look behind to exclude colon delimited path segments
([#&#8203;663](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/663))
-   Update deploy-preview.yml
-   update v2.0.0 refs to v3.0.0
-   Update pr-title-check.yaml
-   Update canary-beta-release.yml
-   Update README.md

###
[`v2.0.0`](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/blob/HEAD/CHANGELOG.md#200-Nov-13-2023)

[Compare
Source](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/compare/v2.0.0-beta.5...v2.0.0)

High level enhancements

-   First v2.0.0 stable release!

> Currently only compatible with Docusaurus v2.4.1 -> v2.4.3

Other enhancements and bug fixes

- upgrade to react 18 and demo docusaurus to 2.4.3
([#&#8203;656](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/656))
- allow upgrade to react 18
([#&#8203;651](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/651))
- stop docusaurus support at v2.4.0
([#&#8203;650](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/650))

###
[`v2.0.0-beta.5`](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/blob/HEAD/CHANGELOG.md#200-beta5-Oct-23-2023)

[Compare
Source](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/compare/v2.0.0-beta.4...v2.0.0-beta.5)

High level enhancements

-   Extend charset support for application/json
-   Improve webhook API page layout

Other enhancements and bug fixes

- Improve webhook layout
([#&#8203;646](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/646))
- update deprecation message
([#&#8203;644](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/644))
- allow charset support for application/json
([#&#8203;643](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/643))
- Reuse `createAnyOneOf` while creating a property
([#&#8203;628](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/628))
- Use `sass-loader` module as dependency
([#&#8203;639](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/639))
- Remove react nextui dependency in v2.0.0
([#&#8203;641](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/641))

###
[`v2.0.0-beta.4`](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/blob/HEAD/CHANGELOG.md#200-beta4-Sep-29-2023)

[Compare
Source](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/compare/v2.0.0-beta.3...v2.0.0-beta.4)

High level enhancements

- Expand capacity for building large sites by compressing frontmatter
api property.

Other enhancements and bug fixes

- Fix `makeRequest()` for `formdata` request type
([#&#8203;625](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/625))
- \[UI] Cleanup schema item and explorer panel caret alignment
([#&#8203;624](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/624))
-   revert v2.0.0 schema styles
- Add support for anyOf properties and apply DRY to createSchema
([#&#8203;582](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/582))
- Adds compression support to frontmatter api prop
([#&#8203;606](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/606))
- Unify tabs naming
([#&#8203;612](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/612))
- \[Enhancement] Introduce new theme component names: ApiExplorer,
CodeSnippets
([#&#8203;577](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/577))
- Use SchemaItem to render leaf discriminator properties/nodes
([#&#8203;573](https://togithub.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/573))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 7pm every weekday,before 5am
every weekday" in timezone Europe/Madrid, Automerge - At any time (no
schedule defined).

🚦 **Automerge**: Enabled.

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

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

---

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

---

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

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMjcuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEzNS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-31 09:10:36 +00:00
Ivar Conradi Østhus
ebd53a6ef9
fix: disable building docs (old) 2024-01-31 10:09:32 +01:00
Tymoteusz Czech
e6ccd83739
refactor: LineChart component (#6072)
Initial version of a reusable trend chart, with a tooltip and vertical highlight
2024-01-31 10:07:29 +01:00
Mateusz Kwasniewski
f298d7d511
feat: scheduler overrun protection (#6082) 2024-01-31 09:41:36 +01:00
Thomas Heartman
73322f12f7
chore: remove detectSegmentUsageInChangeRequests flag (#6080)
What it says on the tin. Removes all uses of the
detectSegmentUsageInChangeRequests flag.
2024-01-31 17:24:35 +09:00
Jaanus Sellin
d7eb950f3a
chore: remove featureSearchAPI flag (#6081) 2024-01-31 10:01:31 +02:00
Fredrik Strand Oseberg
aae1d0576f
feat: add project flags component (#6070)
This PR adds project flags line chart component
2024-01-31 08:48:10 +01:00
Jaanus Sellin
c6a2303026
chore: remove featureSearchFrontend flag (#6066) 2024-01-31 09:22:26 +02:00
Thomas Heartman
b2c127c058
docs: fix navbar styling issues: GitHub icon, button background, hidden text (#6078)
This PR fixes the three issues in the nav bar:
1. The GitHub icon was rendered in black in light mode. It should be
white.
2. The toggle theme button's background was white in light mode. It
should be a darker green.
3. The navbar would intersect with the logo due to not compacting
correctly.

The first two issues were caused by using CSS nesting, which is
apparently not supported in Safari yet (and might only be supported if
you have enabled a flag in other browsers).

The last issue was fixed by changing the syntax of a media query. The
new syntax is unsupported in Safari.
2024-01-31 13:40:50 +09:00
Tymoteusz Czech
c9ac4916e8
feat: executive dashboard responsive grid (#6069)
- unified "Widget" component
- column order dependent on screen width
2024-01-30 17:02:13 +01:00
Mateusz Kwasniewski
ccc41dca4e
feat: scheduler init jitter (#6071) 2024-01-30 15:49:35 +01:00
Mateusz Kwasniewski
55b2bb4813
feat: expose project time to production for project flag trends (#6068) 2024-01-30 13:28:20 +01:00
Mateusz Kwasniewski
82e84ec14d
feat: migration for health and time_to_production in flag trends (#6067) 2024-01-30 13:28:10 +01:00
Ivar Conradi Østhus
38df2e1831
fix: add instanceName to license display (#6065)
## About the changes
- Shows the instanceName from the license
- add new feature flag `enableLicenseChecker` used to enforce a valid
license.
2024-01-30 11:05:27 +01:00
Nicolae Socaciu
3ff19f3eb6
improve:schedule-execution-failed-email (#6051)
Improving the email template design


![image](https://github.com/Unleash/unleash/assets/103567375/0c62c1de-6d13-42b8-9898-4567be6ff2aa)

- @andreas-unleash i need you to fix the button for the change request
in case it's not correct like this

- also removing some leftover style from the "scheduled change conflict"
email

---------

Co-authored-by: andreas-unleash <andreas@getunleash.ai>
2024-01-30 11:13:15 +02:00
Jaanus Sellin
febd01a575
chore: update database migration ADR (#6036)
## Key Updates in the ADR

- **Separation of Migrations in PRs**: Migrations are now required to be
carried out in separate pull requests. This change is intended to
improve the monitoring and management of database schema changes during
deployment.

- **Primary Key Requirement for New Tables**: A new paragraph mandates
the inclusion of primary keys in all new tables, emphasizing the
importance of data integrity, efficient data retrieval, and supporting
table relationships. Additionally, by adding primary keys, we resolve
the issue of migrations failing during upgrades in replicated database
setups, as we are not using PostgreSQL replica identities. Exceptions to
this rule require a compelling justification.


Also added better structuring and styling to ADR for better readability.
2024-01-30 11:07:32 +02:00
Fredrik Strand Oseberg
7d6d4064a8
feat: connect dashboard static widgets to data (#6062)
This PR connects the static widgets to actual data
2024-01-30 10:07:16 +01:00
Jaanus Sellin
832884b4f5
fix: admin token should be passed forward from controllers (#5960)
We were sending `user.id` to the service, but if an admin token is used,
there is no `user.id.` Instead, there is
`user.internalAdminTokenUserId`. so we need to use the special method
`extractUserIdFromUser`.

This PR adds this implementation, and now the service correctly
retrieves the appropriate ID for admins.

Related to: https://github.com/Unleash/unleash/pull/5924
2024-01-30 11:03:15 +02:00
Jaanus Sellin
2643ac1356
feat: add CR id to plausible events (#6035)
Added conflict count to CR metrics and CR id.

Something to think about:
There was idea that we can aggregate this data based on CR id, but CR id
is just a number from 0 to x. So it will not be unique across instances.

---------

Co-authored-by: Thomas Heartman <thomas@getunleash.io>
2024-01-30 10:38:39 +02:00
Tymoteusz Czech
46fb40ca08
fix: dashboard layout (#6063)
Align widgets properly on main screen. Responsive view in next PRs
2024-01-30 09:00:06 +01:00
David Leek
9d2c65c9c0
chore: events created by userid migration (#6027)
## About the changes

Schedules a best-effort task setting the value of
events.created_by_user_id based on what is found in the created_by
column and if it's capable of resolving that to a userid/a system id.
The process is executed in the events-store, it takes a chunk of events
that haven't been processed yet, attempts to join users and api_tokens
tables on created_by = username/email, loops through and tries to figure
out an id to set. Then updates the record.

---------

Co-authored-by: Gastón Fournier <gaston@getunleash.io>
2024-01-30 08:22:53 +01:00
Thomas Heartman
6f4f8661c7
docs: update nav bar (#6045)
Update the Unleash docs navbar according to the new spec:

Changing "estimated time burden" to "estimated time" (or "estimated
reading time"), is just a matter of changing the text in the files.
There's nothing special making it say burden other than plain text. That
can be done in a follow-up PR.

The new nav bar includes the Unleash academy and certification dropdowns
as well as the docs and quickstart items. On smaller screen sizes
(between 997 and 1150 px), we hide the word "Unleash" from "Unleash
academy" and "Unleash certification".

The narrowest nav bar:

![image](https://github.com/Unleash/unleash/assets/17786332/13d05b0b-8668-4ff0-b06e-5c3073f0dda8)

When Unleash pops back in: 

![image](https://github.com/Unleash/unleash/assets/17786332/191ae3fe-5fca-4464-b79a-db6995e600c9)

---------

Co-authored-by: markunl <mark@getunleash.io>
2024-01-29 13:30:18 -05:00
Nnenna Ndukwe
1d5d7ee57d
fix: updating links across the React docs (#6054)
<!-- 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. -->

- Simplified wording
- More descriptive ALT text for images
- Included YouTube tutorial link
- Improve code indentation in some code blocks

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

YouTube link at the top of a tutorial or near the bottom?

---------

Co-authored-by: Thomas Heartman <thomas@getunleash.io>
2024-01-29 12:33:41 -05:00
David Leek
c08ac86c5f
chore: filter on token username and user id in SQL instead (#6061)
## About the changes

Change the sorting of features to migrate created_by_user_id for, and
filter out unresolvable feature/users

Query tested manually in enterprise
2024-01-29 15:14:44 +01:00
Mateusz Kwasniewski
8a7e65eaa6
refactor: cleanup fix for persistent set (#6060) 2024-01-29 12:33:01 +01:00
Nuno Góis
c1046079dd
chore: actions modal form (#6057)
https://linear.app/unleash/issue/2-1882/ui-add-actions-modal-and-form

Adds actions modal and form, allowing users to create and edit actions.

The main thing that is missing is adding the remaining fields, which
will be included in a later PR.
2024-01-29 11:15:29 +00:00
Nuno Góis
7da9232516
refactor: add temporary ts-expect-error to setGlobalStore in setHiddenEnvironments 2024-01-29 10:26:00 +00:00
Thomas Heartman
cdb42b3f7b
chore: remove drew as a codeowner for docs (#6056)
Now that Drew isn't at Unleash anymore, he probably doesn't want to get
review requests for docs stuff anymore 💁
2024-01-29 18:10:33 +09:00
David Leek
bbebd293e5
chore: add a migration that removes incorrectly set sysuserid (#6032)
## About the changes

Resets created_by_user_id on events incorrectly marked as -1337 when an actual user has been set in created_by column, to clean up after a bug
2024-01-29 09:16:18 +01:00
David Leek
e652af49af
chore: default the data migration flag for createdbyuserid to false (#6048)
## About the changes

Sets data migration of features and events created_by_user_id to
disabled by default

Map to promise and await all in created by user id migration for features
2024-01-29 08:07:33 +01:00
Mateusz Kwasniewski
ce219f1b74
fix: hidden envs (#6050) 2024-01-26 17:03:10 +01:00
andreas-unleash
4a2d1b0364
fix: return 400 when enabling env of archived toggle (#6049)
Creates a new ArchivedFeatureError.
Throw this error when trying to toggle a feature environment for an
archived feature.

Closes
https://github.com/orgs/Unleash/projects/8/views/1?pane=issue&itemId=51242922

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2024-01-26 16:02:17 +02:00
Mateusz Kwasniewski
a1fa5a4212
feat: flag trends db migration (#6044) 2024-01-26 14:37:15 +01:00