Sybren A. Stüvel
9ed73eb7dd
Home project: allow projections.
2016-06-28 14:12:29 +02:00
Sybren A. Stüvel
bcadfcd6f5
Debug log when returned projects are filtered out due to permissions.
2016-06-28 14:12:29 +02:00
Sybren A. Stüvel
ba79a30846
Removed an assumption that project creator is project owner.
...
This assumption may still exist in other parts of the application, though.
2016-06-28 14:12:29 +02:00
Sybren A. Stüvel
b4faf2245e
Home project: create it when user tries to GET it.
2016-06-28 14:12:29 +02:00
Sybren A. Stüvel
3980133100
Moved creation of standard groups in unittests
2016-06-28 14:12:29 +02:00
Sybren A. Stüvel
3094a09fec
PEP8 formatting
2016-06-28 14:12:29 +02:00
Francesco Siddi
ee95abb62a
Make zencoder and algolia optional packages
...
If zencoder is not set as ENCODING_BACKEND this can cause issues, but
at least it is possible to run Pillar without the zencoder package
installed. Also, we load the algolia module using the new
SEARCH_BACKEND config setting.
2016-06-26 20:02:41 +02:00
Sybren A. Stüvel
9e6bd9c219
Fixed bug in status check in update_file_name
2016-06-15 16:00:06 +02:00
Sybren A. Stüvel
82cf88ee49
Slight simplification of node form valdation, and better logging.
2016-06-15 16:00:03 +02:00
Sybren A. Stüvel
a17bb969f9
Fixed bug in sync_role_groups
2016-06-15 14:13:16 +02:00
Sybren A. Stüvel
d4bed9543f
Tiny badger service fixes
2016-06-15 10:10:41 +02:00
Sybren A. Stüvel
de35ebf56f
Retry a few times when POSTing to BlenderID fails.
2016-06-15 10:10:37 +02:00
Sybren A. Stüvel
36a2e028d4
Added sync_role_groups management command.
...
This ensures that group membership is consistent with the user's roles.
The roles are leading in this.
2016-06-14 16:41:37 +02:00
Sybren A. Stüvel
ba1f8a4101
Badger service: also manage group membership
...
For the subscriber, demo and admin roles, the badger service now also
manages group membership for the role-specific groups.
2016-06-14 15:39:22 +02:00
Sybren A. Stüvel
ec7b3159ac
Made a.m.blender_cloud a module directory
...
Moved original file contents to blender_cloud/texture_lib.py, to allow
space for a future blender_cloud/home_project.py file.
2016-06-14 11:34:07 +02:00
Sybren A. Stüvel
57e07db972
Prevent set(None) call
2016-06-14 09:45:20 +02:00
Sybren A. Stüvel
08fceeffc0
Added management command to find duplicate users, based on their BlenderID
2016-06-09 17:19:46 +02:00
Sybren A. Stüvel
79661c6a32
Added script for backing up the live MongoDB.
...
Assumes you have an SSH tunnel to cloudapi.blender.org with
localhost:27018 forwarded to localhost-at-other-side:27017, like:
ssh cloudapi.blender.org -L 27018:localhost:27017
2016-06-08 11:55:22 +02:00
Sybren A. Stüvel
f82000aa33
Added refresh_project_permissions management command
2016-06-08 11:35:08 +02:00
Sybren A. Stüvel
bd6079ae4c
Use central definition of default admin group permissions
2016-06-08 11:35:08 +02:00
Sybren A. Stüvel
4a0bbb23bb
Fixed broken import
2016-06-08 11:35:08 +02:00
Sybren A. Stüvel
ccfc1a663d
Badger service: handle missing data
2016-06-06 18:19:43 +02:00
Sybren A. Stüvel
222d9efc89
Implemented badger service endpoint
...
Also added manage.py command to create badger service accounts.
2016-06-06 16:34:50 +02:00
Sybren A. Stüvel
4aa44c42c8
Nicer local token generation.
...
No more +, / or = characters.
2016-06-06 16:24:54 +02:00
Sybren A. Stüvel
3a06e02b4d
We're not using httpretty any more
2016-06-06 16:22:50 +02:00
Francesco Siddi
8d5683c7a2
Remove unneeded etag check on user update
2016-06-01 11:26:18 +02:00
Sybren A. Stüvel
0daaefdcc3
Retry with unique username both on PUT and POST.
2016-06-01 10:33:01 +02:00
Sybren A. Stüvel
fb020ae4b4
Added unit test for refreshing links upon fetching a file document.
2016-05-31 17:56:24 +02:00
Sybren A. Stüvel
8761dd1b91
Convert images to RGB before thumbnailing and writing as JPEG.
2016-05-31 14:44:23 +02:00
Sybren A. Stüvel
c5985a3060
Even more logging to figure out why PUT/POST to user goes wrong.
2016-05-31 14:14:33 +02:00
Sybren A. Stüvel
5276d960d6
Added some extra logging to find source of 'username not unique' errors.
2016-05-31 13:37:39 +02:00
Sybren A. Stüvel
84d297a3bd
Fixed issue uploading small files.
2016-05-30 16:48:47 +02:00
Sybren A. Stüvel
e242701ed0
Try creating a new unique username a few times, before giving up.
2016-05-30 15:42:11 +02:00
Sybren A. Stüvel
9775c821af
Fixed unit test
2016-05-30 14:32:53 +02:00
Sybren A. Stüvel
a5288bd35c
Don't overwrite fullname from B'ID upon login.
2016-05-30 11:41:39 +02:00
Sybren A. Stüvel
23946b1e3a
After Zencoder has finished, force update of the links on next file request.
2016-05-27 16:32:52 +02:00
Sybren A. Stüvel
dd90fafad4
Refuse to generate None links, fall back to '' instead.
2016-05-27 16:32:32 +02:00
Sybren A. Stüvel
c13ba86323
Ignore .coverage files/dirs everywhere.
2016-05-27 16:21:23 +02:00
Sybren A. Stüvel
c6e191365b
Solved issue with video uploading.
...
Filenames were updated at GCS upon a node save, also for files that aren't
saved to GCS yet (i.e. when Zencoder is still encoding). Now we just
skip non-existing files.
2016-05-27 16:21:03 +02:00
Sybren A. Stüvel
f6721c76cc
Lowered log level for "unauthenticated access" message
2016-05-24 11:50:49 +02:00
Sybren A. Stüvel
17902eb730
Bumped Werkzeug to 0.11.10, this fixes our memory issue.
2016-05-24 11:38:09 +02:00
Sybren A. Stüvel
f98b2a09ca
Allow a user to remove themselves from any project they're in.
2016-05-24 11:18:56 +02:00
Sybren A. Stüvel
fc4dfd3964
Prevent creation of superfluous user while testing
2016-05-24 11:18:28 +02:00
Sybren A. Stüvel
2b29ec8ed6
Bumped version of Werkzeug to solve the memory error with large uploads.
2016-05-24 10:49:36 +02:00
Sybren A. Stüvel
f03f00163a
Added generator for node types of all projects.
2016-05-23 16:50:43 +02:00
Sybren A. Stüvel
cf3de95ce1
Removed is_tileable from texture variations.
...
Now the entire texture is either tileable or not.
2016-05-23 16:10:25 +02:00
Sybren A. Stüvel
f1e58d7285
Fixed unittest
2016-05-23 15:21:56 +02:00
Sybren A. Stüvel
8ff10828c6
Cache (project_id, node_type_name) -> project mapping per request.
...
When returning many nodes of the same project and same node type, this
prevents us from doing the same request over and over to MongoDB,
increasing performance.
2016-05-23 15:18:23 +02:00
Sybren A. Stüvel
75738efc0d
Added "runserver_profile" management command.
2016-05-23 15:17:16 +02:00
Sybren A. Stüvel
71db836d41
Increased default page size to 250.
2016-05-23 14:40:16 +02:00