Commit Graph

722 Commits (6ce6e21acff5eaa3de112bd67c84174f3e5ba03d)

Author SHA1 Message Date
Chris Veilleux 6ce6e21acf removed hash column again because it was determined to be used in a device ownership feature that will be deprecated. 2019-03-03 18:03:43 -06:00
Chris Veilleux 96649e7ebf added hash column back to support older versions of core 2019-03-03 14:09:46 -06:00
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 7cd7967091 added skill setting update logic. also added logic to return a number of devices per account 2019-02-28 21:48:35 -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 d19a1fcdf6 new endpoint for account skills 2019-02-25 23:27:54 -06:00
Chris Veilleux 1b7c382846 new repository for account skills 2019-02-25 23:27:04 -06:00
Chris Veilleux 8a1ee6c0db changed "subscription" to "membership" 2019-02-25 23:26:10 -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 a6533fbe32 Removed blocking operation from the db transaction 2019-02-25 16:42:11 -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 144372ca1c remove tables that are no longer used 2019-02-25 11:13:24 -06:00
Chris Veilleux beecb4a4f2 added a column to link to a settings version and to store the settings.json file from the device. 2019-02-25 11:12:57 -06:00
Chris Veilleux ce7fa1a193 new table that replaces the old skill_settings_version. the settingsmeta.json is stored directly rather than being hashed 2019-02-25 11:10:35 -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 5d16ede767 changed to build a template database first, then the mycroft database is created from the template. this will allow for testing databases to be created form the blank template as well 2019-02-24 23:50:43 -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
Chris Veilleux ac01371c40 changed "subscription" to "membership" 2019-02-24 23:46:06 -06:00
Chris Veilleux 71abd36972 made user roles more production-ready 2019-02-23 12:51:15 -06:00
Matheus Lima ae5c148b92 Removing unused import 2019-02-22 14:23:43 -03:00
Matheus Lima b68dabe0b9 Clean up and adding tests for the device email endpoint 2019-02-22 14:23:43 -03: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 cf39ba2aca
Merge pull request #54 from MycroftAI/account-api
fixed a bug with new account logic when a user opts out of membership
2019-02-20 17:37:03 -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