Commit graph

132 commits

Author SHA1 Message Date
Finn
c6726682d4 Leaderboards corrected and fixes 2017-08-14 16:10:14 +01:00
Finn
d078a09ccd Added receipt datetime string submission validation & validator test 2017-08-14 15:35:23 +01:00
Finn
65d5bab444 Fixed errors and tests and updated DB 2017-08-14 15:04:24 +01:00
Finn
f9703b6561 Updated tests to include receipt datetime submission 2017-08-14 11:55:52 +01:00
Finn
9affdbf08e Removed redundant file and fixed user updat e+ added tests 2017-07-27 14:18:22 +01:00
Tom Bloor
b009fa5c86 Remove admin approve and merge tests for removed code 2017-07-25 14:30:42 +01:00
Tom Bloor
5713f03cf2 Fix test
Needed to initialise a leaderboard for monthly stats
2017-07-20 16:41:35 +01:00
Tom Bloor
559e88d9e6 Fix issue with leaderboard position due to wrong calculation of trend 2017-06-13 23:15:10 +01:00
Tom Bloor
2bf595d135 fIx final few tests for age_range to year_of_birth change 2017-06-13 21:28:42 +01:00
Tom Bloor
c702956777 fix admin approve and merge tests 2017-06-13 21:23:19 +01:00
Tom Bloor
170a056f37 Fix schema tests from year_of_birth change 2017-06-13 21:11:54 +01:00
Tom Bloor
51617a8cbb Move and fix search test 2017-06-13 21:06:53 +01:00
Tom Bloor
cee5a00d18 Rename and fix upload test 2017-06-13 21:05:27 +01:00
Tom Bloor
d73ddb6ba2 Remove AgeRange table and first pass of fixing tests 2017-06-13 21:02:24 +01:00
Tom Bloor
9cd9f8079e Add leaderboard stats endpoint and trends 2017-06-06 22:30:02 +01:00
Tom Bloor
daeeac811c Change leaderboards to only follow customers 2017-06-05 22:59:31 +01:00
Tom Bloor
5e06f0a69b Added resultset for leaderboard for more consice code 2017-06-05 22:34:48 +01:00
Tom Bloor
7e11fc50bd Added get_latest and test for it on leaderboard 2017-06-05 22:15:27 +01:00
Tom Bloor
2e3bc489ea Finish tests for leaderboard schema output 2017-05-23 23:16:56 +01:00
Tom Bloor
bc12dbf8b0 Added leaderboard first pass stuff 2017-05-23 23:06:07 +01:00
Tom Bloor
00e98f874a Get sums to show 0 instead of undef for no data 2017-05-22 22:21:05 +01:00
Tom Bloor
9586d1a637 Add more stats to default stat set 2017-05-16 22:45:49 +01:00
Tom Bloor
a680d7b9df Remove today_avg as redundant due to other data 2017-05-16 21:46:44 +01:00
Tom Bloor
86955c0d1c Started with basic today stats 2017-05-16 21:30:38 +01:00
Tom Bloor
ae6884202a Fixed issue with postcode validator 2017-04-25 23:33:35 +01:00
Tom Bloor
aed22d1c98 Change to having display_name and full_name for customers 2017-04-25 21:44:13 +01:00
Tom Bloor
286ecf11e1 Fixed issue with validator for postcodes 2017-04-25 20:50:34 +01:00
piratefinn
a4ce60407e Did test and routing fixes and dependency fix 2017-04-24 17:42:07 +01:00
Tom Bloor
fad90980f6 Removed unnecessary code and test 2017-04-23 17:02:01 +01:00
Tom Bloor
1598909958 Started on user day entry 2017-04-23 16:59:35 +01:00
Tom Bloor
1d1b4aa1cf Change registration to be the same as the api docs 2017-04-22 19:35:19 +01:00
Tom Bloor
3be6289fc3 Finish major rework of schema 2017-04-21 22:12:53 +01:00
Tom Bloor
dd7862d93d Refactored AccountToken table 2017-04-21 21:28:50 +01:00
Tom Bloor
f69b06bda2 Refactored customer table and fixed all tests form that 2017-04-21 21:20:47 +01:00
Tom Bloor
d0cbb215d8 refactor user table and setup timestamp auto setting 2017-04-21 20:52:14 +01:00
Tom Bloor
786b69f54d Fix and refactor search test 2017-04-21 17:23:41 +01:00
Tom Bloor
4a379ed76d Fixed registration test after refactoring 2017-04-21 14:57:04 +01:00
Tom Bloor
b48edea9fb Fixed admin-merge test after refactoring 2017-04-21 14:54:19 +01:00
Tom Bloor
9bc38c85ea Fixed upload test after refactoring 2017-04-21 14:16:48 +01:00
Tom Bloor
c40a480361 Refactored Pending and Valid orgs and admin-approve test 2017-04-21 14:14:51 +01:00
Tom Bloor
99ef319c3b Started refactoring pending orgs table 2017-04-21 12:42:31 +01:00
Tom Bloor
718d5f002e Merge branch 'development' into TBSliver/Receipt-Upload 2017-04-20 22:17:58 +01:00
Tom Bloor
6596fd10aa Refactor Organisation table to easier column names 2017-04-20 22:17:13 +01:00
piratefinn
2ea55daf33 Fixed texts now with strict# Please enter the commit message for your changes. Lines starting 2017-04-20 18:15:34 +01:00
Tom Bloor
7f18aa7173 Refactor upload API to easier to read variables 2017-04-20 12:33:56 +01:00
Tom Bloor
ab9bfdf221 Attempted fix for user-history, skipping tests as needs major refactor
of code
2017-04-20 02:18:01 +01:00
Tom Bloor
42a3103958 Fixed search test after session_key refactoring 2017-04-20 02:04:13 +01:00
Tom Bloor
9dcfea95d7 Fixed admin-merge test after upload and session_key refactor 2017-04-20 02:01:39 +01:00
Tom Bloor
7eec666141 Fixed admin-approve tests after upload updates 2017-04-20 01:49:34 +01:00
Tom Bloor
94583f61bf Refactored entire api auth code, and upload endpoint 2017-04-20 01:27:18 +01:00
Tom Bloor
9974e6f07e Fixed user-history test with session refactor 2017-04-19 00:20:39 +01:00
Tom Bloor
de5e812950 Fix search tests from session refactor 2017-04-19 00:10:14 +01:00
Tom Bloor
4f892d19e7 fix basic test 2017-04-19 00:06:30 +01:00
Tom Bloor
03dc114236 Fixed admin-merge test after session refactoring 2017-04-19 00:03:25 +01:00
Tom Bloor
576966ba4c Fix admin approve test after session key changes 2017-04-18 23:50:19 +01:00
Tom Bloor
110a051a4e Fixed upload test and controller after updates to session key usage 2017-04-18 23:43:49 +01:00
Tom Bloor
f01a7a9439 Fixed admin login test after refactoring 2017-04-18 22:48:00 +01:00
Tom Bloor
5a1c6b0015 Removed all unneeded helpers from main codebase and removed deprecated
test
2017-04-18 22:44:59 +01:00
Tom Bloor
68b66d431c Reworked api login to just need a session_key for everything 2017-04-18 22:31:08 +01:00
Tom Bloor
6f544b1209 Change to using memory sqlite db and schema based populating 2017-04-18 13:14:35 +01:00
Tom Bloor
e932c60af3 Strict test for register and check database for entries after testing 2017-04-18 13:05:04 +01:00
Tom Bloor
704f429fa5 Added postcode validation and test for validators 2017-04-09 12:50:50 +01:00
Tom Bloor
30c80679be Move to single login page instead of seperate admin login 2017-04-08 14:25:06 +01:00
Tom Bloor
a78de6ea8e Added admin test and logout function 2017-04-08 13:38:54 +01:00
Tom Bloor
f2f2a543fa Moved all API endpoints under /api, fixed all tests 2017-04-06 22:43:27 +01:00
Paul Dill
f6d2fe9ce3 Correct comments. 2017-03-10 19:07:23 +00:00
Paul Dill
e284b14fff Make upload test use the JSON response value for the unvalidated organisation id. 2017-03-10 17:36:41 +00:00
Paul Dill
5a8b5ecc2d Update config and tests so deployment and testing use separate databases. 2017-03-08 18:52:04 +00:00
Paul Dill
1cd9cc8721 User history API for how much they have spent tested and implemented. 2017-03-08 18:50:25 +00:00
Paul Dill
c27e8d80fc Added admin-merge API and test. 2017-03-06 03:35:49 +00:00
Paul Dill
cc0da394a7 Added more tests to the admin-approval API and aesthetic changes to the test. 2017-03-05 19:07:32 +00:00
Paul Dill
ac2563237a Add return JSON value to upload API when adding a new organisation, fix admin-approve test and fix admin-approve bug. 2017-03-05 17:32:38 +00:00
Paul Dill
5ddf707367 Aesthetic changes and change in test. admin-approve test still broken. 2017-03-05 16:01:44 +00:00
Paul Dill
7bfa65f4c3 Code cleanup 2017-03-02 15:46:35 +00:00
Paul Dill
1eafaf4ab1 Moved to full Mojolicious app. 2017-02-24 19:27:43 +00:00
Paul Dill
2828998a32 Admin approve API is done but test is broken. 2017-02-24 17:09:37 +00:00
Paul Dill
ed5bbda6db Added search API and tests. 2017-02-20 04:23:14 +00:00
Paul Dill
67d764638a Added upload functionality and tests. 2017-02-19 00:36:41 +00:00
Paul Dill
92bb78faba Added log in/log out session functionality, added tests, updated schema and amended old tests. 2017-02-13 16:54:35 +00:00
Paul Dill
31fcb1bde8 Added more tests for the register api. 2017-02-01 12:07:51 +00:00
Paul Dill
fc8b74fe13 Update register api, add testing for the register api, remove token api as this is now in register and add the database schema. 2017-01-31 15:15:46 +00:00
Paul Dill
74ccca28e2 Added basic is server online test. 2017-01-31 13:53:24 +00:00