Commit graph

200 commits

Author SHA1 Message Date
Tom Bloor
25511ced69 Fix calculation mistake on leadearboard display 2017-09-15 12:54:36 +01:00
Tom Bloor
1ffabb3e94 Updated all endpoints to use new transaction value multiple 2017-09-13 16:07:23 +01:00
Tom Bloor
66f4844835 Merge pull request #55 from Pear-Trading/TBSliver/Large-Graph
Added large graph items
2017-09-08 15:41:10 +01:00
Finn
26a37904d2 Naming sanitised 2017-09-08 13:00:42 +01:00
Tom Bloor
6de616584a Add customer_range graph 2017-09-08 12:47:20 +01:00
Tom Bloor
4176c61c00 Remove post user/day, and reformat validators 2017-09-08 12:46:54 +01:00
Finn
9cfd5536b9 Removed redundant code and added error messages 2017-09-08 12:15:11 +01:00
Tom Bloor
83094f380d Continue defaulting to 0 as well 2017-09-08 12:03:48 +01:00
Tom Bloor
e13a128179 Add zero to sums to force number on output 2017-09-08 12:00:23 +01:00
Finn
662219fc6e Initial API for submission added 2017-09-08 11:41:21 +01:00
Tom Bloor
05c20b9e85 Added new snippets endpoints 2017-09-07 16:03:01 +01:00
Finn
8034844cec Merge pull request #50 from Pear-Trading/finn/TransactionViewAPI
Transaction API added
2017-09-06 17:52:56 +01:00
Finn
ebe6ccb33e Fixed page no 2017-09-06 17:03:53 +01:00
Tom Bloor
6ed0be4801 Use normal 1 instead of deferenced for proper inflation 2017-09-06 16:12:36 +01:00
Finn
4e7c8bbfae Created test and fixed things
Still needs to spit out timezone on the datetime
2017-09-05 17:24:04 +01:00
Finn
06858fc005 Added outgoing transaction list API 2017-09-05 16:37:31 +01:00
Tom Bloor
cae2806ad2 Merge pull request #44 from Pear-Trading/finn/StopSameOrgPurchase
Stopped Orgs from buying for themselves & added to test
2017-09-05 12:20:25 +01:00
Tom Bloor
1693bc7fb6 Merge pull request #45 from Pear-Trading/TBSliver/Org-Graph-Improvements
Added extra graph types
2017-09-05 12:19:18 +01:00
Finn
a463b99fa9 Stopped Orgs from buying for themselves & added to test 2017-09-05 12:03:49 +01:00
Tom Bloor
4ba6a443fc Stop null values on org graphs 2017-09-04 17:39:48 +01:00
Tom Bloor
4d21de7bae Improved Graphs and added sales and purchase data graphs.
Includes an API change for development.
2017-09-04 17:29:28 +01:00
Finn
fabd01f988 Fixed for sector in account editing 2017-09-04 17:05:10 +01:00
Finn
2137b5607f Fixed Org account editing for portal 2017-09-04 16:12:03 +01:00
Tom Bloor
cca27b5475 Fix org graphs test for entity upgrade 2017-08-31 19:12:13 +01:00
Tom Bloor
adfcd8880f Fix User endpoints for entity upgrade 2017-08-31 19:08:22 +01:00
Tom Bloor
dd6e21eb50 Fix upload tests for entity upgrade 2017-08-31 19:03:49 +01:00
Tom Bloor
e91863a3d7 Fixed stats endpoint for leaderboards on entity upgrade 2017-08-31 18:31:42 +01:00
Tom Bloor
8d205d62c2 Refactor stats test to use fixtures and fix stats endpoints for entity
update
2017-08-31 18:04:51 +01:00
Tom Bloor
2980fd129f Fix search test for entity upgrade 2017-08-31 17:54:25 +01:00
Tom Bloor
bf16077b10 Fix register for new entity work 2017-08-31 16:46:25 +01:00
Finn
72813ff2a3 Made image upload optional 2017-08-31 11:41:38 +01:00
Tom Bloor
3ae8a43df4 Added organisation graph endpoint and tests 2017-08-29 12:42:27 +01:00
Tom Bloor
df7f1de1a6 Merge pull request #37 from Pear-Trading/TBSliver/Login-Info
Added extra info to login return
2017-08-25 16:15:16 +01:00
Finn
ff263374ec Added endpoints for organisation sector 2017-08-25 15:25:52 +01:00
Tom Bloor
4a4c568fb7 Return user type on login 2017-08-25 14:59:15 +01:00
Tom Bloor
e886eb2ce6 Remove explicit undef returns 2017-08-25 14:44:36 +01:00
Finn
06e89c9199 Merge pull request #34 from Pear-Trading/finn/AccountUpdateFix
Fixed validation for organisation edit
2017-08-24 13:21:05 +01:00
Finn
6f01bf2661 Fixed validation removing redundant code 2017-08-23 16:47:29 +01:00
Finn
4d299cee10 Fixed validation for organisation edit 2017-08-23 16:25:08 +01:00
Tom Bloor
056d37501b Fixing syntax error 2017-08-17 16:34:43 +01:00
Finn
fa1968f035 DatetimeErrorlogfix 2017-08-17 16:26:11 +01:00
Tom Bloor
d169249538 Better fix and change status to 400 for upload errors 2017-08-17 15:45:26 +01:00
Tom Bloor
d07610e72d Check for organisation and transaction actually being defined on upload 2017-08-17 15:38:08 +01:00
Finn
efbcdbce84 Added system redundancy 2017-08-14 16:21:06 +01:00
Finn
d078a09ccd Added receipt datetime string submission validation & validator test 2017-08-14 15:35:23 +01:00
Finn
b44a256434 Updated DB and added more DateTime 2017-08-14 12:45:54 +01:00
Finn
85c80980c3 Added code for date submission in receipt upload 2017-08-14 11:15:33 +01:00
Finn
9affdbf08e Removed redundant file and fixed user updat e+ added tests 2017-07-27 14:18:22 +01:00
Finn
bad60c85e7 Removed bad error 2017-07-26 19:22:28 +01:00
Finn
397de48711 Error codes added and fix 2017-07-26 19:05:35 +01:00
Finn
2ef73c9346 Added User Account update code 2017-07-26 18:57:13 +01:00
Finn
2b3c13518b Added API endpoints and user info retrieval 2017-07-26 18:28:14 +01:00
Finn
b0e9ef249a Rewrote code for login info retrieval 2017-07-26 16:45:46 +01:00
Finn
dfa1ba11f0 Fix to naming of JSON 2017-07-26 15:55:39 +01:00
Finn
1d782a4e84 Added giving user info on login 2017-07-26 15:29:38 +01:00
Tom Bloor
1df31d79a0 Merge pull request #20 from Pear-Trading/TBSliver/Organisation-Approve
Fix organisation approving, Closes #7
2017-07-25 14:42:49 +01:00
Tom Bloor
01c7db6844 Removed admin api endpoint as unused 2017-07-25 14:23:03 +01:00
Tom Bloor
b44cb5fe1d Fix issue with turning quote_names on with case insensitive search 2017-07-25 14:14:30 +01:00
Finn
09f9cf9d48 Feedback HTML views added and fixes made 2017-07-24 15:21:10 +01:00
Finn
baea01e8b5 Schema and actual DB submit code added 2017-07-24 14:55:05 +01:00
Finn
d38758ac90 New Feedback API endpoint added 2017-07-24 13:20:22 +01:00
Tom Bloor
50e06981d7 Fix issue with undefined leaderboard 2017-07-20 17:41:59 +01:00
Tom Bloor
243722df93 Fix issue with login error
fixes #9
2017-07-20 17:34:33 +01:00
Finn
16abfe34ea Fixed rank sending and added leaderboard creation script 2017-07-20 11:56:24 +01:00
Finn
4f09483f59 Front page stat sending added 2017-07-19 17:29:00 +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
6f5e0fb31e Remove unneccessary endpoint for AgeRanges 2017-06-13 21:45:23 +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
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
22abc4e464 Fix postcode issue on upload 2017-05-15 22:43:31 +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
98f15a67af Added organisations page to admin interface 2017-04-24 12:49:18 +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
b03b7ccc5f Added error flag to validation errors and added age_range api endpoint 2017-04-23 14:02:10 +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
4c5f27976c Change proof storage to have a settable folder 2017-04-21 19:54:28 +01:00
Tom Bloor
786b69f54d Fix and refactor search test 2017-04-21 17:23:41 +01:00
Tom Bloor
b48edea9fb Fixed admin-merge test after refactoring 2017-04-21 14:54:19 +01:00
Tom Bloor
c40a480361 Refactored Pending and Valid orgs and admin-approve test 2017-04-21 14:14:51 +01:00
Tom Bloor
6596fd10aa Refactor Organisation table to easier column names 2017-04-20 22:17:13 +01:00
Tom Bloor
2cc670b58f Improve failed upload error 2017-04-20 14:02:30 +01:00
Tom Bloor
e9f4888a8c Added filetype validation for upload 2017-04-20 13:58:45 +01:00
Tom Bloor
7f18aa7173 Refactor upload API to easier to read variables 2017-04-20 12:33:56 +01:00
Tom Bloor
94583f61bf Refactored entire api auth code, and upload endpoint 2017-04-20 01:27:18 +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
68b66d431c Reworked api login to just need a session_key for everything 2017-04-18 22:31:08 +01:00
Tom Bloor
cf8154169b Refactor to use standard $c instead of $self 2017-04-18 17:38:58 +01:00
Tom Bloor
a8b917808f Refactor dbh items in api register to dbic 2017-04-18 17:36:37 +01:00
Tom Bloor
98d4309b67 Move use statement and refactor register to use mojo validators 2017-04-18 12:38:39 +01:00
Tom Bloor
10738d7adc Move use statement to where its actually used 2017-04-18 10:59:30 +01:00
Tom Bloor
f2f2a543fa Moved all API endpoints under /api, fixed all tests 2017-04-06 22:43:27 +01:00