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

230 Commits

Author SHA1 Message Date
Ivar Conradi Østhus
e1fbe9d013
feat: Default roles and RBAC permission checker. (#735)
This PR Introduces first steps towards RBAC according to our specifications. Rbac will assume users to exist in the Unleash user table with a unique id. This is required to make correct mappings between users and roles.
2021-03-11 22:51:58 +01:00
Ivar Conradi Østhus
40bde7c08b
fix: projectId must follow nameType in query 2021-03-05 14:12:56 +01:00
Christopher Kolstad
9e649118e5
fix: publish events about unannounced applications
fixes: #747
2021-03-05 14:01:15 +01:00
Ivar Conradi Østhus
f4aba80763
fix: messages to slack for archied toggles (#750)
Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
2021-03-05 12:59:35 +01:00
Christopher Kolstad
5c795bdaa7
fix: makes eventstore emit id and createdAt (#746)
fixes: #703
2021-03-04 14:08:53 +01:00
Christopher Kolstad
31082e5227
fix: don't use hardcoded timestamps as default values (#745)
fixes: #741
2021-03-04 13:43:52 +01:00
Fredrik Strand Oseberg
8e0bae7352
feat/return feature on create (#742)
* feat: return feature on create

* refactor: change test to verify returning object

* fix: return undefined instead of null
2021-03-04 13:28:31 +01:00
Christopher Kolstad
ec3d6e95bc chore: remove superfluous logging from client registration 2021-03-04 13:04:32 +01:00
Christopher Kolstad
ec2c6e8824 fix: incorrect sql syntax in migration.
fixes: #743
2021-03-04 12:55:28 +01:00
Christopher Kolstad
4808eb32ff
feat: add support for bulk operations on client apps/instance registr… (#744)
* feat: add support for bulk operations on client apps/instance registration
-- stores client registrations for 5 seconds, then runs distinct and inserts them into db

fixes: #732
2021-03-04 12:54:13 +01:00
Ivar Conradi Østhus
7b2b4acbb6
fix: add unit test for addon-retry 2021-02-28 22:40:04 +01:00
Ivar Conradi Østhus
05e69e6663
fix: not crash if addon http post throws (#738)
added try/catch logic around fetchRetry function so that we do not
crash if addon fetch call throws
2021-02-26 13:46:56 +01:00
Ivar Conradi Østhus
24d2aa5dea
chore: more docs 2021-02-25 22:27:11 +01:00
Ivar Conradi Østhus
55dd2ed72b
fix: project id should be validated correctly on create 2021-02-24 13:24:28 +01:00
Christopher Kolstad
7be884637f
fix: make sure test-data is urlsafe 2021-02-24 12:29:42 +01:00
Christopher Kolstad
44af41547e
feat: make client features endpoint memoizable (#734) 2021-02-24 12:29:39 +01:00
Clint Checketts
5f83fbc43d chore: Add eslint rules and fix strings to pass rules 2021-02-22 22:20:10 -07:00
Clint Checketts
46c55c865f chore: Switch FeatureHasTagError back to js 2021-02-22 21:58:29 -07:00
Clint Checketts
d1933bcd1b chore: Add TS support to code coverage 2021-02-22 21:58:29 -07:00
Clint Checketts
6643de66a5 chore: Begin converting files from JS to TypeScript 2021-02-22 21:57:58 -07:00
Christopher Kolstad
35486efe77
Add instance id to ui-config endpoint 2021-02-22 14:21:23 +01:00
Christopher Kolstad
7ee36d2aea
chore: better uuid name 2021-02-19 11:28:35 +01:00
Christopher Kolstad
ba57822d23
fix: generate uuid in js migration instead of from db 2021-02-19 11:27:29 +01:00
Christopher Kolstad
c2db551252
fix: Don't check version when starting up in dev mode 2021-02-19 11:16:35 +01:00
Christopher Kolstad
b83387a84a
Add a version service (#729)
- Checks versions against https://version.unleash.run
- Generates a unique instance id (uuid)
2021-02-19 11:13:25 +01:00
Ivar Conradi Østhus
b17e9a4bda
feat: Introduce specific "feature stale" events (#727)
fixes: #776
2021-02-18 09:18:04 +01:00
Christopher Kolstad
d017ec7cdc
feat: add db-session store (#722)
* Moves to db managed sessions.
2021-02-18 09:03:21 +01:00
Christopher Kolstad
8bf4214ddb
feat: Handle database connection errors with 500 (#725)
* feat: Handle database connection errors with 500

- If database goes away while unleash is running, unleash now stays
  running, but all api endpoints will return 500.
- This includes our health endpoint, which allows k8s or similar
  orchestrators to decide what should be done, rather than Unleash
  terminating unexpectedly
2021-02-17 15:24:43 +01:00
checketts
f49b5084eb
fix: gh-720 Use express path templates for prometheus metrics (#724) 2021-02-15 13:04:56 +01:00
Fredrik Strand Oseberg
c1aab06798
Feature/setup typescript
This sets up the typescript compiler.

Allowing gradual migration to typescript.

Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai>
Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
Co-authored-by: Fredrik Oseberg <fredrik.oseberg@getunleash.ai>
Co-authored-by: Clint Checkett <clintchecketts@churchofjesuschrist.org>

fixes: #676
2021-02-12 11:42:00 +01:00