Christopher Kolstad
c17a1980a2
Add service layer
...
This simplifies stores to just be storage interaction, they no longer react to events.
Controllers now call services and awaits the result from the call.
When the service calls are returned the database is updated.
This simplifies testing dramatically, cause you know that your state is
updated when returned from a call, rather than hoping the store has
picked up the event (which really was a command) and reacted to it.
Events are still emitted from eventStore, so other parts of the app can
react to events as they're being sent out.
As part of the move to services, we now also emit an application-created
event when we see a new client application.
Fixes : #685
Fixes : #595
2021-01-21 10:59:19 +01:00
Christopher Kolstad
5cd2a38cd4
Add notes about tag and tag-type events
2021-01-19 16:15:59 +01:00
Christopher Kolstad
43801f1f13
Add Tags and tag types
...
- First iteration of api for tags and tag-types
- Documentation in place
- Adds three new tables
- tag_types
- tags
- feature_tag
- Tagging a feature is adding a row in the feature_tag
join table
* #665
Co-authored-by: Simen Bekkhus <sbekkhus91@gmail.com>
Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2021-01-14 13:09:05 +01:00
gazconroy
86b2a4f5ad
fix: Swagger to redoc ( #678 )
...
Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2021-01-06 14:24:39 +01:00
Ivar Conradi Østhus
cdfba8f7b1
feat: Adds last-seen dat on toggles
...
When an application updates metrics for a toggle we now
stores the timestamp on the toggle when it was last seen
used by an application. This will make it much easier to
detect toggles not in use anymore.
closes #642
2020-12-22 11:05:00 +01:00
Ivar Conradi Østhus
f2e4b69562
chore(docs): Add link to Open API specifications
2020-12-15 13:42:22 +01:00
gazconroy
e4f7aaa970
fix: OpenApi - Added Client API calls ( #667 )
...
Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2020-12-15 09:14:00 +01:00
Ivar Conradi Østhus
cb7a6d63af
fix: typo in OAS servers
2020-12-03 21:34:13 +01:00
Ivar Conradi Østhus
3bf01b803a
fix: add support for basic auth with simple-auth ( #659 )
2020-12-03 21:29:01 +01:00
Ivar Conradi Østhus
e3bfe2c6d0
fix: remove unused github action
2020-12-03 21:23:51 +01:00
Ivar Conradi Østhus
29ae780421
fix: add heroku server to openapi servers
2020-12-03 21:20:52 +01:00
gazconroy
c7c2f17bd0
feat: First draft of admin Open API specification (OAS) ( #652 )
...
Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2020-12-03 21:09:16 +01:00
Ivar Conradi Østhus
9c384dfae7
feat: Allow migration style import ( #645 )
2020-11-03 14:56:07 +01:00
Ivar Conradi Østhus
3f44c85216
fix: Variants missing from client API docs
...
closes #632
2020-11-01 20:51:31 +01:00
Ivar Conradi Østhus
9052a5a5df
fix(docs): wrong id for feature-types
2020-10-30 13:44:13 +01:00
Ivar Conradi Østhus
2221322e22
fix: Add api documentation for strategy constraints.
...
closes : #637
2020-10-30 09:16:54 +01:00
nickcox
ec81abed63
Fix: typo in metrics-api.md ( #643 )
2020-10-12 07:59:59 +02:00
Ivar Conradi Østhus
83dda55172
feat: add stale property on toggle ( #619 )
2020-08-07 10:46:35 +02:00
Ivar Conradi Østhus
6568457ed8
feat: Add support for toggle types ( #618 )
2020-08-06 11:18:52 +02:00
Joshua Mentzer
89536c57aa
chore: toggle/on|off documentation added ( #515 )
2020-02-20 08:34:31 +01:00
Benjamin Ludewig
4ecf68d015
chore: update import/export documentation
2020-02-20 08:34:22 +01:00
ivaosthu
c25e994322
fix: Update variant protocol
2020-02-20 08:34:20 +01:00
Juan Hoyos
3623052c36
feat: Added feature toggle variants
2020-02-20 08:34:20 +01:00
ivaosthu
26380e6e60
chore(changelog): prepare 3.1.3 release
2020-02-20 08:34:16 +01:00
ivaosthu
8a53d8dca2
chore: Fix formatting all the things
2020-02-20 08:34:15 +01:00
ivaosthu
0c2d58b984
chore(documentation): Added Docusaurus with a website
...
fixes #355
2020-02-20 08:34:14 +01:00
Arjan
5cf5bc20c4
Fix typo
2020-02-20 08:34:14 +01:00
ivaosthu
ddad9e27a3
fix(clientApi): Add namePrefix paramter to /api/client/features
...
Allows the client to limit the response to name with the given prefix.
2020-02-20 08:34:14 +01:00
Denis Dzyubenko
570bdd9f90
Fixed typos and broken links in the documentation
2020-02-20 08:34:12 +01:00
ivaosthu
bc359c2b82
feat(metrics): Expose toggle updates to prometheus
...
closes #323
2020-02-20 08:34:11 +01:00
Ivar Conradi Østhus
9d948b68c4
Update metrics-api.md
2020-02-20 08:34:05 +01:00
Ivar Conradi Østhus
a70f7f7046
Update register-api.md
2020-02-20 08:33:33 +01:00
Ivar
915158212c
Add support for sdkVersion in client registration
2020-02-20 08:30:52 +01:00
sveisvei
7cd2667d9b
Update docs
2020-02-20 08:30:50 +01:00
ivaosthu
a455e0a68c
Adde some prosa for seen-apps #187
2020-02-20 08:30:46 +01:00
ivaosthu
3758490629
Updated strategy-api documentation
2020-02-20 08:30:43 +01:00
ivaosthu
f18fe66cc2
Update strategy-api docs
2020-02-20 08:30:43 +01:00
ivaosthu
51442a6cc4
Remove client_strategies table
...
We can just have a strategies column in the client_applications
table. This solves all our needs, and thus avoids the need
for an extra table.
2020-02-20 08:30:42 +01:00
ivaosthu
9c6fad83c2
Added enpoint for fetching application implementing a strategy
...
`/api/client/applications?strategyName=foo` now returns list of
apps implementing that strategy!
2020-02-20 08:30:42 +01:00
ivaosthu
84e0810d64
Some Metrics API cleanups
2020-02-20 08:30:40 +01:00
ivaosthu
b8014fdddf
Server Metrics with Prometheus
...
Implementation use internal eventBus to enable loose counting in the app.
read more at https://prometheus.io/
Closes #98
2020-02-20 08:30:40 +01:00
ivaosthu
fe4f04f07d
More docs
2020-02-20 08:30:40 +01:00
ivaosthu
41abdae240
Clean up API documentation
2020-02-20 08:30:40 +01:00
ivaosthu
93c37b30c0
Metrics: wrte api documentation
2020-02-20 08:30:40 +01:00