Anna Sirota
6b835e74f1
Handle date_deletion_requested in user-modified webhook D10139
2021-01-20 10:43:11 +01:00
Sybren A. Stüvel
577bf8b964
MongoDB: fixed deprecation warnings
...
- collection.count() → either counting the result or using count_documents()
- collection.update() → replaced by update_one()
2019-05-29 16:40:51 +02:00
Sybren A. Stüvel
049d71dc77
UnitTest.assertEquals → assertEqual
2019-05-29 16:40:51 +02:00
Sybren A. Stüvel
c9bbf26a71
Moved to Poetry
2019-05-14 10:36:15 +02:00
Sybren A. Stüvel
d813935f43
Fixed unittest
...
Broke in 468fc85751
2019-04-26 12:53:26 +02:00
Tobias Johansson
f2207bc4d4
Asset list item: Don't show user.full_name in latest and random assets
2018-10-04 12:30:05 +02:00
Tobias Johansson
a9848c3fad
Random asset bug fix: If 2 assets from the same project where returned, the second one would get a corrupt url
2018-10-04 10:11:38 +02:00
Tobias Johansson
c81711de53
Video Duration: The duration of a video is now shown on thumbnails and bellow the video player
...
Asset nodes now have a new field called "properties.duration_seconds". This holds a copy of the duration stored on the referenced video file and stays in sync using eve hooks.
To migrate existing duration times from files to nodes you need to run the following:
./manage.py maintenance reconcile_node_video_duration -ag
There are 2 more maintenance commands to be used to determine if there are any missing durations in either files or nodes:
find_video_files_without_duration
find_video_nodes_without_duration
FFProbe is now used to detect what duration a video file has.
Reviewed by Sybren.
2018-10-03 18:30:40 +02:00
Sybren A. Stüvel
c2518e9ae1
Send welcome email to new Cloud subscribers
2017-12-21 15:26:23 +01:00
Sybren A. Stüvel
0b34c5c1c6
Also create user when member of organisation
2017-12-20 14:22:26 +01:00
Sybren A. Stüvel
fd68f3fc8b
Allow user creation from Blender ID webhook "user modified"
...
When the webhook indicates that the user has a Cloud subscription (demo,
active, or renewable), the user is immediately created.
2017-12-20 12:56:48 +01:00
Sybren A. Stüvel
a2c24375e5
Webhooks: smarter way to find the user the webhook applies to.
...
We now also match on Blender ID (through the 'auth' section of the user
document), so that even when we have missed an email change we can still
apply the changes from the webhook.
2017-12-20 12:22:51 +01:00
Sybren A. Stüvel
16e378b7ad
Removed unit test for unknown emails
...
This behaviour is going to change, and by splitting that change up into
two commits the diff makes much more sense.
2017-12-20 11:43:07 +01:00
Sybren A. Stüvel
be4b36a661
Also accept user-modified webhook when old email address is unknown.
...
When the old email address is unknown, and the new one does map to a user,
use the webhook to update the new user.
2017-12-20 11:40:56 +01:00
Sybren A. Stüvel
3712ad6ddc
Added test for store.py
2017-12-19 11:09:45 +01:00
Sybren A. Stüvel
f948969b20
Fixed webhook so that users' full_name isn't reset to the empty string.
2017-12-08 14:04:11 +01:00
Sybren A. Stüvel
c031c1e8ae
Removed flamenco-user and attract-user role linking to subscriber/demo/admin
...
It was a hack due to the lack of a capabilities system.
2017-12-07 17:09:06 +01:00
Sybren A. Stüvel
f7ce8d74a7
Implemented Blender ID webhook for user change notifications
...
Handles changes in:
- roles
- full name
- email address
2017-12-01 19:06:16 +01:00
Sybren A. Stüvel
f4ac9635a9
Fixed two mistakes in stats query count_nodes()
...
- 'p.x' → 'project.x'
- is_private: {$ne: true} → is_private: False, because true is the default.
2017-09-12 11:29:36 +02:00
Sybren A. Stüvel
2e4ed6f3c8
Also allow demo users access to Flamenco & Attract
2017-08-15 15:25:53 +02:00
Sybren A. Stüvel
0a9f0ebddb
Roles '{flamenco,attract}-user' are now linked to 'subscriber'
...
All users who get 'subscriber' role automatically get 'flamenco-user' and
'attract-user', and when 'subscriber' is revoked, so are
'{flamenco,attract}-user'.
2017-07-11 12:40:13 +02:00