1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
Commit Graph

6380 Commits

Author SHA1 Message Date
ivaosthu
b1ccb2e999 Validation logic should probably not be in the db-code 2020-02-20 08:30:18 +01:00
ivaosthu
ae0fdce395 Cleaned up and changed promises used in the feature API 2020-02-20 08:30:18 +01:00
ivaosthu
c2a809a819 changed order for feature toggles. 2020-02-20 08:30:18 +01:00
Anders Olsen Sandvik
08c2614f80 Delete npm-shrinkwrap.json 2020-02-20 08:30:18 +01:00
andsandv
260280e593 Delete node_modules and prune before shrinkwrap 2020-02-20 08:30:18 +01:00
andsandv
be701f5bc3 Add shrinkwrap 2020-02-20 08:30:18 +01:00
ivaosthu
4fdf41850a Link for deleting strategies (#60) 2020-02-20 08:30:18 +01:00
ivaosthu
5515f05350 FeatureForm should support viewing deleted strategies 2020-02-20 08:30:18 +01:00
ivaosthu
c20252d9d7 Implemented server side API for deleting strategies.
relates to #60
2020-02-20 08:30:18 +01:00
ivaosthu
fc42827641 Introduce jest as test-framework for gui code (react).
jest is somewhat documented here:
https://facebook.github.io/jest/

related to #61
2020-02-20 08:30:18 +01:00
Jari Bakken
2f0cddd45b Split app and server. No need to start the server for these tests. 2020-02-20 08:30:18 +01:00
Jari Bakken
0047d52ef4 Ensure unique ids in feature form. Closes #57. 2020-02-20 08:30:18 +01:00
Jari Bakken
0e01c89260 Refresh feature list immediately on create. 2020-02-20 08:30:17 +01:00
ivaosthu
6f65af5c47 minor css 2020-02-20 08:30:17 +01:00
ivaosthu
1bb11527f0 paddings.. 2020-02-20 08:30:17 +01:00
ivaosthu
0a0515e139 When user chooses to use a custom strategy
she should get an input field for each
strategy parameter.

closes #53
2020-02-20 08:30:17 +01:00
ivaosthu
e81b88ad7d Fixed no legend on edit 2020-02-20 08:30:17 +01:00
ivaosthu
45ad98afbc minor layout formatting 2020-02-20 08:30:17 +01:00
ivaosthu
03c84c086c strategies should be order after createdAt ASC 2020-02-20 08:30:17 +01:00
ivaosthu
bc4b80c661 56 Clean up input form for feature toggles 2020-02-20 08:30:17 +01:00
Jari Bakken
63b3c56cc5 Add test for /strategies/:name 403 if strategy exists. 2020-02-20 08:30:17 +01:00
Jari Bakken
41964de9bf StrategyForm should use 'default' as default strategy for empty forms. 2020-02-20 08:30:17 +01:00
Jari Bakken
a169ec1352 Add ability to create custom stratgies. Closes #11. 2020-02-20 08:30:17 +01:00
Jari Bakken
479ea0772a Test refactoring:
* reduce setup duplication
* consistent test file names
2020-02-20 08:30:17 +01:00
Jari Bakken
7f7732a349 Minor refactoring 2020-02-20 08:30:17 +01:00
ivaosthu
6827974fb7 db-migration: create default strategy with event 2020-02-20 08:30:17 +01:00
ivaosthu
a9e7055645 Fixed failing tests 2020-02-20 08:30:17 +01:00
Ivar Østhus
a2f486c0d4 strategies should be fetched from DB 2020-02-20 08:30:17 +01:00
Ivar Østhus
fe17b51bd9 Added the default strategies via migration 2020-02-20 08:30:16 +01:00
Ivar Østhus
a56d92e153 added parameters-template to strategies table 2020-02-20 08:30:16 +01:00
Gard Rimestad
acd51ddcd4 Show history inside feature table 2020-02-20 08:30:16 +01:00
Gard Rimestad
c8c7f57cfb Improvements on log view 2020-02-20 08:30:16 +01:00
Gard Rimestad
abad2d7a6a Support long descriptions on feature page 2020-02-20 08:30:16 +01:00
Jari Bakken
b4f6166afb Fix getFeature() semantics
It will always reject if the feature is not found, not resolve to null.
2020-02-20 08:30:16 +01:00
Jari Bakken
1371560840 Use knex' map() 2020-02-20 08:30:16 +01:00
Jari Bakken
412067c42f Use knex for DB access. Closes #46. 2020-02-20 08:30:16 +01:00
Jari Bakken
d2ce90b394 Replace PATCH with PUT, which enables editing multiple fields at once.
Closes #47.
2020-02-20 08:30:16 +01:00
Jari Bakken
dc14bfc173 Fire callback immediately on timer start. 2020-02-20 08:30:16 +01:00
Gard Rimestad
b05a90f7a7 Adding test for /event/:name 2020-02-20 08:30:16 +01:00
Gard Rimestad
91466c1ec8 Run tests on port 4243, no need to stop local server when running tests. 2020-02-20 08:30:16 +01:00
Gard Rimestad
8e90df1953 Refactoring log view 2020-02-20 08:30:16 +01:00
Gard Rimestad
1777b5a510 Fix event api 2020-02-20 08:30:16 +01:00
Gard Rimestad
78434a7ca1 Adding events/:name 2020-02-20 08:30:16 +01:00
Ivar Conradi Østhus
bec57a5680 Update README.md 2020-02-20 08:30:16 +01:00
Ivar Østhus
a564e31ddb colspan obviously wrong.. 2020-02-20 08:30:16 +01:00
Ivar Østhus
594e271b2a added some traffic lights 2020-02-20 08:30:15 +01:00
Ivar Østhus
73909e3a8d updated gitignore 2020-02-20 08:30:15 +01:00
Gard Rimestad
5fa3915d24 Adding log tab to admin 2020-02-20 08:30:15 +01:00
Gard Rimestad
5f24a2d70c admin - convert feature list into table 2020-02-20 08:30:15 +01:00
Jari Bakken
079ef631df Bump mocha timeout on Travis 2020-02-20 08:30:15 +01:00