Commit Graph

  • dbdff06e68 Move all the routers under their own dir. Tom Hacohen 2020-12-29 15:42:41 +0200
  • 8bf04fc286 Reformat files using black. Tom Hacohen 2020-12-29 15:37:11 +0200
  • e6b47ae1a9 Fix login_challenge to work with get_user_queryset. Tom Hacohen 2020-12-29 15:17:46 +0200
  • ff55904f49 Fix user type Tom Hacohen 2020-12-29 14:04:17 +0200
  • 259e395c92
    Merge: change the server to use FastAPI Tom Hacohen 2020-12-29 13:51:51 +0200
  • 84b6114e99 Requirements: add dev requirements and django-stubs. Tom Hacohen 2020-12-29 13:43:11 +0200
  • 794b5f3983 Fix many type errors. Tom Hacohen 2020-12-29 13:22:36 +0200
  • e13f26ec56 Fix handling of legacy accounts that don't have collection type. Tom Hacohen 2020-12-29 10:27:35 +0200
  • f67730f42d Support passing custom middlewares. Tom Hacohen 2020-12-29 10:12:36 +0200
  • a8b97e60d4 Docs: improve metadata. Tom Hacohen 2020-12-29 09:46:20 +0200
  • 7714148807 Use ValidationError when appropriate. Tom Hacohen 2020-12-28 18:49:05 +0200
  • f0a8689712 Implement sendfile. Tom Hacohen 2020-12-28 18:44:55 +0200
  • c7f09d3fef implement chunk_download. Tom Hacohen 2020-12-28 18:25:06 +0200
  • 53b22602b2 Implement chunk_update. Tom Hacohen 2020-12-28 18:17:57 +0200
  • dcf81aa9ce Fix prefetch medium. Tom Hacohen 2020-12-28 18:17:41 +0200
  • f7858a20b7 Fix user creation. Tom Hacohen 2020-12-28 17:46:20 +0200
  • 3d438b9591 Cleanup validation errors. Tom Hacohen 2020-12-28 17:39:51 +0200
  • 10ff303b75 Fix formatting. Tom Hacohen 2020-12-28 17:09:20 +0200
  • fa0979dce1 Test reset: clean reset function. Tom Hacohen 2020-12-28 16:57:09 +0200
  • 151bec0d9e Fix type error. Tom Hacohen 2020-12-28 16:44:13 +0200
  • 586b015eb7 Login: also return username and email upon login. Tom Hacohen 2020-12-28 16:23:01 +0200
  • c2a2e710c9 Move common dependencies to their own file. Tom Hacohen 2020-12-28 15:38:00 +0200
  • 3e39aa88a1 Remove unused var. Tom Hacohen 2020-12-28 15:27:29 +0200
  • 1bca435d74 Workaround typing issue. Tom Hacohen 2020-12-28 15:26:34 +0200
  • 59e30ed988 Signup and logout: make sync. Tom Hacohen 2020-12-28 15:17:13 +0200
  • ca7f2ec73c When converting from ORM convert binary fields to bytes. Tom Hacohen 2020-12-28 15:08:03 +0200
  • 50f89c48e2 Dashboard url: fix getting dashboard url. Tom Hacohen 2020-12-28 15:07:18 +0200
  • c1f171bde0 Change how we create applications. Tom Hacohen 2020-12-28 14:47:41 +0200
  • 65cd722616 django_etebase utils: add optionl user to context. Tom Hacohen 2020-12-28 14:27:23 +0200
  • b3c170e10d fix getting dashboard URL. Tom Hacohen 2020-12-28 14:28:42 +0200
  • 313dcf0721 django_etebase utils: add optionl user to context. Tom Hacohen 2020-12-28 14:27:23 +0200
  • c918d3ed07 Add base64 utils. Tom Hacohen 2020-12-28 14:26:44 +0200
  • 2e9caf66f9 Remove deprecated settings. Tom Hacohen 2020-12-28 14:04:07 +0200
  • 4ceb42780e Remove unused django_etebase code. Tom Hacohen 2020-12-28 13:56:53 +0200
  • 0fa2f2da3b Make the fastapi application the main asgi one. Tom Hacohen 2020-12-28 13:26:12 +0200
  • b081d0129f Add support for read/write permissions. Tom Hacohen 2020-12-28 12:12:00 +0200
  • 6c05a7898a Add functions to split read and write permissions. Tom Hacohen 2020-12-28 11:49:20 +0200
  • 63afcc0830 Mount the django application. Tom Hacohen 2020-12-28 11:44:17 +0200
  • 295ae6f3d3 Update changelog. Tom Hacohen 2020-12-28 16:39:16 +0200
  • 08821c5e33 Update changelog. Tom Hacohen 2020-12-28 16:39:16 +0200
  • ad2205e596 Add trusted host middleware. Tom Hacohen 2020-12-28 10:57:40 +0200
  • 38884fead8 Revert "Improve chunks type." Tom Hacohen 2020-12-28 10:47:07 +0200
  • cf7690a60f Remove usages of EtebaseValidationError. Tom Hacohen 2020-12-28 10:45:34 +0200
  • 37f5a4509f Improve chunks type. Tom Hacohen 2020-12-28 10:41:22 +0200
  • 1a09393dcb Also add 401 to permission responses. Tom Hacohen 2020-12-28 10:29:47 +0200
  • 959dc9b576 minor fix Tal Leibman 2020-12-28 10:27:49 +0200
  • b39f7951e2 chunk first-type. Tom Hacohen 2020-12-28 10:18:35 +0200
  • 4b4be14d32 Add more responses to the API. Tom Hacohen 2020-12-28 10:00:35 +0200
  • a75d5479fa Rename ValidationError to HttpError. Tom Hacohen 2020-12-28 09:51:27 +0200
  • 34c548acda Remove extra import. Tom Hacohen 2020-12-28 09:47:37 +0200
  • 6517fc5db2 More route tags to a central place. Tom Hacohen 2020-12-28 09:35:27 +0200
  • 80d69a5663 Fix collection list and how we return API responses. Tom Hacohen 2020-12-28 09:25:28 +0200
  • ee4e7cf498 Unify the nested router prefix. Tom Hacohen 2020-12-28 09:11:35 +0200
  • 9f26ecf276 API: add documentation tags. Tom Hacohen 2020-12-28 09:04:45 +0200
  • 15988235f2 Exclude unset fields so fix removedMemberships return value. Tom Hacohen 2020-12-28 08:42:48 +0200
  • d63c34693f Change all item_uids to be called item_uids. Tom Hacohen 2020-12-27 23:11:12 +0200
  • 1c8684ee92 Fix a FIXME. Tom Hacohen 2020-12-27 23:06:25 +0200
  • c7b8b0373a Add permissions. Tom Hacohen 2020-12-27 22:56:23 +0200
  • df19887af7 Use dependency injection for getting collection/item queryset. Tom Hacohen 2020-12-27 22:27:33 +0200
  • 8160a33384 Get collection queryset: remove param. Tom Hacohen 2020-12-27 22:13:36 +0200
  • 403d975934 Collection: fix dep handling. Tom Hacohen 2020-12-27 21:58:58 +0200
  • fa0cd01a59 Authentication: implement part of get_dashboard_url. Tom Hacohen 2020-12-27 21:50:34 +0200
  • e8bd8927a0 Implement modifying access level. Tom Hacohen 2020-12-27 21:47:30 +0200
  • 36e6d3df24 Members: add member endpoints. Tom Hacohen 2020-12-27 21:32:48 +0200
  • b5a750d6d0 Collection: fix removed memberships. Tom Hacohen 2020-12-27 21:41:31 +0200
  • b70f2b7470 Invitations: implement invitations endpoints. Tom Hacohen 2020-12-27 21:08:00 +0200
  • 7f90edc511 MsgPack: handle no content. Tom Hacohen 2020-12-27 21:01:14 +0200
  • ec8c69b3f3 Fix a few FIXMEs. Tom Hacohen 2020-12-27 20:36:11 +0200
  • 13d4121fc2 Move utility functions to utils. Tom Hacohen 2020-12-27 18:54:06 +0200
  • 629a84f432 app.py: cleanup a bit. Tom Hacohen 2020-12-27 18:38:18 +0200
  • 533b2787bb Implement item revisions. Tom Hacohen 2020-12-27 18:34:40 +0200
  • e686f01652 Utils: add a utility for getting objects or 404ing. Tom Hacohen 2020-12-27 18:34:23 +0200
  • e7721e8fe5 Fix chunk handling. Tom Hacohen 2020-12-27 18:12:16 +0200
  • a3ae769a2c Implement fetch_updates. Tom Hacohen 2020-12-27 17:58:15 +0200
  • a9bc08a98d Item batch/transaction: fix return data. Tom Hacohen 2020-12-27 17:39:47 +0200
  • c6c52cfe11 Implement collection list. Tom Hacohen 2020-12-27 17:33:01 +0200
  • 7ad98b8d28 Implement is_etebase. Tom Hacohen 2020-12-27 17:30:17 +0200
  • 407ce0b7a5 Fixed collection_list_common. Tom Hacohen 2020-12-27 17:10:59 +0200
  • e5dbfb5746 Make the import of models more consistent. Tom Hacohen 2020-12-27 17:07:07 +0200
  • 611c0f3b0a Conform to naming conventions. Tom Hacohen 2020-12-27 17:03:17 +0200
  • 92f6ccbc28 Implement item_list and item_get. Tom Hacohen 2020-12-27 17:02:36 +0200
  • 8afca6ca96 kwarg items: use the same naming as django_etebase. Tom Hacohen 2020-12-27 16:44:18 +0200
  • aa483709c3 Fix item creation. Tom Hacohen 2020-12-27 16:39:20 +0200
  • b2fe30ac26 Implement item_create, batch and transaction. Tom Hacohen 2020-12-27 16:33:34 +0200
  • 249c3dc2be Cleanup models to have common parents. Tom Hacohen 2020-12-27 16:04:33 +0200
  • 9d213350e7 exceptions.py: fix typo in filename. Tom Hacohen 2020-12-27 15:45:29 +0200
  • df855897f8 Fix type error. Tom Hacohen 2020-12-27 15:26:36 +0200
  • 6f543751a6 Fix and improve typing. Tom Hacohen 2020-12-27 15:25:16 +0200
  • a0aaf79f42 item_batch and item_transaction boilerplate only Tal Leibman 2020-12-27 15:53:31 +0200
  • 6e4f8f9917 Fix list_multi to return the filtered queryset. Tom Hacohen 2020-12-27 14:36:16 +0200
  • b3c177faa6 from_orm_context Tal Leibman 2020-12-27 14:23:19 +0200
  • 53662451a3 collection.py: get by uid and fixed create Tal Leibman 2020-12-27 11:36:18 +0200
  • 94161943ca chunks type hint Tal Leibman 2020-12-26 18:09:46 +0200
  • 1e60938430 rename Tal Leibman 2020-12-26 18:02:29 +0200
  • 8d09e40b3b rename Tal Leibman 2020-12-26 18:01:55 +0200
  • daac0c163b collection.py: save to db Tal Leibman 2020-12-26 12:39:20 +0200
  • be7b830804 collection.py: create Tal Leibman 2020-12-25 19:23:46 +0200
  • 4bd826b3be remove uvicorn run Tal Leibman 2020-12-25 19:08:22 +0200
  • 31e0e0b832 change response content to pydantic models and error handling Tal Leibman 2020-12-25 17:23:44 +0200
  • a0d1d23d2d imports Tal Leibman 2020-12-25 17:22:14 +0200