Christopher Kolstad
54d28471f7
fix: openapi spec should only include base path once ( #1755 )
...
* fix: openapi spec should only include base path once
2022-06-27 15:39:08 +02:00
andreas-unleash
64082440d4
OAS for client-metrics controller ( #1739 )
...
* OAS for client-metrics controller
* bug and tests
* update snapshot
* update snapshot
* update snapshot
* bug fix
* fix PR comments
* refactoring re PR comments
* re order routes
* remove grouped-client-metrics-schema.ts
* remove grouped-client-metrics-schema.ts
* updated response
* updated snapshot
* PR comments
* PR comments
* Added tests
* Added tests
* fix
* fix
* fix
2022-06-27 11:17:44 +03:00
olav
5fff523670
refactor: add schemas to client application registration ( #1746 )
2022-06-24 15:29:27 +02:00
olav
286b016b04
refactor: remove response data from schema validation logging ( #1748 )
...
* refactor: remove response data from schema validation logging
* refactor: update validation error snapshots
* refactor: add missing segments field to featureStrategySchema
2022-06-24 13:44:16 +02:00
Nuno Góis
a792594e98
refactor: add OpenAPI schema to simple-password-provider controller ( #1734 )
...
* refactor: add OpenAPI schema to simple-password-provider controller
* finish implementation after merge
* refactor: address PR comments
2022-06-23 08:40:25 +01:00
olav
ac3f076a31
refactor: add schemas to strategy controller ( #1744 )
...
* refactor: avoid duplicate feature strategy operationIds
* refactor: fix flaky feature tests
* refactor: remove duplicate controller error handling
* refactor: unify feature strategy schemas
* refactor: add schemas to strategy controller
2022-06-23 08:10:20 +02:00
olav
e013a72ddd
refactor: add missing tokenUserSchema fields ( #1742 )
2022-06-22 15:37:26 +02:00
olav
ab75d4085e
refactor: add schemas to user admin controller ( #1692 )
...
* refactor: add schemas to user admin controller
* refactor: remove unused SessionService
* refactor: fix search query type confusion
* refactor: add schemas to user controller (#1693 )
* refactor: add schemas to user controller
* refactor: fix getAllUserSplashes method name
* refactor: name and email should not be required on create
* refactor: only some user fields may be updated
* refactor: should not require any fields on user update (#1730 )
* refactor: send 400 instead of 500 on missing username and email
* refactor: should not require any fields for user update
* refactor: note that earlier versions required name or email
* refactor: merge roleDescriptionSchema and roleSchema
2022-06-22 14:55:43 +02:00
sellinjaanus
cecca59f65
Task/open api reset password ( #1740 )
...
* task: add openapi for reset password
* fix: add respondWithValidation and remove email from tests
* fix: change tags to other
2022-06-22 14:31:41 +03:00
andreas-unleash
66452e2860
open-api addon controller ( #1721 )
...
* open-api addon controller
* bug fixes
* bug fixes
* resolve merge conflict
* bug fix
* bug fix
* bug fix
* PR comments
* PR comments
* Resolve merge conflics
* Resolve merge conflics
* bug and tests
2022-06-22 13:49:18 +03:00
Christopher Kolstad
18c720f4e9
Task/open api state ( #1738 )
...
* task: add open api to import/export
2022-06-22 09:09:49 +02:00
olav
5bae11a3fb
fix: avoid 400s for unknown request body fields ( #1737 )
2022-06-21 10:33:03 +02:00
olav
7ee8892704
fix: add missing environments field to uiConfigSchema ( #1736 )
...
* fix: add missing environment field to uiConfigSchema
* refactor: avoid throwing when unleash-server is a dependency in dev mode
2022-06-21 09:34:07 +02:00
Christopher Kolstad
32399291e0
task: add OpenApi spec to metrics route ( #1725 )
...
* task: add OpenApi spec to metrics route
2022-06-21 09:12:40 +02:00
Christopher Kolstad
1821af8fe7
task: add openapi for tags ( #1724 )
...
* task: add openapi for tags
2022-06-21 08:23:30 +02:00
Nuno Góis
123991d28f
refactor: add OpenAPI schema to health-check controller ( #1732 )
...
* refactor: add OpenAPI schema to health-check controller
* refactor: address PR comments
* add type to health-check-schema
* fix: update snap
2022-06-20 11:22:41 +01:00
Nuno Góis
2354656632
refactor: add OpenAPI schema to api-token controller ( #1716 )
...
* refactor: add OpenAPI schema to api-token controller
* refactor: address PR comments
* fix: status codes on environment toggling
* fix tests
* refactor: address PR comments
* refactor: expiresAtSchema -> update-api-token-schema
2022-06-17 20:35:26 +01:00
Nuno Góis
525fce3e86
refactor: add OpenAPI schema to context controller ( #1711 )
...
* refactor: add OpenAPI schema to context controller
* Update src/lib/routes/admin-api/context.ts
Co-authored-by: olav <mail@olav.io>
* address PR comments, misc fixes and improvements
* refactor: address PR comments
* add createdAt to test
* fix: reverted upsert schema after discussion
Co-authored-by: olav <mail@olav.io>
2022-06-17 10:11:55 +01:00
olav
e6b49e4bce
refactor: improve token type error message ( #1709 )
2022-06-17 09:00:13 +02:00
olav
28ecb158a9
refactor: add schemas to feedback controller ( #1698 )
...
* refactor: remove previous getProjects route
* refactor: add schemas to feedback controller
2022-06-17 08:15:56 +02:00
nya1
fb711b4d4a
fix: when payload type is 'json' validate value on toggle variable validation ( #1704 )
...
* fix: when payload type is 'json' validate value on toggle variable validation
* test: add missing feature toggle creation with variant type json
Ref https://github.com/Unleash/unleash/pull/1704#discussion_r896476042
* refractor: remove verbose comment on validateJsonString
Ref https://github.com/Unleash/unleash/pull/1704#discussion_r896482210
* test: add missing feature toggle creation with variant type string
Ref https://github.com/Unleash/unleash/pull/1704#discussion_r896476042
* refractor: move variant value joi validation
Ref https://github.com/Unleash/unleash/pull/1704#discussion_r896478563
2022-06-14 13:08:38 +02:00
Christopher Kolstad
780bb06dba
task: add open-api for tag-types ( #1700 )
...
* task: add open-api for tag-types
2022-06-14 09:06:41 +02:00
olav
7ba8cd05eb
fix: do not require Content-Type for requests without body ( #1707 )
...
* fix: do not require Content-Type for requests without body
* fix: require Content-Type for feature update requests
2022-06-14 08:16:08 +02:00
olav
0a53d67859
refactor: add tests for the schemas list ( #1705 )
...
* refactor: move schemas list to the top
* refactor: add tests for the schemas list
2022-06-13 11:23:36 +02:00
olav
2c5f70d420
refactor: drop permissions table on down migration ( #1699 )
2022-06-13 09:08:46 +02:00
olav
47a719238d
refactor: fix duplicate operationIds ( #1701 )
2022-06-10 15:11:41 +02:00
olav
1264f8cb13
refactor: add schemas to splash controller ( #1697 )
2022-06-10 15:11:07 +02:00
olav
adface17c7
refactor: add OpenAPI schema to environments controller ( #1682 )
...
* refactor: normalize controller file names
* refactor: throw invalid responses in dev mode
* refactor: add OpenAPI schema to environments controller
* refactor: improve JSON schema prop removal code
* refactor: fix empty response specs
2022-06-10 10:04:56 +02:00
sighphyre
18e63d5ea3
feat: add support for handling non standard postgres dates ( #1689 )
...
* feat: add support for handling non standard postgres dates
* docs: update some http docs links to point to their respective https versions
* chore: refactor non standard date handling callback code to be a little clearer
* Update website/docs/deploy/configuring-unleash-v3.md
Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2022-06-10 08:47:31 +02:00
Dennis Szczepanski
7ead887147
fix: Issue #1444 - API import with drop=true deletes existing client keys ( #1668 )
...
* fix: Does not delete api_tokens on drop-Import
* feat: Cleans unused apiTokens on environment import
* refactor: Moves ALL_PROJECTS and ALL_ENVIRONMENTS to constants
* refactor: Renames migration 20220528143630 for a more precise name
* refactor: Removes unecessary console.log
* fix: Adds correct down-script for migration 20220528143630
2022-06-09 15:56:13 +01:00
olav
d7c450abf8
refactor: remove unused my-sessions endpoint ( #1691 )
2022-06-09 14:48:03 +02:00
olav
0f11a33e3a
refactor: remove active-sessions endpoint ( #1690 )
2022-06-09 13:19:20 +02:00
olav
138300ab22
refactor: add OpenAPI schema to feature types controller ( #1684 )
...
* refactor: fix feature types id type
* refactor: fix error-hiding Controller imports
* refactor: add OpenAPI schema to feature types controller
2022-06-09 13:17:13 +02:00
olav
1ed8dd0f0d
refactor: add OpenAPI schema to constraints controller ( #1683 )
...
* refactor: add OpenAPI schema to constraints controller
* refactor: add more schema tests
2022-06-09 10:35:39 +02:00
olav
6adcf103f0
fix: clone segments when cloning a toggle ( #1678 )
...
* refactor: merge segment test files
* fix: clone segments when cloning a toggle
2022-06-08 15:41:02 +02:00
olav
04c107a26e
refactor: add OpenAPI schemas to more controllers ( #1680 )
2022-06-08 15:31:34 +02:00
olav
09a6b578bf
refactor: add OpenAPI schema to UI config controller ( #1681 )
2022-06-08 14:57:39 +02:00
Christopher Kolstad
37211491e7
feat: default to memoizing client features ( #1674 )
2022-06-08 09:43:37 +02:00
olav
13ef025fab
refactor: add soft response schema validation ( #1657 )
...
* refactor: remove most schema refs
* refactor: generalize request/response schemas
* refactor: simplify schema date formats
* refactor: add soft response schema validation
* refactor: fix emptySchema definition
* refactor: update json-schema-to-ts and use refs
2022-06-08 08:01:14 +02:00
olav
dadbc3addc
fix: add missing segment-deleted event data ( #1677 )
2022-06-07 14:06:45 +02:00
Thomas Heartman
fa74f81aa5
fix: env drop event data.name + /api/admin/events docs ( #1662 )
...
* docs: add all /events endpoints and query params
* docs: events page skeleton structure
* docs: correct description of event payloads
* docs: add table with event properties.
* docs: remove duplicate table.
* docs: sort property table
* docs: more work on adding events: feature events
* docs: add examples for most feature events
Still missing are: events that require imports, and
feature-project-change
* docs: scaffold out all events descriptions
* docs: normalize casing
* docs: add brief descriptions to strategy and context events
* docs: Add remaining non-import event descriptions and examples
* docs: add code sample annotations for all example events.
* docs: remove all references to myself
* docs: change "toggle" -> "feature", adjust headings
The headings aren't semantic for this doc yet. We'll need to create a
new document for this.
* docs: update event type description table
* docs: change header level of event type section
* docs: add details around feature-project-change event
* docs: add import type events
* docs: use a better `createdBy` name
* docs: "sort" events so that they're in a consistent order.
* docs: remove reference to ID in addon-config-created event
* fix: drop-environments data.name all-projects -> all-environments
This is probably a bug. Should be double checked.
* docs: clarify that `data.name` is always `all-x` on drop events
* Apply suggestions from code review
Co-authored-by: sighphyre <liquidwicked64@gmail.com>
Co-authored-by: sighphyre <liquidwicked64@gmail.com>
2022-06-07 11:33:30 +01:00
olav
ee35c7ad74
refactor: replace ts-ignore with ts-expect-error ( #1675 )
...
* refactor: replace ts-ignore with ts-expect-error
* refactor: remove unused ts-expect-errors
2022-06-07 11:49:17 +02:00
olav
9aa1f39add
refactor: always accept any content type for GET reqs ( #1672 )
2022-06-07 09:32:18 +02:00
Christopher Kolstad
7895002602
feat: add OpenApi spec to feature variants ( #1659 )
...
* feat: add OpenApi spec to feature variants
2022-06-03 13:16:59 +02:00
Ivar Conradi Østhus
3359dd204d
feat: add option to disable 'Clear-Site-Data' header on logout ( #1645 )
2022-06-03 11:50:58 +02:00
olav
7e3f0329ab
refactor: avoid inlining segments for supported clients ( #1640 )
...
* refactor: add semver lib types
* refactor: avoid inlining segments for supported clients
* refactor: fix FeatureController tests
* refactor: use spec version instead of client version
* refactor: improve header validation errors
2022-06-02 14:07:46 +02:00
Christopher Kolstad
00c84f3c75
fix: use getCreatedBy to set created by on events stored ( #1648 )
2022-06-02 13:52:10 +02:00
olav
224b9cb229
refactor: move segment limits to env vars ( #1642 )
...
* refactor: improve env var helpers
* refactor: remove unused segments client API
* refactor: remove experimental segment flags
* refactor: move segment limits to env vars
* refactor: add segment limits to UIConfig response
* refactor: fix type name casing
2022-06-02 10:44:45 +02:00
Ivar Conradi Østhus
ddb7b075a8
fix: flag for anonymising user search
2022-05-31 21:51:49 +02:00
Christopher Kolstad
606270d86a
feat: Allow extra CSP domains ( #1610 )
...
* feat: Allow extra CSP domains
Co-authored-by: Fredrik Oseberg <fredrik.no@gmail.com>
* fix: eslint:
* fix: allow partial csp domains
* fix: add option and config type
* fix: snapshot
Co-authored-by: Fredrik Oseberg <fredrik.no@gmail.com>
2022-05-31 11:32:15 +02:00