hobo/hobo
Benjamin Dauvergne 842f699e8a
gitea-wip/hobo/pipeline/pr-main This commit looks good Details
django32: change the way Thread are made tenant aware (#67760)
Django 3.2. changed the implementation of django.db.ConnectionHandler it
now uses asgiref.local.Local as a thread/asyncio-task local dictionnary
instead of threading.local. This new implementation use
threading.current_thread() to get a reference to the current thread
instead of threading._get_ident(), but inside __bootstrap_inner, the
_active dictionnary is not initialized and current_thread() returns a
dummy value instead of the current thread.

To work around this behaviour I made __bootstrap_inner wrap the run
method with the code needed to setup the tenant, so that it's run after
__boostrap_inner initialization of the current thread in the _active
dictionnary.
2023-01-30 14:54:37 +01:00
..
agent misc: fix warning about deprecated connection.get_tenant() (#73294) 2023-01-12 12:04:49 +01:00
applications applications: skip unknown services (#73583) 2023-01-19 19:37:25 +01:00
contrib general: remove ozwillo extension (#53229) 2021-04-24 10:29:44 +02:00
debug misc: apply django-upgrade (#69798) 2022-10-03 14:25:01 +02:00
deploy trivial: apply black 2021-05-14 18:40:09 +02:00
emails misc: apply django-upgrade (#69798) 2022-10-03 14:25:01 +02:00
environment django32: do not instanciate ServiceBase abstract model (#67760) 2023-01-30 14:53:15 +01:00
locale/fr/LC_MESSAGES translation update 2022-12-02 14:00:35 +01:00
maintenance misc: apply django-upgrade (#69798) 2022-10-03 14:25:01 +02:00
matomo misc: apply django-upgrade (#69798) 2022-10-03 14:25:01 +02:00
middleware middleware: allow CIDR blocks in maintenance passthrough IPs (#71555) 2022-11-28 09:16:14 +01:00
multitenant django32: change the way Thread are made tenant aware (#67760) 2023-01-30 14:54:37 +01:00
profile profile: add support for language attribute (#71283) 2022-11-14 15:40:11 +01:00
provisionning hobo: store extra user attrs during provisionning (#38703) 2023-01-04 08:26:26 +01:00
scrutiny misc: remove usage of django.utils.six (#63684) 2022-04-15 18:28:51 +02:00
seo misc: apply django-upgrade (#69798) 2022-10-03 14:25:01 +02:00
sms misc: apply django-upgrade (#69798) 2022-10-03 14:25:01 +02:00
static applications: add background gear image to editable apps (#70989) 2022-11-28 19:46:46 +01:00
templates home: remove franceconnect menu entry (#71958) 2022-12-02 10:25:29 +01:00
templatetags templatetags: introduce |has_role_uuid (#64495) 2022-08-12 09:16:45 +02:00
theme misc: apply django-upgrade (#69798) 2022-10-03 14:25:01 +02:00
__init__.py setup.py: get_version from git only (#6864) 2015-03-31 15:09:49 +02:00
context_processors.py context processors: return mini-template if there's no skeleton url (#73796) 2023-01-27 08:25:40 +01:00
forms.py misc: apply pyupgrade (#69708) 2022-09-29 15:23:49 +02:00
journal.py misc: apply pyupgrade (#69708) 2022-09-29 15:23:49 +02:00
logger.py misc: apply pyupgrade (#69708) 2022-09-29 15:23:49 +02:00
requests_wrapper.py rest_authentication: add a requests wrapper (#67085) 2022-08-22 14:22:02 +02:00
rest_authentication.py rest_authentication: add flag to differentiate anonymous service users (#70933) 2022-11-14 18:05:23 +01:00
settings.py hobo: add setting to disable/enable a type of service (#72335) 2022-12-15 15:57:20 +01:00
signature.py misc: remove usage of django.utils.six (#63684) 2022-04-15 18:28:51 +02:00
test_urls.py misc: apply django-upgrade (#69798) 2022-10-03 14:25:01 +02:00
test_utils.py misc: improve get_safe_db_name (#72643) 2023-01-16 15:07:56 +01:00
urls.py home: remove franceconnect menu entry (#71958) 2022-12-02 10:25:29 +01:00
urls_utils.py misc: apply pyupgrade (#69708) 2022-09-29 15:23:49 +02:00
utils.py mellon: define SLUG=idp (#57018) 2021-09-17 10:14:25 +02:00
views.py misc: apply pyupgrade (#69708) 2022-09-29 15:23:49 +02:00
wsgi.py trivial: apply black 2021-05-14 18:40:09 +02:00