518 Commits

Author SHA1 Message Date
c9337b8d15 Taken out AB-testing for home project.
Home project is available to everybody!
2016-06-29 11:54:58 +02:00
4c73f98047 Revert "Tiny typo in comment (iff instead of if)"
'iff' means 'if and only if', it's not a typo.

This reverts commit 5355e4e359e4554a4590f5a2d3ca0f537dc02d02.
2016-06-28 15:11:11 +02:00
5355e4e359 Tiny typo in comment (iff instead of if) 2016-06-28 15:07:56 +02:00
5a4d98b352 Include parent in the projection for latest_assets 2016-06-28 15:07:21 +02:00
036d7a1b1e Removed some superfluous debug logging. 2016-06-28 15:01:11 +02:00
57cf9a3547 Prevent home project without URL. 2016-06-28 15:01:02 +02:00
d652e6435d Removed "pastebin" from home project descriptions. 2016-06-28 15:00:38 +02:00
18c7ca17e9 Allow Blender Sync access to non-subscribers. 2016-06-28 14:25:13 +02:00
5e506abac9 AB-testing for home project
Only allows access to the home project to user with role 'homeproject'.
2016-06-28 14:12:29 +02:00
e557443b85 PEP8 formatting 2016-06-28 14:12:29 +02:00
e442c6671b Separated role-checking from enforcing those roles.
This allows other functions to use the same role-checking behaviour, and
separates policy from mechanism.
2016-06-28 14:12:29 +02:00
1513649cd8 Added function for None-safe fetching of user ID. 2016-06-28 14:12:29 +02:00
83618a5639 Home project: allow comment nodes 2016-06-28 14:12:29 +02:00
1a48c37bd6 Allow resuscitation of deleted home projects. 2016-06-28 14:12:29 +02:00
ba28f2ac3b Home project: allow comment nodes 2016-06-28 14:12:29 +02:00
a104f54fb0 Force URL of home projects to 'home' 2016-06-28 14:12:29 +02:00
8dc4ac0db7 Allow project creation when GCS fails.
Without this exception handler, the project would be invalid, as the
after_inserting_project() hook would be half-run.
2016-06-28 14:12:29 +02:00
9ed73eb7dd Home project: allow projections. 2016-06-28 14:12:29 +02:00
bcadfcd6f5 Debug log when returned projects are filtered out due to permissions. 2016-06-28 14:12:29 +02:00
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
b4faf2245e Home project: create it when user tries to GET it. 2016-06-28 14:12:29 +02:00
3980133100 Moved creation of standard groups in unittests 2016-06-28 14:12:29 +02:00
3094a09fec PEP8 formatting 2016-06-28 14:12:29 +02:00
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
9e6bd9c219 Fixed bug in status check in update_file_name 2016-06-15 16:00:06 +02:00
82cf88ee49 Slight simplification of node form valdation, and better logging. 2016-06-15 16:00:03 +02:00
a17bb969f9 Fixed bug in sync_role_groups 2016-06-15 14:13:16 +02:00
d4bed9543f Tiny badger service fixes 2016-06-15 10:10:41 +02:00
de35ebf56f Retry a few times when POSTing to BlenderID fails. 2016-06-15 10:10:37 +02:00
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
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
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
57e07db972 Prevent set(None) call 2016-06-14 09:45:20 +02:00
08fceeffc0 Added management command to find duplicate users, based on their BlenderID 2016-06-09 17:19:46 +02:00
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
f82000aa33 Added refresh_project_permissions management command 2016-06-08 11:35:08 +02:00
bd6079ae4c Use central definition of default admin group permissions 2016-06-08 11:35:08 +02:00
4a0bbb23bb Fixed broken import 2016-06-08 11:35:08 +02:00
ccfc1a663d Badger service: handle missing data 2016-06-06 18:19:43 +02:00
222d9efc89 Implemented badger service endpoint
Also added manage.py command to create badger service accounts.
2016-06-06 16:34:50 +02:00
4aa44c42c8 Nicer local token generation.
No more +, / or = characters.
2016-06-06 16:24:54 +02:00
3a06e02b4d We're not using httpretty any more 2016-06-06 16:22:50 +02:00
8d5683c7a2 Remove unneeded etag check on user update 2016-06-01 11:26:18 +02:00
0daaefdcc3 Retry with unique username both on PUT and POST. 2016-06-01 10:33:01 +02:00
fb020ae4b4 Added unit test for refreshing links upon fetching a file document. 2016-05-31 17:56:24 +02:00
8761dd1b91 Convert images to RGB before thumbnailing and writing as JPEG. 2016-05-31 14:44:23 +02:00
c5985a3060 Even more logging to figure out why PUT/POST to user goes wrong. 2016-05-31 14:14:33 +02:00
5276d960d6 Added some extra logging to find source of 'username not unique' errors. 2016-05-31 13:37:39 +02:00
84d297a3bd Fixed issue uploading small files. 2016-05-30 16:48:47 +02:00
e242701ed0 Try creating a new unique username a few times, before giving up. 2016-05-30 15:42:11 +02:00