Cédric Krier
b595b68b79
Support getting many sequences at once
...
Closes #13474
2024-08-25 11:02:42 +02:00
Cédric Krier
546247b635
Add sequence_nextval function to Database
2024-08-24 15:44:06 +02:00
Cédric Krier
5dc10a92e1
Do not update multivalue record if the value is not modified
...
When a ValueMixin is used for many MultiValue fields, they are created with
default values when the first MultiValue is set.
But often the other MultiValue fields are set with the default value so by not
forcing the change, we avoid a unnecessary UPDATE query.
2024-09-22 12:42:42 +02:00
Cédric Krier
445df1ccc5
Cache all the records of ValueMixin without a Many2One
...
Closes #6984
2024-08-23 17:31:02 +02:00
Cédric Krier
88ed73598b
Add __slots__ to ValueMixin
2024-08-23 17:29:52 +02:00
Cédric Krier
8c7034ed1a
Display cache name on unique instance assertion
2024-08-23 17:28:43 +02:00
Cédric Krier
d8e6b42c58
Save generated avatar in a single call
...
Instead of saving the avatar on each record which result in an UPDATE query
for each record, grouping the saving of the avatars allows to INSERT multiple
row at once.
Closes #13472
2024-08-23 15:25:16 +02:00
Cédric Krier
07e582e395
Test more attributes in test_view
...
Closes #13462
2024-09-11 17:51:49 +02:00
Cédric Krier
8b8e54df23
Enforce randomness on unspecified value of scheduled task
...
Closes #13484
2024-08-30 17:52:43 +02:00
Cédric Krier
b3794e1151
Fix documentation about Views menu
2024-09-18 09:44:20 +02:00
Cédric Krier
90f6084c87
Replace menu entries for view configuration by relate on model in the documentation
...
#12995
2024-09-18 09:43:59 +02:00
Cédric Krier
3651b9d7d4
Replace menu entries for view configuration by relate on model
...
#12995
2024-08-27 13:14:18 +02:00
Cédric Krier
b5f2946b0a
Add foreign keys for model to view search
2024-08-27 11:07:36 +02:00
Cédric Krier
2d12c5ce74
Add foreign keys for model and field to view tree state
2024-08-27 10:57:26 +02:00
Cédric Krier
a4a97c9369
Rename view id from view tree optional into view
2024-08-27 10:47:25 +02:00
Cédric Krier
5aa6ae9118
Add model and foreign keys to view tree optional
2024-08-27 10:40:49 +02:00
Cédric Krier
c384f8e658
Add cache to get_groups of actions
2024-09-12 16:55:53 +02:00
Cédric Krier
098458daa8
Move all access checks of report to check_access method
2024-09-12 16:45:34 +02:00
Cédric Krier
754a868bdf
Test execute report without model access
2024-09-12 16:36:42 +02:00
Cédric Krier
bb8b4cb235
Test execute wizard without access
2024-09-12 16:36:22 +02:00
Cédric Krier
e4bd186091
Test create session for wizard without access
2024-09-12 16:36:04 +02:00
Cédric Krier
c59503910a
Use proper placeholder to format message about wizard access error
...
Closes #13507
2024-09-12 16:34:58 +02:00
Cédric Krier
2bce5d7240
Retrieve groups of actions without checking access
...
Closes #13506
2024-09-12 16:33:03 +02:00
Cédric Krier
a75f6b3f9c
Test access to report execute
2024-09-12 16:10:29 +02:00
Cédric Krier
b32cbb18a9
Check read access of report records
...
Closes #13505
2024-09-12 16:09:39 +02:00
Cédric Krier
3b139f4cb5
Remove unnecessary parenthesis in cron documentation
...
Closes #13502
2024-09-12 08:36:06 +02:00
Cédric Krier
8f96e4af72
Unify email terminology
...
Closes #13463
2024-08-22 09:52:06 +02:00
Cédric Krier
f0b313bfb5
Forbid editing cron when it is running
...
Closes #13447
2024-08-09 16:21:18 +02:00
Cédric Krier
b14bcea3c1
Store last cron durations
...
Closes #13445
2024-08-09 10:40:18 +02:00
Cédric Krier
a4eb342cd7
Retry to get a connection when an OperationalError is raised
...
If there are no connection available in the pool, psycopg2 tries to create a
new connection but it may raise an OperationalError if the server close it.
Closes #13475
2024-08-26 09:33:58 +02:00
Nicolas Évrard
428825ac6a
Use JSONB to store MultiSelection field by default
...
Closes #11513
2024-09-02 11:25:49 +02:00
Nicolas Évrard
1fbcf70283
Apply the function field searcher transformation before doing any optimization
...
This allows to use the OR-to-UNION optimization if the searcher returns only
local columns.
2024-06-27 19:15:07 +02:00
Nicolas Évrard
02f054bd26
Check the return type of Function fields searchers
2024-06-28 15:38:46 +02:00
Nicolas Évrard
6512d36bd1
Rely on the tables dict to choose when to apply the OR-to-UNION optimization
...
The dict changes in size if non-local columns are used to order the search
results.
Closes #13346
2024-06-13 18:57:14 +02:00
Nicolas Évrard
a11522ffd6
Externalize the method to apply sorting on order tuples
2024-06-27 18:09:07 +02:00
Nicolas Évrard
53bb613564
Implement __deepcopy__ on ImmutableDict
...
Closes #13408
2024-07-19 19:04:01 +02:00
Cédric Krier
a2dfc4455b
Refine index definition
...
- Set low and high cardinality to index usage
- Use Range usage for numerical expression instead of Equality
2024-07-27 18:36:14 +02:00
Cédric Krier
234daa0f99
Add cardinality option to Index Usage
...
Closes #13426
2024-07-27 17:49:13 +02:00
Cédric Krier
084cd424ce
Use more accurate threshold between update or rebuild of MPTT
...
Closes #13422
2024-07-27 11:55:20 +02:00
Cédric Krier
01574e6700
Add searcher to summary fields
...
Closes #13401
2024-07-18 10:12:04 +02:00
Cédric Krier
e84fec0f84
Close connection when listing or testing PostgreSQL databases
...
Closes #13441
2024-08-07 17:49:10 +02:00
Cédric Krier
17476c5844
Return definition translations from the underlying field of Function field
...
Closes #13356
2024-06-21 18:49:51 +02:00
Cédric Krier and David Harper
67bfcde06f
Update documentation of infrastructure
...
Co-authored-by: David Harper <dave@libateq.org >
2024-08-07 23:24:57 +02:00
Cédric Krier
a080a11b3e
Allow configuring TinyMCE license key
2024-06-25 09:37:31 +02:00
Cédric Krier
629c864ff0
Use max_content_length of werkzeug Request
...
Werkzeug provides a way to restrict request content size which does not rely
on Content-Length header.
2024-05-05 00:18:23 +02:00
Cédric Krier
9f4885629a
Do not hide HTTP Exception in RPC protocols
2024-05-05 00:06:09 +02:00
Cédric Krier
127c93caaa
Select only id from query of ModelSQL.search
...
Closes #13421
2024-07-26 23:00:05 +02:00
Cédric Krier
f5d32c78b6
Do not update indexes if not explicitly requested or modules are not updated
...
Closes #13400
2024-07-22 18:22:29 +02:00
Cédric Krier
df1fdfaf0d
Do not store empty list for MultiSelection key of Dict
...
Closes #13376
2024-06-30 01:55:55 +02:00
Cédric Krier
6e2c910539
Fix typo in numeric field comments
2024-07-13 15:35:33 +02:00