3a4754d28b
Hot fix for the fix.
2016-05-07 00:39:54 +02:00
666a5842a5
Fix for setting is_private on new permission-less projects
2016-05-06 19:11:58 +02:00
402981a6b1
Small fixes
2016-05-06 19:11:21 +02:00
2cdde04a8b
Small code clarifications
2016-05-06 18:28:08 +02:00
899497b3b1
Implemented merging of permissions.
...
Permissions are now merged between project, node type and node, instead
of having the lower-level permissions override the higher-level
permissions.
2016-05-06 18:15:50 +02:00
4dc5b4dbbf
Added manage.py project_stats command.
...
It counts file size, nr of nodes and nr of top-level nodes per project.
2016-05-06 17:41:00 +02:00
879a18ee68
Added 'manage.py refresh_file_sizes' to update all aggregate sizes.
...
Computes & stores the 'length_aggregate_in_bytes' fields of all files.
2016-05-06 12:43:45 +02:00
410ecac78c
Reformatted manage.py
2016-05-06 12:43:45 +02:00
6f193da89d
Added entry point /p/<project_id>/quotas
...
At the moment this entry point only returns the total file size of all
files belonging to the project. It can be extended to return more info,
such as nr. of nodes/groups/etc.
2016-05-06 12:43:45 +02:00
bbc30b9d99
Compute & store aggregate file size.
2016-05-06 12:43:45 +02:00
1bb2979428
Slight improvement to project group mgmnt tests
2016-05-06 12:43:45 +02:00
a2ce18196a
Simplified permissions for projects.
...
Instead of the additional 'is_private' field, we now just use
the permission system and set/remove world GET permissions.
'is_private' is still kept for backward compatibility and possibly
easy querying for public projects, and is always set based on
world GET permissions.
2016-05-06 12:42:16 +02:00
758273edab
Return target user after adding or removing it from project
2016-05-06 11:56:52 +02:00
2580466469
User management for projects
...
Support for retrieving user of a project.
2016-05-06 10:30:05 +02:00
ffa98d72e6
Sort fetched nodes by creation date
2016-05-04 18:28:45 +02:00
0b1664a83c
Add project_manage_users endpoint
...
Manage users of a project. In this initial implementation, we handle
addition and removal of a user to the admin group of a project. No
changes are done on the project itself.
2016-05-04 17:04:10 +02:00
d93d1091f9
Fix for indexing if project is private
2016-05-04 15:55:20 +02:00
7b0c037529
Debug-log the subclient ID too
2016-05-04 14:06:27 +02:00
c248e8c11b
Moved modules/latest/__init__.py to modules/latest.py
2016-05-04 09:34:58 +02:00
fb0629dcb0
Make logging less verbose for blender_id in production
2016-05-03 15:19:29 +02:00
80919dacb3
New add_license_props in manage.py
2016-05-03 14:47:33 +02:00
d0d8b7d11d
Added missing unit test for content type overrides.
2016-05-03 11:23:26 +02:00
0389b05b14
Save temporary files in STORAGE_DIR
...
This makes it trivial to save uploaded files to STORAGE_DIR, as the
temporary files Flask saves them in are already there.
2016-05-03 11:22:54 +02:00
0580d3fa65
Removed some whitespace
2016-05-03 11:11:36 +02:00
54a2176d7c
Override browser-given content type for certain types.
...
If the browser gives us audio/xxx, video/xxx or image/xxx, we just use
it. Otherwise the mimetypes package is used to guess the mime type
based on the file's extension.
Also ensures the content type of the file is updated in MongoDB. Does
NOT update any nodes that link to this file.
2016-05-03 10:57:56 +02:00
950a12048b
More and more and more projections and embeddings
2016-05-02 19:46:05 +02:00
d4e5fab087
Moar projections!
2016-05-02 19:42:35 +02:00
eaa67d1271
Embed comment parents
2016-05-02 19:17:26 +02:00
b18675e746
New projects are marked private by default.
2016-05-02 19:07:31 +02:00
a216e5c00d
Special entry points for getting latest assets etc. from public projects.
2016-05-02 19:07:21 +02:00
3e8494e3bf
Use soft-delete for nodes
2016-05-02 17:06:59 +02:00
b9367f9944
Removed node_types Eve collection
2016-05-02 17:05:21 +02:00
445bf601dc
Don't double-x mime types
2016-05-02 17:04:18 +02:00
6394d83da2
Prevent video processing for non-admin users.
2016-05-02 16:21:06 +02:00
b4327f22e8
Disallow node status 'deleted' for node type asset
2016-05-02 15:57:26 +02:00
6c7ad6f6f0
Marked Flask as primary requirement.
2016-05-02 15:38:02 +02:00
24c5936751
Fetch the new etag after updating file links.
...
It's stupid and goes to MongoDB again, but it works for now.
2016-05-02 15:38:02 +02:00
42ff638b48
Allow cross-site requests
...
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
2016-05-02 15:37:58 +02:00
57375bd0c4
Gracefully handle bad ObjectId passed on URL
2016-05-02 13:23:52 +02:00
53aa0dae3b
Deducting asset node content type from file content type.
2016-05-02 12:30:52 +02:00
32ad39aeb1
Moved node management to modules/node.py
...
No semantic changes, all should work identically as before.
2016-05-02 11:35:17 +02:00
681754eade
Removed some obsolete unit tests.
2016-05-02 11:13:19 +02:00
20ed580e21
Renaming hash-mp4.mp4 to hash-720p-mp4 (and similar things)
...
This requires an additional rename step after Zencoder does its thing,
as before that we don't know the frame size of the video.
2016-05-02 11:13:19 +02:00
92970d5b6a
Filename hashing on GCS
2016-05-02 11:13:19 +02:00
401bfeea98
File streaming to Google Cloud Storage
...
Also simplifies some code since we're only going to support GCS.
2016-05-02 11:13:19 +02:00
7aefed22d4
Using unused parameter
2016-05-02 11:13:19 +02:00
060590213e
Made GCLOUD_PROJECT a 'secret' config key.
...
This prevents developers (like me) from accidentally using the production
GCS project.
2016-05-02 11:13:19 +02:00
9e2664fe20
Ignore google_app.json, as it should never be committed.
2016-05-02 11:13:19 +02:00
0652762d3a
Disable order and notes visibility for asset and group
2016-04-29 15:44:08 +02:00
cffe678ca3
Default settings for basic node_types
2016-04-29 15:22:11 +02:00