619 Commits

Author SHA1 Message Date
82c89b0c97 refresh_backend_links: nicer message when aborted with Ctrl+C 2016-07-27 11:10:38 +02:00
de36f1727a refresh_links_for_backend: handle more malformed cases and exceptions 2016-07-27 11:06:02 +02:00
943697fcd2 refresh_links_for_backend: gracefully handle project-less files. 2016-07-27 10:50:40 +02:00
ece498a636 refresh_backend_links: added some CLI options. 2016-07-27 10:45:07 +02:00
a319720b8a refresh_links_for_backend: skip files with non-existing projects. 2016-07-27 10:44:45 +02:00
862fcbf147 restore-db.sh: drop existing collections before restoring. 2016-07-26 17:23:09 +02:00
2d72c96a45 Sort HDRi files by their image file size. 2016-07-26 17:22:07 +02:00
a549934060 Gracefully handle file documents without backend property. 2016-07-26 17:20:17 +02:00
83bad3d88d Don't fetch entire project just to fetch a node type.
The query can probably be made more specific by including the node type
beforehand, and only fetching that.
2016-07-26 17:20:03 +02:00
336ba7d6fe Attachments: don't always generate new links.
Instead, we now just use file_storage.ensure_valid_link(), which takes
link expiry into account.
2016-07-26 13:37:27 +02:00
3b6fa6ef27 Slight code optimisation 2016-07-26 13:36:59 +02:00
8d8f5068e1 Store GCS client on global level
Without this, every query to the GCS would have to re-establish a TCP/IP
connection and perform an OAuth handshake.
2016-07-26 12:17:38 +02:00
d261b7b64c Added restore-db.sh, which restores a MongoDB dump to the local database. 2016-07-26 12:13:50 +02:00
e2fbb41de1 Added hdri_sort(project_url) management command.
The command sorts all HDRi nodes in the given project by image width,
smallest first.
2016-07-22 17:44:59 +02:00
50652d98ea PEP8 formatting 2016-07-22 17:44:35 +02:00
1601a81291 Fixed issue when user has no roles 2016-07-22 10:38:05 +02:00
684c24cbaf Handle case where activity cannot be found. 2016-07-21 17:00:06 +02:00
03a041b96e Some logging to try and track down upload problem. 2016-07-21 15:42:39 +02:00
cd967749de Revert "Use threading when generating links & renaming files at GCS."
This reverts commit 2fc89a728de6e8b02800fcae69dd09b62a0c1293.
2016-07-21 14:22:29 +02:00
2fc89a728d Use threading when generating links & renaming files at GCS.
Once we move to Python 3.5 we should replace this with asyncio, so we have
more control over the total number of threads we spawn.
2016-07-21 14:11:53 +02:00
d46eed7a34 Add radiance-hdr mimetype 2016-07-21 11:50:53 +02:00
5c6263dd3d deploy.sh: update the virtualenv 2016-07-20 15:49:38 +02:00
7880fb6968 Added a group_hdri node type.
This node type serves the same purpose for hdri as the group_texture
serves for the texture nodes.
2016-07-20 15:22:33 +02:00
6d68753b1b Introducing support for removing indexed nodes
Nodes are deindexed if they have a 'status' property that is different
from 'published'. Nodes are deindexed also when they are deleted.
2016-07-20 15:15:13 +02:00
49bd2720fa Oops. 2016-07-20 14:25:22 +02:00
4a72b377bd Include HDRi projects in /bcloud/texture-libraries
This depends on the version of the Blender Cloud Addon, which will be sent
as Blender-Cloud-Addon HTTP header in a future version of the addon.
2016-07-20 14:12:54 +02:00
d34d129a2f Removed inclusion of revision in bugsnag.configure()
The revision should be passed to another endpoint (see deploy.sh)
2016-07-20 14:10:06 +02:00
589d916759 Introducing HDRI node_type 2016-07-19 18:20:34 +02:00
0264821189 Comment option to set CORS for GCS bucket
This is originally introduced to enable access from pillar-web
javascript to GCS buckets (via the vrview.js library). For the moment
it is commented since we do not allow HDRI node_type in all projects.
2016-07-19 18:20:34 +02:00
a248e3285c Added optional project.header_node node ID reference.
This can be used to show a video on the project page in Pillar-Web.
2016-07-19 16:09:49 +02:00
54f3ca6924 project_manage_users: Prevent internal error when the user can't be found. 2016-07-19 14:03:58 +02:00
fe148e1e6b Simplified settings by introducing _node_embedded_schema.
This follows the same style as the already-existing _file_embedded_schema.
2016-07-19 12:33:42 +02:00
3ddfbddf1a Added deploy.sh script, which performs an automated deploy on production. 2016-07-19 12:15:20 +02:00
9b3e75b9b9 Nodes: embed 'short_link' when 'short_code' is present and not empty.
This prevents calls to /nodes/<node-id>/share to get the short link.
2016-07-15 11:23:13 +02:00
2d5a538ad6 Added query string support to AbstractPillarTest.client_request() 2016-07-15 11:23:09 +02:00
b880034fda Using before_returning_node_permissions in before_returning_node_resource_permissions 2016-07-15 11:09:24 +02:00
642cbafa09 Added urler service, which can fetch the URL of any project. 2016-07-13 16:52:48 +02:00
34e3cb1e7d Management command for refreshing home project permissions. 2016-07-13 15:59:38 +02:00
a844f1ddda Home project: allow commenting on nodes.
This is only set up correctly for new home projects. Existing home projects
should be migrated using a yet-to-be-written script.
2016-07-13 15:40:41 +02:00
158c7665e4 Removed some debug logging 2016-07-13 15:34:30 +02:00
b6ef96022c Added OPTIONS call to get allowed options on node types
This allows us to check whether a user is allowed to comment on a project
without requiring access to the project itself.
2016-07-13 15:09:40 +02:00
1f4e9ec7f3 authorization: split part of has_permissions() into compute_allowed_methods()
This allows other code to re-use the effective permission computations.
2016-07-13 15:08:34 +02:00
da938da38d Bugfix and some extra debug logging 2016-07-13 15:07:40 +02:00
9cd7198005 Make shared nodes world-gettable 2016-07-13 12:28:01 +02:00
53c0eec8f1 PEP8 formatting 2016-07-13 12:27:50 +02:00
d996760017 Removed node type permissions from EXAMPLE_TEST_PROJECT
This makes the test project mimick actual projects more.
2016-07-13 12:27:42 +02:00
22d758b608 Typo in requirements.txt 2016-07-13 09:36:42 +02:00
8d4ae27c85 Merge branch 'production' 2016-07-08 14:03:07 +02:00
660a13cab6 sync_role_groups: Iterating over users, instead of user/role combos.
This fixes all roles & group memberships at once, and fixes a bug where
the script had to be re-run to apply multiple role changes on a single
user.
2016-07-08 14:01:46 +02:00
3711678fba Changed confusing log message 2016-07-08 14:01:43 +02:00