Commit Graph

285 Commits (81534470ed2b3e75d7033d5321854e8dac4f2e36)

Author SHA1 Message Date
Chris Veilleux 5321b1b390 added two new methods that should reduce some boilerplate code when querying the database and putting the results of the query directly into a dataclass 2019-03-27 20:47:22 -05: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
Chris Veilleux 2a54cc857e move the stripe-specific code to selene.util 2019-03-26 19:08:05 -05:00
Chris Veilleux d20afcc892 minor refactor 2019-03-26 19:06:40 -05: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 9fa0a4f1ff added stripe package 2019-03-26 14:50:43 -05:00
Chris Veilleux b440c517ba added logic to delete an account 2019-03-26 14:29:18 -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 aab5917c98 fixed an issue with the add device query that would not include custom user wake words 2019-03-22 16:06:56 -05:00
Chris Veilleux e61a3ab461 removed link from skill to skill display 2019-03-22 12:05:01 -05:00
Chris Veilleux 17820a93d8 fixed a bug with defaults not displaying correctly on UI 2019-03-22 00:21:29 -05:00
Chris Veilleux d6f7879925
removed code that should not be there 2019-03-21 23:53:08 -05:00
Chris Veilleux 425be9a0a8 merge dev into add-device 2019-03-21 12:08:38 -05:00
Chris Veilleux 6354ad9dd3 added some entities to the package api 2019-03-20 17:18:16 -05:00
Chris Veilleux 1b6ad566ff updated to add the device based on what is passed to the API from the UI 2019-03-20 17:15:18 -05:00
Chris Veilleux 74caaebcc2 apply schema change 2019-03-20 17:14:40 -05:00
Chris Veilleux 02cc26ffa4 pass a dictionary with device attributes rather than the attributes themselves 2019-03-20 17:14:24 -05:00
Chris Veilleux 6849cfa0c5 removed columns no longer on the preferences table 2019-03-20 17:13:37 -05:00
Chris Veilleux 3393f3395f added payment_id to query to fix a bug 2019-03-20 13:34:10 -05:00
Chris Veilleux 4afa558cd8 added geography_id 2019-03-20 13:33:41 -05:00
Chris Veilleux 877701faf9 added logic to add a device.geography row 2019-03-20 13:32:53 -05:00
Chris Veilleux d7ce0ac3de new account_default table repository code 2019-03-20 11:04:13 -05:00
Chris Veilleux 604c156013 minor change to wake word schema 2019-03-20 11:03:58 -05:00
Chris Veilleux c60af46dd3 new account_default table repository code 2019-03-20 11:03:37 -05:00
Chris Veilleux bbf5a58dc5 changes for new device.geography and device.account_preferences tables 2019-03-19 17:59:06 -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
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
Chris Veilleux f0229319d5 added order by clause for display purposes 2019-03-18 00:23:43 -05:00
Matheus Lima 6ee52127e8 minor refactoring 2019-03-15 18:13:30 -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 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
Chris Veilleux 0967d2d458 updated to reflect that the UI will send a null membership type if the user does not sign up 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
Matheus Lima 532762bec7 Implemented stripe integration 2019-03-15 11:13:29 -03:00
Matheus Lima cc409d1b5e Starting to implement the stripe integration 2019-03-15 11:09:38 -03:00
Matheus Lima f547a452a3 Created PATCH request to update membership 2019-03-15 11:07:12 -03:00
Matheus Lima 497d7b2740 Implemented stripe integration 2019-03-15 11:07:12 -03:00
Chris Veilleux 2cb58c50e8 added endpoint to get membership types and the supporting repository logic 2019-03-15 11:07:12 -03:00
Chris Veilleux 397a7a4c77 removed unused module 2019-03-15 11:07:12 -03:00
Matheus Lima d29a3ee857 Starting to implement the stripe integration 2019-03-15 11:07:12 -03:00
Chris Veilleux 159ce1c06b api endpoints for geographical locations and the repository code to support it 2019-03-15 01:05:19 -05:00
Chris Veilleux f30d5ed709 Merge remote-tracking branch 'remotes/origin/stripe-integration' into add-device 2019-03-14 19:12:56 -05:00
Matheus Lima 9f75bf93c4 Applying camel case and fixing query used to get the active membership 2019-03-14 20:26:16 -03:00