Commit Graph

109 Commits

Author SHA1 Message Date
c584950f11
/files/: discarded partial request code
apparently Flask already implemented this by default :(
also added tests to ensure everything works fine
2023-05-11 21:04:54 -04:00
a90522ddb9
/files/: implemented Range header for partial download 2023-05-08 21:02:29 -04:00
e2ec325540
models.py: logic error 2023-05-08 18:54:40 -04:00
bb6e222255
/files/: clean up files 2023-05-08 18:49:36 -04:00
d7e93880a2
models.py: fix Chunk not having upload_id 2023-05-07 22:17:05 -04:00
843e89511a
contrib/testcmds.fish: updated 2023-05-07 22:14:15 -04:00
84d4e13814
config.py: fix hostname for dev server 2023-05-07 22:13:23 -04:00
2e6ecad00a
migrations: updated 2023-05-07 21:52:30 -04:00
7aa60d8aed
implemented chunked upload 2023-05-07 21:08:45 -04:00
ec41382f9d
README.md: added extra info 2023-04-30 20:54:26 -04:00
4337a921ae
sachet/server/commands.py: added cleanup 2023-04-30 19:31:01 -04:00
32618dec69
added migrations 2023-04-30 17:42:45 -04:00
e96e3a376b
reformat 2023-04-30 17:33:43 -04:00
ec3245dd4f
replace imports in the middle of code with current_app 2023-04-30 17:28:17 -04:00
bdabb4a85a
/files: implemented /lock, /unlock endpoints 2023-04-29 13:18:09 -04:00
c0d4be8363
tests/conftest.py: fix test for modifying another users' shares 2023-04-29 12:17:32 -04:00
424de4f282
/files: disallow modifying other users' shares 2023-04-29 12:09:32 -04:00
fa57548e0b
tests/test_anonymous.py: add more tests to prod at anonymous permissions 2023-04-29 11:57:56 -04:00
30899847fb
/files: make tests more robust 2023-04-27 21:16:10 -04:00
f97cfbbe33
/files/: add anon permissions 2023-04-27 20:32:46 -04:00
2388bac57f
reformatted code again
i should probably put Black in a commit hook or something
but nahhhh can't be that bad
2023-04-26 21:02:04 -04:00
bb3731cc6d
testcmds.fish: improve some functions 2023-04-26 20:51:13 -04:00
387e2dbeb9
sachet/server/files/views.py: add check for invalid UUID 2023-04-26 20:40:45 -04:00
45018511f7
contrib/testcmd.fish: uploaded 2023-04-26 20:40:15 -04:00
a0e163d8bd
/files: add GET with pagination 2023-04-26 19:51:09 -04:00
bfd0cd8fdf
sachet/server/views_common.py: split off POST from ModelAPI
Now it's in ModelListAPI
2023-04-25 19:17:07 -04:00
3473156417
/files/: internally restructure API names 2023-04-23 22:03:41 -04:00
03a51ddbc4
/files/: implement proper modification 2023-04-22 18:25:10 -04:00
964114e6a3
test/test_files.py::test_sharing: make filename check more resilient 2023-04-15 18:12:50 -04:00
cb4904d70a
/files: implemented file name 2023-04-15 17:56:48 -04:00
ae0cc950f5
/files: add more tests 2023-04-15 16:34:48 -04:00
f29fd193fb
.gitignore: add .venv 2023-04-13 16:00:05 -04:00
518898d554
tests: refactor authentication header 2023-04-13 13:30:53 -04:00
831017092a
sachet/server/views_common.py: add an extra error check on patch() 2023-04-13 12:45:15 -04:00
af21887402
/files/: implemented endpoint 2023-04-13 12:44:51 -04:00
2fba574773
sachet/server: auth_required now has more modular permissions
there is no more require_admin, because ADMIN is just one of many
permissions
2023-04-10 22:15:33 -04:00
6749391b3c
storage: refactor to be more OOP 2023-04-09 17:49:26 -04:00
25dc5b2200
storage: added tests for renaming 2023-04-09 15:04:22 -04:00
95ed51dd64
storage: implemented filesystem
test coverage to be improved
2023-04-08 18:35:56 -04:00
743c8b9eaa
added stub for server settings
we can now modify the default permissions for unauthenticated users
it doesn't do anything yet, though
2023-04-02 14:00:11 -04:00
f49d47fda6
sachet/server/models.py: make the permissions property reusable 2023-04-01 18:31:04 -04:00
68f56dd1a1
refactor: split off generic model REST API logic
also, a model's marshmallow schema class is now within the model class
2023-04-01 17:56:25 -04:00
a53fba5f4b
sachet/server/models.py: merge read_token() into the User class 2023-03-31 20:06:00 -04:00
27f6703318
linted everything with black 2023-03-30 20:20:09 -04:00
f01d1d0e54
/users/<id>: added PUT endpoint 2023-03-29 19:50:09 -04:00
ee6c7d4fa5
/users/<id>: added PATCH endpoint 2023-03-28 21:48:09 -04:00
548ccdb892
made permissions more flexible 2023-03-27 21:54:20 -04:00
96e12c33da
models: use Marshmallow for serializing/deserializing 2023-03-25 17:16:33 -04:00
e8cd368e38
auth: added /users/extend endpoint 2023-03-18 21:52:25 -04:00
657f634882
authentication: added logout ability 2023-03-11 13:07:11 -05:00