Commit Graph

608 Commits (master)

Author SHA1 Message Date
Chris Veilleux 6535652a68 fixed an issue found in testing where a skill can have multiple skill definitions. 2019-09-05 18:27:12 -05:00
Chris Veilleux c8a257dad9 remove device skill deletion from skill settings endpoint. should be done in manifest endpoint 2019-09-05 12:08:37 -05:00
Chris Veilleux f3ae6b19b6 endpoint for accepting the skill settings definition defined by the skill author from the device 2019-09-05 11:29:30 -05:00
Chris Veilleux e396dd2a6f added a device status as it relates to communication with the backend. this is a preliminary step to fixing the skill installation issue in the marketplace. 2019-08-17 17:37:52 -05:00
Chris Veilleux e52994d0e0 force flask version 1.0.4 as 1.1 breaks one of the api calls 2019-08-17 17:35:30 -05:00
Chris Veilleux b326067f2e Merge remote-tracking branch 'remotes/origin/dev' into feature/publish_repo 2019-08-16 19:00:49 -05:00
Chris Veilleux 9ecb80e956
Merge branch 'dev' into bug/skill-settings 2019-08-16 18:43:02 -05:00
Chris Veilleux f7e963fe0a Fixes to skill settings page showing skills multiple times. 2019-08-16 18:30:25 -05:00
Chris Veilleux 5aa2c4b578 force flask version 1.0.4 as 1.1 breaks one of the api calls 2019-08-15 19:57:42 -05:00
Chris Veilleux cdf5654c0e ensure pipfiles are up-to-date before publishing repo 2019-08-15 19:23:30 -05:00
Steve Penrod 9dc4d62490 Adding the basics to prepare for publishing this repo
Changes include:

* Adding AGPL 3.0 license template (TODO: Apply to all 200+ *.py files)
* Adding AGPL license files
* Add generic public repo files (CONTRIBUTING, etc)
* Simple README updates
* Adding other generic files, e.g. .github templates
2019-07-27 18:44:23 -05:00
Chris Veilleux 474da1469f fixed a bug where a previous change broke an import statement 2019-07-10 13:41:35 -05:00
Chris Veilleux 108d21d888 Merge remote-tracking branch 'remotes/origin/test' 2019-07-08 19:51:22 -05:00
Chris Veilleux 21501d3612 bug fix - the UI was throwing errors when a skill did not have settings. initialize an empty settings section to fix. 2019-07-08 19:30:25 -05:00
Chris Veilleux c720fefe1b bug fix - if a label field has a value, that value remained in the json object stored in the database 2019-07-08 19:29:03 -05:00
Chris Veilleux 276340ec67 fixed typo in audio file 2019-07-08 15:56:36 -05:00
Chris Veilleux a94e69f5ba refactoring 2019-07-06 15:47:51 -05:00
Chris Veilleux 919d0a71fc uncomment and fix device pairing tests 2019-07-06 15:38:27 -05:00
Chris Veilleux 3c535c0c05 fixed errors in log messages 2019-07-06 15:20:26 -05:00
Chris Veilleux 40cbf36923 define pairing token Redis key in the cache module 2019-07-06 14:46:05 -05:00
Chris Veilleux d3d652973b added docstrings 2019-07-06 14:37:43 -05:00
Chris Veilleux eb35e140af removed TODO 2019-07-05 18:04:37 -05:00
Chris Veilleux a8307be1db added logging and module level docstring 2019-07-05 18:04:17 -05:00
Chris Veilleux fd5678139e fixed a bug when a device sends skill settings before it sends the skill manifest. to address the bug, if settings are sent for a skill not yet assigned to a device, insert the device_skill row 2019-07-03 15:53:21 -05:00
Chris Veilleux 083c298811 improve error reporting for setup issues 2019-07-03 15:37:58 -05:00
Chris Veilleux 08d9491edf refactored 2019-07-02 15:46:49 -05:00
Chris Veilleux 05ba05f50d write out the .flac and .stt files for users that opt-in for tagging purposes. 2019-07-01 21:57:22 -05:00
Chris Veilleux 613ea71d99 fixed a bug with the metrics api insert and another with the skill settings endpoint 2019-06-30 17:27:52 -05:00
Chris Veilleux abf3556b36 renamed metrics schema to metric, because I am one anal MF 2019-06-28 22:38:38 -05:00
Chris Veilleux 7fd4e2d908 fixed a bug where the code expected skill_gid to always be in the request but some devices do not support skill_gid yet 2019-06-28 12:04:40 -05:00
Chris Veilleux 1bf8a57fdd fixed a bug that was causing the preferences page to return a 500 2019-06-28 09:57:24 -05:00
Chris Veilleux e0b95fdca8 fixed some automated testing error introduced by recent changes 2019-06-27 12:36:23 -05:00
Chris Veilleux ac2f48a299 Merge remote-tracking branch 'remotes/origin/master' into dev
# Conflicts:
#	api/public/public_api/endpoints/device_skills.py
#	api/public/tests/features/steps/device_skills.py
#	shared/selene/data/skill/repository/device_skill.py
2019-06-27 12:22:23 -05:00
Chris Veilleux 54719b81c7
Merge branch 'dev' into fix-duplicate-skills 2019-06-26 11:05:14 -05:00
Chris Veilleux 76f0976a6e minor bug fix 2019-06-26 11:04:06 -05:00
Chris Veilleux 12dc2175d2 updated the skill settings endpoint in the public API handle more use cases 2019-06-25 18:12:34 -05:00
Chris Veilleux e411332667 fixed to use skill_id in the skill manifest object 2019-06-25 18:11:19 -05:00
Chris Veilleux 32ad6a0921 fixed a minor issue 2019-06-25 18:10:34 -05:00
Chris Veilleux ec5ea8af9a add re-usable check for when and endpoint returns a 304 "Not Modified" http code when etags are hit 2019-06-25 18:09:30 -05:00
Chris Veilleux 4ec2410ad7 minor refactor 2019-06-25 17:42:57 -05:00
Chris Veilleux 4082b53af5 use canned test data instead of depending on real data being on the database 2019-06-25 17:42:34 -05:00
Chris Veilleux e534bc7091 fixed to no longer pass account id 2019-06-25 17:42:00 -05:00
Matheus Lima 709c805c34 Merge branch 'test' 2019-06-25 16:33:05 -03:00
Matheus Lima 7e72507d6b Created stripe webhook 2019-06-25 16:25:15 -03:00
Chris Veilleux 5931125608 removed unused imports 2019-06-21 14:10:01 -05:00
Chris Veilleux 861b043238 removed account_id from constructor as not all methods use it 2019-06-20 20:58:35 -05:00
Chris Veilleux 2291892636 moved cache key into the cache util file 2019-06-20 11:37:51 -05:00
Chris Veilleux 0df2cfe3ec added error conditions 2019-06-20 10:59:43 -05:00
Chris Veilleux 297d18d221 remove the API call to get a skill manifest as it is not used by the device 2019-06-20 10:52:29 -05:00
Chris Veilleux 93a212e673 added logic to the skill manifest endpoint to reconcile the manifest uploaded by the device with the manifest stored on the database 2019-06-19 22:18:32 -05:00
Chris Veilleux a85f8d7723 add a step for generating the authentication header so that the code doesn't have to be repeated 2019-06-19 22:11:55 -05:00
Chris Veilleux e08c0f8498 rename step to prevent duplicate values 2019-06-19 22:11:03 -05:00
Chris Veilleux b031418bec changed to use test data setup library 2019-06-19 15:57:30 -05:00
Chris Veilleux f28ec2c502 Changed account preferences upsert to use the AccountPreferences object instead of a dictionary 2019-06-19 15:56:31 -05:00
Chris Veilleux f60508a776 added open dataset agreement to the default test data 2019-06-19 13:58:49 -05:00
Chris Veilleux 4eab27b329 moved logic to get a device's skills to the DeviceSkill repository. 2019-06-18 16:35:38 -05:00
Chris Veilleux a13b52d37e Merge remote-tracking branch 'remotes/origin/test' 2019-06-18 15:37:23 -05:00
Matheus Lima d222756020 Changing the endpoint used to delete a skill settings block 2019-06-18 16:52:57 -03:00
Matheus Lima a067dcd544 Revert "Changing the endpoint used to delete a skill settings block"
This reverts commit def458234a3f33ff504ec204456bad9c48d26f53.
2019-06-18 16:39:58 -03:00
Matheus Lima 942244cd77 Changing the endpoint used to delete a skill settings block 2019-06-18 15:37:39 -03:00
Chris Veilleux f9466358db Merge remote-tracking branch 'remotes/origin/dev' into fix-metrics-service
# Conflicts:
#	api/account/tests/features/steps/update_membership.py
#	api/public/tests/features/device_metrics.feature
#	api/public/tests/features/steps/common.py
#	shared/selene/testing/account.py
#	shared/selene/testing/api.py
2019-06-18 13:10:00 -05:00
Chris Veilleux 1db96b3c05 Merge branch 'master' of https://github.com/MycroftAI/selene-backend 2019-06-16 18:48:04 -05:00
Chris Veilleux cf1dcbf4ae fixed a couple of issues with test code introduced by coding changes for account API 2019-06-16 18:46:11 -05:00
Chris Veilleux a05d692c6f fixed a couple of bugs related to presenting skill settings and saving changes 2019-06-16 18:37:16 -05:00
Chris Veilleux 6ac5ca8ddd added SkillFamily dataclass and fixed query that returned skill list to front end to return a single row per skill family 2019-06-15 01:05:14 -05:00
Matheus Lima 4bbd078987 Created endpoint to delete a given skill from a device 2019-06-14 18:02:10 -03:00
Chris Veilleux 3ee0c07912 changed update of a device's last_contact_ts to be done in Redis instead of Postgres 2019-06-13 17:52:39 -05:00
Chris Veilleux 1675e79c2f Merge remote-tracking branch 'remotes/origin/dev' into fix-duplicate-skills 2019-06-12 17:28:37 -05:00
Chris Veilleux 869e7ece42 refactored tests to use the stripe API more and use a list of accounts in the test context. 2019-06-12 15:15:40 -05:00
Chris Veilleux 4e5bf29eb4 added test condition for finishing on-boarding as a separate step from new account creation 2019-06-12 10:32:53 -05:00
Chris Veilleux ca272af1a9 added a username parameter to the token generation so that more than one account can be used in testing 2019-06-12 10:30:53 -05:00
Chris Veilleux d07a0fec28 fixed failing tests 2019-06-11 14:47:56 -05:00
Chris Veilleux 506bb8b213 mock the call to stripe as we never really created an account 2019-06-11 14:45:50 -05:00
Chris Veilleux 567018391a added a docstring 2019-06-11 14:45:18 -05:00
Chris Veilleux ef7ccf7393 added HTTP status code 204 (no content) to the acceptable values for a successful API call 2019-06-11 13:21:26 -05:00
Chris Veilleux 67a5d50fca changed feature name 2019-06-11 13:20:25 -05:00
Chris Veilleux 953f4c82b7 moved account removal into its own feature 2019-06-11 13:19:52 -05:00
Chris Veilleux 6f07963b52 refactored to use more common testing functionality and reduce frequency of some fixtures 2019-06-10 18:19:12 -05:00
Chris Veilleux 53a1da19d8 removed unused import 2019-06-10 18:17:59 -05:00
Chris Veilleux 9402fc6eb7 replaced check for HTTP status OK with common step 2019-06-10 18:17:30 -05:00
Chris Veilleux 2f459597c5 added check for terms of use 2019-06-10 18:17:04 -05:00
Chris Veilleux fd2b46d0b2 Change the core metrics collection to happen within Selene. 2019-06-08 19:23:29 -05:00
Chris Veilleux 8d08ce3c5a moved api testing code into the testing package 2019-06-08 19:13:01 -05:00
Chris Veilleux d0461b7f64 fixed bug with the search bar in the marketplace 2019-06-07 12:19:33 -05:00
Chris Veilleux cf669ce624 Merge remote-tracking branch 'remotes/origin/dev' into reusable-testing-data 2019-06-05 00:48:08 -05:00
Matheus Lima c3e32f7495 Fixing endpoint base class 2019-06-04 21:23:35 -03:00
Matheus Lima 05adaa380f Adding device_id to authentication validation 2019-06-04 21:18:21 -03:00
Matheus Lima 06768674aa fixing typo 2019-06-04 20:09:15 -03:00
Matheus Lima 32f7363d1f Adding URL to download premium voices 2019-06-04 18:34:01 -03:00
Chris Veilleux 2c79df7ac3 fixed bug where federated login failed on account creation 2019-05-31 16:48:52 -05:00
Chris Veilleux 8984cdc34d create test data for accounts and agreements 2019-05-30 21:12:41 -05:00
Matheus Lima 16489f1910 Adding opt-in flag to the device settings 2019-05-30 21:13:47 -03:00
Matheus Lima 3ee0fb7f00 Fixing typo 2019-05-29 16:43:24 -03:00
Matheus Lima f2e7374b96 Fixing request to deal with arrays 2019-05-29 16:38:14 -03:00
Chris Veilleux 632ff7a15c Merge remote-tracking branch 'origin/fix-skill-settings' into fix-skill-settings 2019-05-29 14:32:14 -05:00
Chris Veilleux eea5c62125 do not convert field names to camel case. 2019-05-29 14:32:07 -05:00
Matheus Lima a7d683da42 Adding missing parameter 2019-05-29 16:20:34 -03:00
Matheus Lima 289b068371 Fixing request used to update the skills settings 2019-05-29 15:08:30 -03:00
Matheus Lima 0e89c709b5 Updating repository to use property 2019-05-29 14:43:22 -03:00
Matheus Lima 4533c86be3 small fix 2019-05-29 13:57:35 -03:00
Matheus Lima 8a25ca7f80 Reverting a change in the repository and replaced functional mapping by a for loop 2019-05-29 13:51:45 -03:00
Matheus Lima c41e46213a Moving conversion from the repository to the endpoint class 2019-05-29 13:43:02 -03:00
Matheus Lima 4615684de5 Changing the response type from the endpoint to bypass conversion 2019-05-29 13:29:17 -03:00
Chris Veilleux 25c92567d0 fixed an issue with the return value 2019-05-24 16:34:49 -05:00
Chris Veilleux 2239109027 pass one instance of AccountSkillSettings instead of a list 2019-05-24 16:22:06 -05:00
Chris Veilleux ab0a7f5932 added the skill_id to the AccountSkillSetting object to know which skill the settings are for. 2019-05-24 16:17:17 -05:00
Chris Veilleux 1937486249 added the SeleneCache to the config to address a bug with accessing the Redis DB 2019-05-24 13:59:17 -05:00
Chris Veilleux bffd6000cd
Merge branch 'dev' into fix-skill-install 2019-05-24 13:33:41 -05:00
Matheus Lima 024ef995fe Fixing email to receive a PUT request instead of a POST 2019-05-24 11:07:27 -03:00
Matheus Lima 1e2865d800 Fixing email endpoint path 2019-05-24 10:57:01 -03:00
Chris Veilleux 9c3ef59435 made the skill settings repository a property and updated usages of it to reflect changes 2019-05-23 22:29:04 -05:00
Chris Veilleux 49c8740b42 update to reflect changes in the skill setting repository 2019-05-23 22:28:03 -05:00
Chris Veilleux 4bf45cafc2 made the skill settings repository a property 2019-05-23 22:25:35 -05:00
Chris Veilleux 93fc124508 added etag expiration when skill settings are changed. 2019-05-23 17:21:06 -05:00
Chris Veilleux f18869fe8a Merge remote-tracking branch 'remotes/origin/dev' into fix-skill-install 2019-05-23 17:13:41 -05:00
Chris Veilleux 87d4411987 fixed an issue in the SendGrid API call that was initializing the mail message object incorrectly 2019-05-23 17:10:56 -05:00
Matheus Lima 355a2f4629 Merge branch 'device-preferences' into dev 2019-05-23 16:23:06 -03:00
Matheus Lima 67999eab64 Adding cache config 2019-05-23 16:22:21 -03:00
Matheus Lima 875b17f5c7 Fixing the endpoint used to send emails 2019-05-23 16:15:59 -03:00
Matheus Lima 26fe7a2fc9 Expiring etags when the device preference are updated and making sure we are returning the correct system unit 2019-05-23 16:15:24 -03:00
Chris Veilleux ac6608ceca removed remaining remnants of the old connection pooling 2019-05-22 19:56:44 -05:00
Chris Veilleux 8254b0db57
Merge branch 'dev' into fix-skill-install 2019-05-22 18:54:04 -05:00
Chris Veilleux 2fbdc1e9c8 fixed a bug in how the installer skill settings were being populated and added some comments 2019-05-22 18:53:11 -05:00
Matheus Lima 00ecba1166 Refreshing device session using either refresh token or device id 2019-05-22 20:05:31 -03:00
Chris Veilleux 2069df6332 fixed a typo in one of the request field names 2019-05-22 17:06:35 -05:00
Chris Veilleux 38df553400
Merge branch 'dev' into fix-connection 2019-05-22 15:43:47 -05:00
Chris Veilleux 71df9c9313 modified base endpoint class and tests to use new connection pooling mechanism 2019-05-22 15:41:30 -05:00
Matheus Lima dab7301556 Fix typo 2019-05-22 17:15:12 -03:00
Matheus Lima 9d87bc0170 Fixing path in the metrics service 2019-05-22 17:04:14 -03:00
Chris Veilleux 7c96bde026 fixed tests still using the old connection pool 2019-05-22 13:22:45 -05:00
Chris Veilleux 43ef249d00 change public API to use a different connection pooling mechanism 2019-05-22 13:12:23 -05:00
Matheus Lima 1092f8f1ed Allowing skill_gid in the skill manifest 2019-05-22 05:22:08 -03:00
Matheus Lima c3a1d74fc3 Adding uuid in the response returned by the endpoint to get the device 2019-05-21 20:39:03 -03:00
Chris Veilleux c799bc0f39 increased public api processes to plan for greater demand in production 2019-05-20 16:57:28 -05:00
Matheus Lima 80061cf855 Fixing response return 2019-05-17 18:35:46 -03:00
Matheus Lima ccb104a11f Changing back base class of the Oauth callback endpoint 2019-05-17 18:32:04 -03:00
Matheus Lima aa73066d95 Fixing base class used in the OauthCallbackEndpoint. The previous one had an authorization validation 2019-05-17 18:18:22 -03:00
Matheus Lima f444d275d6 Making the oauth endpoint to return the correct response 2019-05-16 19:37:44 -03:00
Matheus Lima 2e75973793 Changed module field in the tts settings 2019-05-16 19:37:03 -03:00
Matheus Lima 8ca34db143 Returning correct response in the oauth endpoints 2019-05-16 17:51:44 -03:00
Chris Veilleux dc0827801a
Merge branch 'dev' into activate-oauth 2019-05-16 15:29:47 -05:00
Chris Veilleux e385a6563a un-comment the oauth API call 2019-05-16 15:26:04 -05:00
Matheus Lima 1f2d76e331 Properly loading the OAUTH_BASE_URL variable 2019-05-16 17:13:48 -03:00
Chris Veilleux 3c753bc38d fix issue with agreement being a nullable column 2019-05-15 14:49:15 -05:00
Matheus Lima 348bd6ace4 Created test 2019-05-14 18:58:31 -03:00
Matheus Lima b88ca3d221 Fixed authorization url used by skills 2019-05-09 19:55:47 -03:00
Matheus Lima 379894b257 Added oauth callback endpoint 2019-05-09 12:36:45 -03:00
Matheus Lima e259afd402 Removing the login session when the device is removed 2019-05-08 16:55:14 -03:00
Matheus Lima f84222577e Fixing location endpoint to return the region and country codes 2019-05-03 19:42:01 -03:00
Chris Veilleux 025dcc62ed Merge remote-tracking branch 'origin/test' into test 2019-05-03 15:15:11 -05:00
Chris Veilleux 1e177e4d19 implemented github login and changed sign-up logic to fit the new UI flow 2019-05-03 15:14:55 -05:00
Matheus Lima 44ab3758cc Fixed wolfram alpha spoken endpoint to extend the correct class. Created unit test. 2019-04-30 14:08:45 -03:00
Matheus Lima 7e26e4ba49 Adding url to the global context in the start of the before request webhook. Created a test to the wolfram alpha endpoint 2019-04-29 18:02:52 -03:00
Chris Veilleux 94fd50f523 added github login functionality 2019-04-26 12:13:30 -05:00
Matheus Lima 8bf7610f8c Moving oauth endpoint back to the public api project 2019-04-23 19:39:13 -03:00
Matheus Lima 7d560946ca Fixing url 2019-04-23 19:39:13 -03:00
Matheus Lima a86cc568d4 Refactoring oauth endpoint 2019-04-23 19:39:13 -03:00
Matheus Lima 1058b057dc Moving the endpoint to get the oauth url to the shared project 2019-04-23 19:39:13 -03:00
Matheus Lima 8c0425f333 Implemented endpoints to communicate with the oauth gateway service 2019-04-23 19:39:13 -03:00
Chris Veilleux fbf10c945e
Merge pull request #116 from MycroftAI/validate-pairing-code
new endpoint to validate the pairing code before add device
2019-04-23 17:19:51 -05:00
Chris Veilleux aaacdef936 fixed a bug that only occurred in rare circumstances where a user's password started with any of the letters in the word "Basic" or if the password had a colon in it. 2019-04-23 16:42:14 -05:00
Chris Veilleux 145cb39264 new endpoint to validate the pairing code before the add device request so that the UI can mark the pairing code field as invalid if the code does not exist. 2019-04-23 16:34:31 -05:00
Chris Veilleux c4776c5774 stubbed in view for oauth checks 2019-04-23 12:30:57 -05:00
Chris Veilleux 72327c696d Merge remote-tracking branch 'origin/test' into test 2019-04-22 16:58:34 -05:00
Chris Veilleux 2ee471a6e1 add api metrics table and collection. in the process, changed the database connection mechanism to only get a connection from the pool once per request. 2019-04-22 16:58:28 -05:00
Matheus Lima 12c6884173 Expiring device setting etag when a device is edited 2019-04-19 16:51:35 -03:00
Matheus Lima 710ab6520c Validating skill settings retrieved 2019-04-19 12:36:45 -03:00
Matheus Lima d60fc06ea2 Fixing the skills settings uploading when the skill has empty settings 2019-04-19 12:28:17 -03:00
Chris Veilleux eb6a6d7c61 removed remnants of the refresh_token db table 2019-04-18 17:41:52 -05:00
Chris Veilleux bbcac41cc0 expire device etags when device attributes change 2019-04-18 13:38:31 -05:00
Chris Veilleux 322bdabee6 Merge remote-tracking branch 'origin/test' into test 2019-04-18 12:50:36 -05:00
Chris Veilleux bb4fbd0ac2 Added logic to update a device from the UI, which led to some ancillary changes in logic to add a device. Minor refactoring also done. 2019-04-18 12:49:06 -05:00
Chris Veilleux dde2ea05ea added pyhamcrest and moved selene from dev-packages to packages 2019-04-17 12:24:34 -05:00
Matheus Lima 6c8f7753b1 Adding code field to timezone and fixing the offset and dst offset to de returned in milliseconds instead of hours 2019-04-16 18:36:22 -03:00
Matheus Lima 2af381cf00 Fixing skills settings and skills manifest uploading 2019-04-16 18:11:14 -03:00
Chris Veilleux 6fbd13a5d9
Merge pull request #106 from MycroftAI/test
removed all logic related to storing refresh tokens on the database
2019-04-16 15:59:06 -05:00
Chris Veilleux af5d5b5be3 removed all logic related to storing refresh tokens on the database 2019-04-08 20:39:55 -05:00
Chris Veilleux d9246d60ed
Merge pull request #105 from MycroftAI/test
Bug fixes, device delete
2019-04-08 16:44:00 -05:00
Chris Veilleux 07e87b6e65 updated version 2019-04-08 00:12:08 -05:00
Chris Veilleux 36e459ddb2 forgot to assign return value of federated authentication 2019-04-08 00:11:21 -05:00
Chris Veilleux 7f90820eab move logic to get email address from facebook/google into util so that both sso and account APIs can use it. 2019-04-07 23:33:09 -05:00
Chris Veilleux 2610e260dc retrieve display name from skill for the ui 2019-04-04 17:31:18 -05:00
Chris Veilleux 900b4d1439 enable device delete 2019-04-04 16:59:51 -05:00
Chris Veilleux ad7eb63536
Merge pull request #104 from MycroftAI/test
added logging config to public api
2019-04-04 13:27:45 -05:00
Chris Veilleux bf4991007b added logging config to public api 2019-04-04 13:19:22 -05:00
Chris Veilleux ab73961ec2
Merge pull request #103 from MycroftAI/test
Minor tweaks to logging logic
2019-04-04 11:55:56 -05:00
Chris Veilleux a1b8876dfd added root logger config 2019-04-04 01:51:16 -05:00
Matheus Lima ef3f0a31ad Merge branch 'dev' of github.com:MycroftAI/selene-backend into dev 2019-04-03 22:56:13 -03:00
Matheus Lima c8a86076f9 Configuring logging root 2019-04-03 22:53:35 -03:00
Chris Veilleux 3adaed422e Merge remote-tracking branch 'origin/test' into test 2019-04-03 20:36:00 -05:00
Chris Veilleux 580dc9d37b fixed an issue with the sso API failing due to the selene cache being defined as a base class instance attribute 2019-04-03 20:35:44 -05:00
Matheus Lima 35c5111967 Merge branch 'test' of github.com:MycroftAI/selene-backend into test 2019-04-03 22:14:12 -03:00
Matheus Lima 8d4df9928e Adding logging to the skill manifest endpoint 2019-04-03 22:08:58 -03:00
Chris Veilleux b09d900204 enable update of device defaults 2019-04-03 19:53:19 -05:00
Matheus Lima 11ba261ed6 Adding etag manager in the account api and expiring skill etag when the skill is updated 2019-04-03 13:12:27 -03:00
Chris Veilleux b6542198f3 added a patch method to the preferences endpoint and did some refactoring 2019-04-02 20:35:27 -05:00
Chris Veilleux 41d4548304 Merge remote-tracking branch 'origin/test' into test 2019-04-02 17:31:10 -05:00
Chris Veilleux cf052d138b fixed an incorrect config 2019-04-02 17:30:10 -05:00
Chris Veilleux faf5f068d6
Merge pull request #97 from MycroftAI/dev
Fixing endpoint to use skill family_name instead of skill name
2019-04-02 17:24:04 -05:00
Matheus Lima 2c0061732c Fixing endpoint to use skill family_name instead of skill name 2019-04-02 19:11:45 -03:00
Chris Veilleux 9c847f742a
Merge pull request #95 from MycroftAI/dev
Fixing skill validation
2019-04-02 15:07:07 -05:00
Matheus Lima 3992787355 Fixing skill validation 2019-04-02 16:58:24 -03:00
Chris Veilleux d967208d7b
Merge pull request #93 from MycroftAI/dev
Fixing skill validation
2019-04-02 14:51:06 -05:00
Matheus Lima 7f1e83c8d5 Fixing skill validation 2019-04-02 16:37:45 -03:00
Chris Veilleux 849c8edc3a fixed a minor bug 2019-04-02 12:26:02 -05:00
Matheus Lima 492a778d40 Added etag support to the endpoint to get skill settings 2019-04-02 13:42:45 -03:00
Chris Veilleux 49036b2909 merged dev into global skill id 2019-04-02 11:37:42 -05:00
Chris Veilleux 0ed794e031
Merge pull request #90 from MycroftAI/test
password reset to dev
2019-04-02 11:34:56 -05:00
Chris Veilleux 56b8d012ed password reset functionality 2019-04-01 20:11:32 -05:00
Matheus Lima 07757f6dbc Fixing the skills setting and skills manifest uploading 2019-04-01 18:46:59 -03:00
Chris Veilleux 80585076b5 changed definition of skill table to match more closely with the skill metadata 2019-04-01 13:13:05 -05:00
Chris Veilleux 32b62ec72d updated the marketplace API to use the new architecture 2019-03-29 12:05:42 -05:00
Matheus Lima aabc779647 fixing bug with google stt and fixing device's setting to properly return date format and time format 2019-03-27 13:11:38 -03:00
Matheus Lima dac786238d Minor refactor 2019-03-27 11:34:29 -03:00
Matheus Lima cab65636db Created API call to fetch the skills manifest 2019-03-27 11:23:59 -03:00
Matheus Lima e23d9ab840 Created endpoint to upload skills manifest 2019-03-27 11:23:59 -03:00
Matheus Lima 0deb202125 Added etag support to the device location endpoint 2019-03-27 11:21:26 -03:00
Matheus Lima f3e67f9677 Created endpoint to fetch a location associated with a device 2019-03-27 11:21:26 -03:00
Matheus Lima a55211f0b5 Fixing tests 2019-03-27 11:21:26 -03:00
Chris Veilleux 4b100a4176 change the logic around membership changes to fix some things and adapt to a change in how the UI is sending the data. 2019-03-26 18:57:18 -05:00
Chris Veilleux 28977e6355 ensure the geographical location is associated with an account before the device is added 2019-03-25 19:02:48 -05:00
Chris Veilleux a684242648 to improve security, UI will pass authentication tokens to this endpoint instead of email addresses. endpoint will use tokens to obtain email address from provider. 2019-03-25 18:40:01 -05:00
Chris Veilleux 549fdfb8af add a todo to revisit the post logic when I have a better understanding of Angular forms 2019-03-25 16:21:17 -05:00
Chris Veilleux 818f2dc863 ensure the geographical location is associated with an account before the device is added 2019-03-23 18:43:09 -05:00
Chris Veilleux cbb476ea4a fixed incorrect query parameters 2019-03-22 12:36:47 -05:00
Chris Veilleux 037892b4e5 fixed a bug where the API was passing an object instead of a string 2019-03-22 12:18:35 -05:00
Chris Veilleux e61a3ab461 removed link from skill to skill display 2019-03-22 12:05:01 -05:00
Chris Veilleux bbc893766f fixed a cut and paste issue 2019-03-22 00:21:50 -05:00
Chris Veilleux 2b46cac1b5
added stripe package 2019-03-21 13:33:36 -05:00
Chris Veilleux f94b1bbe6b applied code review changes 2019-03-21 12:24:46 -05:00
Chris Veilleux 425be9a0a8 merge dev into add-device 2019-03-21 12:08:38 -05:00
Chris Veilleux af49cdb63a return no content (204) when logout is successful 2019-03-20 22:25:17 -05:00
Chris Veilleux 3bd458476a implemented a post request to add a device and did some refactoring 2019-03-20 17:17:40 -05:00
Chris Veilleux 8f4e10aa4d implemented add device tests 2019-03-20 17:16:46 -05:00
Chris Veilleux 330390fd81 commented these out for now since they depend on an endpoint that was moved. 2019-03-20 17:16:18 -05:00
Chris Veilleux 4042775422 apply schema changes 2019-03-20 17:15:56 -05:00
Chris Veilleux db230cc208 removed add device endpoint as it now exists in the account API 2019-03-20 17:12:32 -05:00
Chris Veilleux 3b0a8cfa9e added payment id to subscription arguments to fix a bug 2019-03-20 17:10:48 -05:00
Chris Veilleux 7d7f0bbd01 new endpoint for account defaults 2019-03-20 13:42:17 -05:00
Chris Veilleux 1f757a4ee9 new post method for account preferences 2019-03-19 17:59:36 -05:00
Matheus Lima c0ee6224d9 Created functions to epire etags from the device entity and the device's settings entity, at device and account level. Fixed the query used to fetch the devices from a user 2019-03-19 12:42:16 -03:00
Matheus Lima b422de76c2 Implemented etag support on the endpoint `GET /device/{uuid}/setting` 2019-03-18 20:21:46 -03:00
Chris Veilleux c851624256 Merge remote-tracking branch 'remotes/origin/dev' into add-device
# Conflicts:
#	api/account/account_api/api.py
#	api/account/tests/features/steps/update_membership.py
#	shared/selene/api/endpoints/account.py
#	shared/selene/data/account/repository/sql/get_active_membership_by_account_id.sql
2019-03-18 17:05:08 -05:00
Matheus Lima df14af5322 Implemented etag support on the endpoint `GET /device/{uuid}` 2019-03-18 16:34:34 -03:00
Matheus Lima 134bd9cc03 Fixing broken test after adding the payment_id column to the account_membership table 2019-03-18 11:19:32 -03:00
Matheus Lima ff16ce4477 Adding payment_id column into the account_membership table, and removing the previous subscription from stripe when a user changes his membership 2019-03-15 11:58:00 -03:00
Matheus Lima d88d58525c Fixing conflicts with dev branch 2019-03-15 11:31:47 -03:00
Matheus Lima 0b22767e7f Applying camel case and fixing query used to get the active membership 2019-03-15 11:18:11 -03:00
Matheus Lima b5a53d4c91 Fixed an created test for the membership updating 2019-03-15 11:14:21 -03:00
Matheus Lima 37058475b2 Created PATCH request to update membership 2019-03-15 11:14:21 -03:00