Sybren A. Stüvel
90883eddb9
xhrErrorResponseMessage: nice message when unable to connect
2018-01-05 15:23:43 +01:00
Sybren A. Stüvel
d240a979ba
scrollToLinkedComment: Check for valid ObjectID before passing to jQuery
2018-01-05 15:08:00 +01:00
Sybren A. Stüvel
8f6966978f
Elastic: more progress logging when reindexing users
2018-01-05 14:42:10 +01:00
Sybren A. Stüvel
7f33826d1d
prepare_user_data: Always return a dict
2018-01-05 14:41:59 +01:00
Sybren A. Stüvel
b09e4463bd
Elastic: don't regenerate picture links
...
Thumbnail links shouldn't expire anyway.
2018-01-05 14:27:46 +01:00
Sybren A. Stüvel
1bfda7769a
Elastic reindexing: more verbose logging at info level.
...
Including some progress report every 100 nodes.
2018-01-05 14:22:38 +01:00
Sybren A. Stüvel
bbdb731043
Slightly nicer return value & dict creation.
2018-01-05 14:22:38 +01:00
Sybren A. Stüvel
4381ed6671
Elastic: handle pictures without variations or project ID
...
This happens on old file documents.
2018-01-05 14:22:38 +01:00
Sybren A. Stüvel
2ca960a73f
Hard-code 'elastic:9200' as ElasticSearch host
2018-01-05 13:10:39 +00:00
Stephan preeker
2433a1b981
minor documentation / annotation fixes
2018-01-05 11:58:33 +01:00
Stephan preeker
2ed2aaf58f
merge
2018-01-05 10:58:32 +01:00
Stephan preeker
24d38fe52e
Merge branch 'master' of git.blender.org:pillar into elastic
2018-01-05 10:56:46 +01:00
Stephan preeker
de8c6a8b63
improve elastic server settings
2018-01-05 10:56:41 +01:00
Sybren A. Stüvel
96428d3c73
Elastic: use different indices when running unit tests.
2018-01-03 18:34:55 +01:00
Sybren A. Stüvel
520f327f5a
Default ELASTIC_SEARCH_HOSTS to the host/docker name we use in production
...
Also removed some comments that didn't add any new information.
2018-01-03 18:34:33 +01:00
Sybren A. Stüvel
f1b3409052
Merge branch 'master' into elastic
2018-01-03 17:42:01 +01:00
Sybren A. Stüvel
91660fefe4
Lowering log level to DEBUG for internal SDK call exceptions.
...
The exception is re-raised anyway, so it may be handled by the caller in
a way that doesn't warrant a warning/error at all.
2018-01-03 14:39:02 +01:00
Sybren A. Stüvel
fdb9970792
Prevent crash when session['blender_id_oauth_token'] doesn't exist
2018-01-03 12:19:03 +01:00
Sybren A. Stüvel
1c6599fc30
More detailed logging in fetch_blenderid_user
2018-01-03 12:18:43 +01:00
Sybren A. Stüvel
a938342611
Reduced log level when checking user without email for org membership
...
Service accounts may not have an email address, which is fine for now.
2018-01-03 12:08:06 +01:00
Sybren A. Stüvel
656a878c6a
Include stack trace when looking an SDK exception.
...
Possibly the exception shouldn't be logged at all (or just at debug level),
since it's also re-raised and should be handled by the caller instead.
2018-01-03 11:44:49 +01:00
Sybren A. Stüvel
ef2cc44ceb
Reduce log level when user lacks required roles/caps
...
This prevents logging those at Sentry.
2018-01-03 11:12:17 +01:00
Sybren A. Stüvel
c7ba775048
Removed some traces of Bugsnag
2018-01-03 11:10:01 +01:00
Stephan preeker
85d6f76000
better error reporting
2017-12-29 17:08:34 +01:00
Stephan preeker
ebe524ded3
make javascript more secure..
2017-12-29 16:47:29 +01:00
Stephan preeker
f4625cfe06
remove dead code
2017-12-29 15:11:47 +01:00
Stephan preeker
99131374cd
javascript debugging
2017-12-29 14:52:39 +01:00
Stephan preeker
04684c5f65
remove algolia from css and vendor stuff
2017-12-29 14:19:22 +01:00
Stephan preeker
d726e15ed8
Merge branch 'master' of git.blender.org:pillar into elastic
2017-12-29 12:19:47 +01:00
Sybren A. Stüvel
d73146ff62
Formatting
2017-12-22 16:27:16 +01:00
Sybren A. Stüvel
8f73dab36e
Allow project undeletion, fixes T51244
...
Projects can be undeleted within a month of deletion.
2017-12-22 16:27:05 +01:00
Sybren A. Stüvel
46612a9f68
JavaScript function for getting reasonable error message from an XHR response
2017-12-22 16:25:39 +01:00
Sybren A. Stüvel
766e766f50
Declare some parameter types
2017-12-22 16:25:12 +01:00
Sybren A. Stüvel
f47a45f9a3
Removed unused code
2017-12-22 14:42:24 +01:00
Sybren A. Stüvel
8fb22931f5
Remove unused imports
2017-12-22 14:42:18 +01:00
Sybren A. Stüvel
8f9d21cdd8
Fixed bug in parsing jstree
...
A projection was missing, causing warnings that the node doesn't have a
content type.
2017-12-22 12:29:51 +01:00
Sybren A. Stüvel
054eced7de
Added SMTP Auth support
2017-12-22 10:59:15 +01:00
Sybren A. Stüvel
8ca6b4cdb0
Added Celery task for queued email sending.
...
Upon IOError or OSError (which includes SMTP protocol errors) the mail
sending task is retried after MAIL_RETRY seconds. It is retried three
times (default setting of Celery) only.
2017-12-21 13:17:57 +01:00
Sybren A. Stüvel
01f81ce4d5
Send a Blinker signal when someone's subscription status changes
...
This is very close to the 'roles changed' signal, with the difference that
it is sent only once for multiple role changes.
2017-12-21 12:59:32 +01:00
Sybren A. Stüvel
ef1609efc2
Added abs_url() Jinja function for proper absolute URLs
...
abs_url(x) is a shortcut for url_for(x, _external=True,
_schema=app.config['SCHEMA']), and should be used for all URLs that should
include the hostname and schema.
2017-12-21 12:58:06 +01:00
Sybren A. Stüvel
b7bf29c06e
Added user_is_unknown_member() to OrgManager
2017-12-20 14:57:55 +01:00
Sybren A. Stüvel
dab8fbae6d
create_new_user_document: allow passing the full name
2017-12-20 13:34:27 +01:00
Sybren A. Stüvel
c545053b85
Declare return type
2017-12-20 13:34:17 +01:00
Sybren A. Stüvel
05ad824dcb
Allow UserClass instantiation without database ID
...
This allows us to inspect the capabilities that would be given to a user,
without actually creating the user in the database first.
2017-12-20 13:34:11 +01:00
Sybren A. Stüvel
92fe39ddac
Prevent shadowing of name from outer scope
2017-12-19 10:45:34 +01:00
Stephan preeker
10732f9a10
wip D2950
2017-12-15 17:57:47 +01:00
Stephan preeker
7c6425ff4d
wip D2950
2017-12-15 17:33:06 +01:00
Sybren A. Stüvel
e0604fc217
Reduce log level for something that's fine
...
Missing emails can happen when creating a service account, we shouldn't
log a warning for this.
2017-12-15 11:23:16 +01:00
Francesco Siddi
a7693aa78d
Switch from macros to blocks for navigation menus
...
This affects the user and notifications menus. It happens for two reasons:
- the only argument passed to the macros was current_user, which is always available
- we want to enable overriding and adding items to the menus via extensions
At the moment only the user menu takes advantage of the base template, since the blender-cloud extension makes use of it, while notifications.pug does not need it yet.
2017-12-13 11:08:33 +01:00
Francesco Siddi
20ca3f8ee4
Rename blender_id url to blender-id
...
This fixes a non-compliant to RFC 1178 exception raised by the Django implementation of Blender ID. The issue is debated here https://code.djangoproject.com/ticket/20264 .
2017-12-12 18:49:52 +01:00