OCA-git-bot
5319d1bee2
[BOT] post-merge updates
2025-02-05 17:37:53 +00:00
Lars Liedtke
eba426485f
[PATCH] [FIX] session_db: Fix creation of postgres_uri in tests
...
with the parameter "login" in `_make_postgres_uri()` it becomes impossible to log in with the configured database, as it has to have the name "user". This is because of passing the `connection_info` dict as keywords parameter into the function. But because `connection_info_for` called in `setUp()` reads the config file of odoo and there the database user is `db_user` the keyword parameter is discarded and `login` is not set. The `db_`-prefix is removed. So user and password are not applied to the uri/dsn and thus login to the database is not possible, if the database wants those parameters.
When I applied this change in our internal CI of solute.de, everything worked fine afterwards.
This has to be ported to 17.0 and 18.0 as well.
2025-02-04 14:35:05 +01:00
mymage
3a1358b5ef
Added translation using Weblate (Italian)
2024-10-04 06:25:34 +00:00
OCA-git-bot
5d11b9b479
[BOT] post-merge updates
2024-09-17 14:10:21 +00:00
oca-ci
633b320e91
[UPD] Update session_db.pot
2024-09-17 14:06:06 +00:00
Stéphane Bidoul
93ab4d8b8c
[IMP] session_db: remove roadmap
...
It has been implemented.
2024-09-17 15:51:09 +02:00
Stéphane Bidoul
53586c9bfc
[MIG] session_db: from 16.0 to 17.0
2024-09-17 15:51:09 +02:00
Stéphane Bidoul
eeda2313bc
[IMP] session_db: pre-commit auto fixes
2024-09-17 15:51:09 +02:00
OCA-git-bot
c9a8c69417
[UPD] README.rst
2024-09-17 15:51:09 +02:00
OCA-git-bot
8e08a55c3f
session_db 16.0.1.0.5
2024-09-17 15:51:09 +02:00
Christoph Fiehe
bc2a3830e2
Fixes the issue "PGSessionStore.vacuum() got an unexpected keyword argument 'max_lifetime'" when autovacuum gets executed.
...
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de>
2024-09-17 15:51:09 +02:00
OCA-git-bot
52b397383c
session_db 16.0.1.0.4
2024-09-17 15:51:09 +02:00
Stéphane Bidoul
0349038998
session_db: fix tests for v16 compatibility
2024-09-17 15:51:09 +02:00
Stéphane Bidoul
41264b9b6f
session_db: refactor retry handling
2024-09-17 15:51:09 +02:00
Stéphane Bidoul
87ba744c9f
session_db: add a few tests
2024-09-17 15:51:09 +02:00
Stéphane Bidoul
6c241ead8b
session_db: reconnect if needed
...
If the connection to the database fails when
retrying a session operation, we end up
with no cursore, which makes subsequent
session operations fail.
We fix this by ensuring we have cursor
before any operations.
2024-09-17 15:51:09 +02:00
OCA-git-bot
c7af2bd6df
session_db 16.0.1.0.3
2024-09-17 15:51:09 +02:00
Stéphane Bidoul
69868a84eb
session_db: improve cursor release
2024-09-17 15:51:09 +02:00
Stéphane Bidoul
71352e0496
session_db: cosmetics
2024-09-17 15:51:09 +02:00
Stéphane Bidoul
182d44f26c
session_db: gevent and thread support
...
There were concurrency issues in evented mode.
So while I was at it, I added support for threaded mode too.
2024-09-17 15:51:09 +02:00
OCA-git-bot
894613b612
session_db 16.0.1.0.2
2024-09-17 15:51:09 +02:00
Stéphane Bidoul
d49c69102f
session_db: improve resiliency to database errors
...
Retry on OperationalError exception, which we receive on database restart.
Return cursor to pool when reconnecting.
2024-09-17 15:51:09 +02:00
OCA-git-bot
35b8dbe8c3
session_db 16.0.1.0.1
2024-09-17 15:51:09 +02:00
OCA-git-bot
c898568219
[ADD] icon.png
2024-09-17 15:51:09 +02:00
OCA-git-bot
74fba614bc
[UPD] README.rst
2024-09-17 15:51:09 +02:00
oca-ci
3a754051f7
[UPD] Update session_db.pot
2024-09-17 15:51:09 +02:00
Stéphane Bidoul
5486d86dc6
session_db: explain why such as module is useful
2024-09-17 15:51:09 +02:00
Stéphane Bidoul
249f4888a5
session_db: declare maintainer
2024-09-17 15:51:09 +02:00
Stéphane Bidoul
5109801f80
session_db: do not update write_date on get
...
The upstream FilesystemSessionStore does not do that.
2024-09-17 15:51:09 +02:00
Stéphane Bidoul
87be2eca29
session_db: use SESSION_LIFETIME constant
2024-09-17 15:51:09 +02:00
Stéphane Bidoul
c53859a3c3
[MIG] session_db to 16.0
2024-09-17 15:51:09 +02:00
Nicolas Seinlet
4a8dea0cf0
session_db : store sessions in a database rather than in filestore
2024-09-17 15:51:09 +02:00