Commit Graph

30 Commits

Author SHA1 Message Date
1e1420d92b Fixed race condition in fetching task activities
Since MongoDB stores timestamps with a resolution of a millisecond, it was
possible for a task to be created and updated on the same timestamp, which
could cause an impossible ordering of the activities (edit before creation).
Sorting by ID instead of creation timestamp fixes this.
2019-05-14 14:26:27 +02:00
66212ec5fa Navigation: Unified cloud navigation
* Removed main drop down menu
* Added "My cloud" to user menu
* Attract/Flamenco is found under Production Tools menu
* Attract/Flamenco has the same navigation as its project
2019-02-07 14:45:55 +01:00
5ff0c9fde5 Use mass-attach of project pictures, and only when they are actually used 2018-01-31 14:49:38 +01:00
eb954208b2 Early reject when user is anonymous.
This cuts down on info-level log entries, and prevents some Mongo queries.
2017-09-18 14:04:52 +02:00
c7b83d2d8b Using capabilities instead of roles for access control. 2017-08-24 14:21:33 +02:00
25fcfea62f Remember last-visited Attract project in session
This allows us to keep rendering the "Shots" and "Assets" links in the
sidebar, even when someone navigates away from the project scope.
2017-06-16 12:02:39 +02:00
c69aeb03dc Hide Attract links & project settings for non-attract-users 2017-06-15 16:26:17 +02:00
50ae411575 Only users with attract-user role can use Attract
Subscribers without that role still have read-only access to Attract,
assuming they have access to the project at all.

NOTE: this only handles the web interface. API calls are still governed
by the nodes permission system, which doesn't currently allow these kinds
of role-based user checks.
2017-06-15 12:50:28 +02:00
bf9a73ff00 Fixed project property loss when setting up for Attract
This was caused by attract_project_view() not passing the full project to
the decorated function. Now you can pass full_project=True to avoid
projections at all, and get the full thing.
2017-06-15 11:07:27 +02:00
9ea75c30e3 Added project settings allowing setup + editing task types.
- Attract added to Project Settings screen
- setting up project for Attract
- editing shot/asset task types

To do: add checks that the user is allowed to use Attract in the first
place.
2017-06-15 11:07:27 +02:00
ca69b43839 Prevent global 404 on /attract when an activity can't be linked.
This happens when an activity is on a deleted item. This change implies
that "someone deleted X" activities aren't going to be shown.
2016-11-10 11:33:49 +01:00
3d6e8a0678 Redirect /project to /shots for the time being 2016-11-07 11:05:06 +01:00
17f4b749b4 Oops 2016-11-03 18:38:13 +01:00
89e9d81e64 Handle activities for deleted objects. 2016-11-03 18:35:28 +01:00
464469f496 Linking comments works 2016-11-03 12:27:28 +01:00
ab385150bf Removed unused import 2016-11-02 13:55:30 +01:00
4d5c02c196 Usable SVN activities 2016-11-02 11:06:29 +01:00
bc58b6d5ac Moved Subversion stuff to its own module, and unified push & pull approaches 2016-11-02 11:06:29 +01:00
b8d12d1a4d Start of support for pushing activities from SVN hooks. 2016-11-02 11:06:29 +01:00
e3cb4f6f59 Typo 2016-10-24 15:58:56 +02:00
04d1c9db1a Add project pictures (header) to Attract Index 2016-10-24 15:56:25 +02:00
70f756fb7d Using Pillar's subquery module. 2016-10-18 15:35:23 +02:00
76a4eac145 Route for project's help 2016-10-12 17:17:11 +02:00
363f1f6110 More detailed "verb" for task action logging. 2016-10-12 15:08:06 +02:00
32400b34e9 Start of activity stream. 2016-10-12 14:31:03 +02:00
300d31b119 Moved check is_attract_project() to AttractExtension. 2016-10-11 16:34:31 +02:00
d9a41c11b7 Added shot summary per project on /attract 2016-10-05 14:42:01 +02:00
bf35b0a9b7 Show user's task on /attract 2016-10-05 11:51:28 +02:00
fb487e8ec0 Added /attract/<project_url> page 2016-10-05 11:08:18 +02:00
cf3bc3471b Renamed modules.py to routes.py 2016-10-05 11:03:52 +02:00