Gard Rimestad
9e949537f6
Run tests with database in docker #64
2014-12-12 16:13:06 +01:00
Jari Bakken
c67b73b5b3
Skip API and create test data in the DB directly (since the API is async)
2014-12-12 16:13:06 +01:00
Jari Bakken
e52c1d16fe
Begin work on running tests against the database:
...
* Add Travis postgresql setup.
* Replace "db mocks" with a before hook that creates the same data
through the HTTP API.
* Reset DB and re-create all fixtures for each test. We'll need
something better here.
* CAVEAT: no concept of a dev vs test database. Running tests will
clear data from the currently configured database.
2014-12-12 16:12:56 +01:00
ivaosthu
f48b89ff87
Fixed presentation and formatting of toggles and log-entries
2014-12-11 08:19:31 +01:00
Ivar Conradi Østhus
756219eb69
Merge pull request #71 from finn-no/promisify_feature_api
...
Cleaned up and changed promises used in the feature API
2014-12-10 19:48:28 +01:00
ivaosthu
00da8d1e3b
Clean up strategyApi with chained-promises
2014-12-10 19:11:52 +01:00
ivaosthu
553f20c3a6
Syntax
2014-12-10 18:51:27 +01:00
ivaosthu
65225ffba0
Validation logic should probably not be in the db-code
2014-12-10 18:49:08 +01:00
ivaosthu
6133f4920b
Cleaned up and changed promises used in the feature API
2014-12-10 18:45:02 +01:00
ivaosthu
778b81f1cd
changed order for feature toggles.
2014-12-10 17:13:26 +01:00
Anders Olsen Sandvik
832b917954
Delete npm-shrinkwrap.json
2014-12-10 16:31:37 +01:00
andsandv
d3fac7a712
Delete node_modules and prune before shrinkwrap
2014-12-10 16:28:24 +01:00
andsandv
007170159a
Add shrinkwrap
2014-12-10 10:09:45 +01:00
Ivar Conradi Østhus
6afd180a2e
Merge pull request #67 from finn-no/remove_strategies
...
Remove strategies
2014-12-09 15:40:09 +01:00
ivaosthu
3568315814
Link for deleting strategies ( #60 )
2014-12-09 09:22:54 +01:00
ivaosthu
c82e45b148
FeatureForm should support viewing deleted strategies
2014-12-08 22:01:48 +01:00
ivaosthu
c16f4a1867
Implemented server side API for deleting strategies.
...
relates to #60
2014-12-08 20:56:22 +01:00
Ivar Conradi Østhus
a96ff2c614
Merge pull request #65 from finn-no/feature/jest-gui-testing
...
Introduce jest as test-framework for gui code (react).
2014-12-03 17:50:45 +01:00
Jari Bakken
c6a7af35c0
Split app and server. No need to start the server for these tests.
2014-12-03 15:23:11 +01:00
ivaosthu
50973142f8
Introduce jest as test-framework for gui code (react).
...
jest is somewhat documented here:
https://facebook.github.io/jest/
related to #61
2014-12-03 15:09:14 +01:00
Jari Bakken
d63560edf7
Ensure unique ids in feature form. Closes #57 .
2014-12-03 14:19:28 +01:00
Jari Bakken
a99e0df101
Refresh feature list immediately on create.
2014-12-03 13:35:47 +01:00
ivaosthu
89dddae4b1
minor css
2014-11-29 14:25:27 +01:00
ivaosthu
556d382570
paddings..
2014-11-29 13:55:38 +01:00
ivaosthu
f02bbb9717
When user chooses to use a custom strategy
...
she should get an input field for each
strategy parameter.
closes #53
2014-11-29 13:37:06 +01:00
ivaosthu
3b32c4cf29
Fixed no legend on edit
2014-11-29 12:16:53 +01:00
ivaosthu
2256861333
minor layout formatting
2014-11-29 12:12:48 +01:00
ivaosthu
6eaf18a7f7
strategies should be order after createdAt ASC
2014-11-29 11:51:57 +01:00
ivaosthu
893b1d2fb3
56 Clean up input form for feature toggles
2014-11-29 11:43:41 +01:00
Jari Bakken
ccaef73b82
Merge pull request #52 from finn-no/strategy-api
...
Strategy api v2
2014-11-27 12:49:39 +01:00
Jari Bakken
74df1aa6ec
Add test for /strategies/:name 403 if strategy exists.
2014-11-25 16:34:24 +01:00
Jari Bakken
459cb30bad
StrategyForm should use 'default' as default strategy for empty forms.
2014-11-25 15:52:15 +01:00
Jari Bakken
20c4fe6702
Add ability to create custom stratgies. Closes #11 .
2014-11-25 15:28:31 +01:00
Jari Bakken
d89ce75906
Test refactoring:
...
* reduce setup duplication
* consistent test file names
2014-11-25 14:41:11 +01:00
Jari Bakken
7963829e61
Minor refactoring
2014-11-25 13:54:25 +01:00
ivaosthu
278a8da162
db-migration: create default strategy with event
2014-11-18 08:16:38 +01:00
ivaosthu
578751ef94
Fixed failing tests
2014-11-18 08:07:10 +01:00
Ivar Østhus
7c5aa8e5bb
strategies should be fetched from DB
2014-11-17 22:39:04 +01:00
Ivar Østhus
e3b8a868d1
Added the default strategies via migration
2014-11-17 21:23:23 +01:00
Ivar Østhus
3fd95a6d3c
added parameters-template to strategies table
2014-11-17 21:13:26 +01:00
Gard Rimestad
df2ddbfb45
Show history inside feature table
2014-11-17 11:15:10 +01:00
Gard Rimestad
cf3eaefb46
Improvements on log view
2014-11-17 10:13:30 +01:00
Gard Rimestad
69ecd65da5
Support long descriptions on feature page
2014-11-17 10:10:58 +01:00
Jari Bakken
92eda2660e
Fix getFeature() semantics
...
It will always reject if the feature is not found, not resolve to null.
2014-11-14 16:58:05 +01:00
Jari Bakken
d591cdad2b
Use knex' map()
2014-11-14 16:40:13 +01:00
Jari Bakken
3d52d97f85
Use knex for DB access. Closes #46 .
2014-11-14 15:06:53 +01:00
Jari Bakken
981c383bb5
Replace PATCH with PUT, which enables editing multiple fields at once.
...
Closes #47 .
2014-11-14 12:56:23 +01:00
Jari Bakken
43c4c62ff3
Fire callback immediately on timer start.
2014-11-14 12:20:11 +01:00
Gard Rimestad
0a95ffe104
Adding test for /event/:name
2014-11-14 08:09:46 +01:00
Gard Rimestad
a4cdec4fb1
Run tests on port 4243, no need to stop local server when running tests.
2014-11-14 07:37:47 +01:00