Commit Graph

163 Commits (cf39ba2acacd32faeb703807a66ee5a63ee34401)

Author SHA1 Message Date
Chris Veilleux 7116ae62d3 removed validtor-collection from requirements 2019-02-20 17:34:59 -06:00
Chris Veilleux 57d46dcd09 Merge remote-tracking branch 'remotes/origin/tartarus-overhaul' into account-api 2019-02-20 17:32:52 -06:00
Chris Veilleux a2a4b4e834 added checks to auth token refresh test to address bug. 2019-02-20 17:31:49 -06:00
Matheus Lima f978ca5239 Reverting change in the agreement repository 2019-02-20 20:25:21 -03:00
Matheus Lima 23e056ca96 Created test to validate device pairing workflow 2019-02-20 20:25:21 -03:00
Matheus Lima 640f08ffbe Refactoring 2019-02-20 20:25:21 -03:00
Matheus Lima 750921fb7d Created endpoint to activate a device that is in a pairing process 2019-02-20 20:25:21 -03:00
Matheus Lima 5b6776c92e - Created endpoint to add a device to an account using a pairing code
- Renamed selene_cache module to cache
2019-02-20 20:25:21 -03:00
Matheus Lima 64e513a7df Created endpoint to get the device pairing code 2019-02-20 20:25:21 -03:00
Chris Veilleux f1e1ba60d1 fixed a bug with authentication logic that refreshed tokens when access token expired 2019-02-20 16:50:22 -06:00
Chris Veilleux 24faf0fbbd fixed a bug with new account logic when a user opts out of membership 2019-02-20 14:45:06 -06:00
Chris Veilleux afcbbc05a5 changed display name to username 2019-02-19 17:16:19 -06:00
Chris Veilleux 517177078c return a dictionary instead of a string to make the response go through the coersion routine 2019-02-19 14:41:05 -06:00
Chris Veilleux c4919b155b Merge remote-tracking branch 'remotes/origin/tartarus-overhaul' into account-api 2019-02-19 14:01:34 -06:00
Chris Veilleux e8a0a161d3 fixing token authentication bugs 2019-02-19 13:33:06 -06:00
Chris Veilleux b98f667f30 refactored to build access and refresh tokens independently for re-usability in other tests. 2019-02-19 13:31:58 -06:00
Chris Veilleux 8118c1b05c new error handler for authentication errors 2019-02-19 10:58:48 -06:00
Matheus Lima 6c25c2f85d Migrating the project from flask-restful to flask 2019-02-19 10:06:30 -03:00
Chris Veilleux c2dfa9c318 removed the validator-collection package now that we are using schematics 2019-02-18 14:50:05 -06:00
Chris Veilleux 988a70752b jsonified the response object 2019-02-18 14:43:26 -06:00
Chris Veilleux b5b7cfdef0 added some whitespace to make pylint happy 2019-02-18 13:01:17 -06:00
Chris Veilleux ee5731d86e applied code review corrections 2019-02-18 11:12:06 -06:00
Chris Veilleux 8e62fc8b72 removed old version of response formatter 2019-02-15 22:13:55 -06:00
Chris Veilleux 24875c9e98 removed flask-restful 2019-02-15 21:48:03 -06:00
Chris Veilleux f5fb8b6dfe added blueprint for flask application setup common to all selene api's 2019-02-15 21:43:59 -06:00
Chris Veilleux 21ae4511b9 converted from flask-restful to flask 2019-02-15 21:43:13 -06:00
Chris Veilleux 8c2eb61aa1 simplified module name and converted from flask-restful to flask 2019-02-15 21:42:44 -06:00
Chris Veilleux 11693be534 created and endpoints package to group common endpoints 2019-02-15 21:41:51 -06:00
Chris Veilleux 8130f587b2 no need for an error message if we are adding agreements 2019-02-15 21:38:53 -06:00
Chris Veilleux 7666227802 added schematics library 2019-02-15 01:02:22 -06:00
Chris Veilleux 1605d8f33d fixed a bug where passing a nested dictionary to a dataclass constructor did not build the child data objects correctly 2019-02-15 00:45:23 -06:00
Chris Veilleux 0d3313041e changed to use new class signature 2019-02-15 00:11:38 -06:00
Chris Veilleux cefbb22d05 add IDs to dataclasses for account object 2019-02-15 00:10:42 -06:00
Chris Veilleux eaabe37c5c ensure the subquery only returns one row 2019-02-15 00:10:11 -06:00
Chris Veilleux 16f676c2f1 include the agreement ID in the agreement object 2019-02-15 00:07:10 -06:00
Chris Veilleux 4f2e0f5274 refactored to take an account id instead of account object as the id is the only field in the object used 2019-02-15 00:06:25 -06:00
Chris Veilleux 49d43d061d new agreements endpoint 2019-02-12 11:17:19 -06:00
Chris Veilleux 0f0ede9d50 added a repository for agreements 2019-02-12 10:40:29 -06:00
Chris Veilleux 03414990bc applied schema changes 2019-02-12 10:39:58 -06:00
Chris Veilleux 7936bed82f added ability to decorate functions that return values 2019-02-12 10:39:05 -06:00
Chris Veilleux 71497b6549 changed update and delete methods to return the number of affected rows 2019-02-12 10:38:16 -06:00
Chris Veilleux 5f548d8aa0 minor refactor 2019-02-12 10:37:46 -06:00
Chris Veilleux dcaf17b5f3 added new validator-collection package and used it to validate the email address on the account object. 2019-02-08 16:25:12 -06:00
Chris Veilleux 75d576f84d define a decorator for executing all sql within a class method in a transaction. commits will occur on success, rollbacks on failure. 2019-02-08 16:12:12 -06:00
Chris Veilleux 65d19a147d ensure all add account insert statements occur within a transaction 2019-02-08 15:15:28 -06:00
Chris Veilleux 44cf4e9e6f added tests of the account endpoint returning subscription and agreement data 2019-02-07 22:41:12 -06:00
Chris Veilleux 0afedc89c3 added start date to the subscription data 2019-02-07 21:01:30 -06:00
Chris Veilleux ca2fa5a78b put account endpoint in api library because all api's that interact with web apps will need it 2019-02-07 20:03:41 -06:00
Chris Veilleux 02a3db7c0f moved token generation test code to api library for re-use 2019-02-07 20:02:43 -06:00
Chris Veilleux 6f229d8977 minor merge conflict 2019-02-07 19:52:47 -06:00