Commit Graph

195 Commits (6ce6e21acff5eaa3de112bd67c84174f3e5ba03d)

Author SHA1 Message Date
Chris Veilleux 581bf1812d renamed a few items in the database schema 2019-03-01 20:33:35 -06:00
Chris Veilleux 0d6cb7d3f1 resolve merge conflicts 2019-02-28 22:01:21 -06:00
Chris Veilleux e16369c565 added snake_to_camel import 2019-02-28 21:47:04 -06:00
Chris Veilleux 3c5983a194 added repository method to get the number of devices for an account. 2019-02-28 21:46:32 -06:00
Chris Veilleux 35fa76e6a2 refactored how skill settings are retrieved. added skill settings change code 2019-02-28 21:46:05 -06:00
Chris Veilleux c3608a10bf
Merge pull request #56 from MycroftAI/populate-profile-page
Populate profile page
2019-02-28 20:44:22 -06:00
Chris Veilleux 61e884b0f6 implemented a sql trick to group by json that made the code a lot simpler 2019-02-26 14:09:31 -06:00
Chris Veilleux 638b74206d added some logic on how to determine the skill name displayed in the ui 2019-02-26 09:37:56 -06:00
Chris Veilleux 1b7c382846 new repository for account skills 2019-02-25 23:27:04 -06:00
Chris Veilleux 05bf20ac4d fixed a minor bug when an account has no refresh tokens 2019-02-25 23:25:37 -06:00
Matheus Lima eccb83ed44 - Refactoring to use a AccountRepository to get an account using the device id
- Created tests for the metrics service
2019-02-25 19:03:08 -03:00
Matheus Lima edc43ed39a Created endpoint to communicate with metrics service 2019-02-25 16:42:11 -03:00
Chris Veilleux 6661f27caf resolve merge conflict 2019-02-25 13:33:50 -06:00
Matheus Lima 2ae8b408e2 adding TODO to change return in the API v2 2019-02-25 16:28:14 -03:00
Matheus Lima e722e519bf Fixed the endpoint used to get the subscription type of a device and created tests for this endpoint 2019-02-25 16:28:14 -03:00
Matheus Lima 88aaccd073 Adding test for the device setting endpoint 2019-02-25 16:28:14 -03:00
Matheus Lima 588525ea47 Created test to the endpoint used to fetch a device 2019-02-25 16:28:14 -03:00
Chris Veilleux cede611f0f Merge remote-tracking branch 'remotes/origin/tartarus-overhaul' into populate-profile-page 2019-02-25 12:06:22 -06:00
Chris Veilleux 42975024aa new package for re-usable testing code. first addition is some database setup and teardown logic 2019-02-25 01:58:41 -06:00
Chris Veilleux 02a9242c17 new base class for data repositories to eliminate some boilerplate code 2019-02-25 01:57:44 -06:00
Chris Veilleux 73fca3b7e1 added membership repository 2019-02-25 01:50:20 -06:00
Chris Veilleux f63d1ad633 added membership repository 2019-02-25 01:49:56 -06:00
Chris Veilleux 86883f31aa added non-pool connection to API 2019-02-25 01:48:35 -06:00
Chris Veilleux d71ae4831c moved database connection call into the get_base_config function so it is not attempted at import time. this is necessary to allow the behave tests to create a test database 2019-02-25 01:48:02 -06:00
Chris Veilleux 95a5d383e9 changed "subscription" to "membership" 2019-02-25 01:46:43 -06:00
Chris Veilleux 20e865d6ab changed "subscription" to "membership" 2019-02-25 01:46:29 -06:00
Chris Veilleux 8d73d18e09 changed "subscription" to "membership" 2019-02-24 23:54:34 -06:00
Chris Veilleux e633ade60d changed "subscription" to "membership" 2019-02-24 23:49:12 -06:00
Chris Veilleux 0c1e7ec9d8 changed "subscription" to "membership" 2019-02-24 23:47:19 -06:00
Matheus Lima 577c470d90 - Using schematics to validate POST data
- Fixed test
- Fixed error handler to present a better error message
2019-02-22 14:23:43 -03:00
Matheus Lima af45f633d1 Created endpoint to send email to the account associated to a device 2019-02-22 14:23:43 -03:00
Chris Veilleux 72db7b96eb added logic to format date fields the way the UI likes it 2019-02-21 23:12:14 -06:00
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