Commit Graph
620 Commits
Author SHA1 Message Date
Cédric Krier 2495c0cbdd Order unsorted Selection by index definition
issue11169
review387771003
2022-02-15 00:06:57 +01:00
Cédric Krier 36d5bce9bc Avoid concurrency failure in cache with channel test
We need to ensure that the listener is running on the return of the transaction
start otherwise notification can be missed.
We must also just from time to time check that the listener is still the
current listener.
And finally we can not wait an arbitrary time for cache sync, instead we must
rely on the _clean_last being reset with the sync happens.

issue9413
review364831002
2022-02-14 23:12:00 +01:00
Nicolas Évrard 2147a5de01 Add tests on the euristic to compute the full text search configuration
issue11130
review395301002
2022-02-08 18:45:42 +01:00
Cédric Krier b20ee5bb48 Use subTest inside loop in ModuleTestCase
issue11195
review393571002
2022-02-07 00:40:56 +01:00
Cédric Krier 632deb43e5 Use dictionary as domain for Reference field
issue11074
review383911002
2022-02-03 23:05:47 +01:00
Cédric Krier 49f6350151 Use simplified parser for get_eval_fields
Instead of using the PYSONEncoder we can just iterate over the basic JSON types
and use the pyson method to retrieve nested PYSON instances.

issue11164
review376551002
2022-01-30 13:10:57 +01:00
Cédric Krier 5f34224215 Include model, field and column in import data error message
issue11132
review381701002
2022-01-30 12:58:51 +01:00
Cédric Krier 19ad886d45 Add limit to search count
issue10967
review389301002
2022-01-30 01:42:23 +01:00
Cédric Krier af64c1e2d7 Remove password entropy test
issue11100
2022-01-23 22:06:21 +01:00
Cédric Krier 2563aed9b0 Check read access on parent field of child/parent operators
The 4th element of the clause is the parent field for the child_of/parent_of
operators, so it must be used to check access as related field.
Also we must remove the 4th element when checking related domain.

issue11115
review391371002
2022-01-11 23:07:45 +01:00
Cédric Krier 1f42642bc3 Use first the dotted name variable in the PYSON context
issue11109
review383991002
2022-01-11 23:03:06 +01:00
Cédric Krier f9569e7018 Add ip_address and device_cookie login method options
issue10987
review360491008
2021-12-29 12:39:51 +01:00
Cédric Krier a0bfbfa255 Follow isort formatting
issue10928
2021-12-11 17:58:45 +01:00
Cédric Krier d608167f04 Create record by XML for test with readonly transaction
issue10936
2021-11-28 14:31:45 +01:00
Cédric Krier 7d879abef6 Use same context as clients to evaluate PYSON
issue10963
review372581002
2021-11-28 13:45:54 +01:00
Cédric Krier e02c830159 Fill local cache of Function field instances with values
issue10936
review377511003
2021-11-28 13:40:30 +01:00
Cédric Krier a00d26dd3c Cache Function field getter without context in readonly transactions
issue10936
review367781002
2021-11-28 13:27:52 +01:00
Cédric Krier a4a2ad0c9d Patch user login method instead of assign Mock object
Patch restores the original attribute on exit.
2021-11-27 01:51:37 +01:00
Cédric Krier a1a2e6eb70 Use JSONB to store Dict field on PostgreSQL backend
issue10858
review379371002
2021-11-08 19:27:03 +01:00
Cédric Krier a97e769ad3 Evaluate invalid domain if there are many fields
We must find the field that is invalid instead of using the first one with a
domain constraint.

issue10418
review360371002
2021-10-30 02:20:23 +02:00
Cédric Krier 878e8747df Prevent assign SQL value to record instances
issue10413
review379441002
2021-10-28 09:00:33 +02:00
Cédric Krier 9165f5d177 Move test of tools under tools test case 2021-10-26 00:22:23 +02:00
Cédric Krier 8bbecaa817 Allow to cast as date using timezone
issue10860
review372321002
2021-10-21 00:11:57 +02:00
Sergi Almacellas Abellana b6678dfe19 Skip default values when copying records
This allows users with no write access to a field to copy records if their
values have not been modified.

issue10536
review336541002
2021-10-11 15:14:57 +02:00
Nicolas Évrard 870981c561 Pass default class order to __search_query
issue10838
review383251002
2021-10-11 11:38:37 +02:00
Nicolas Évrard 6d2066ba45 Use specific model for OR2UNION tests
issue10832
review362881002
2021-10-07 17:46:14 +02:00
Nicolas Évrard 2f4c0eb0a5 Include order columns in UNION-ed search queries
issue10790
review365991002
2021-10-06 17:20:40 +02:00
Maxime Richez db5cf4f3a8 Add methods to format number and symbol on Lang
and add format number with symbol on Report

issue10730
review371831002
2021-10-04 18:52:01 +02:00
Cédric Krier d50fc36f22 Allow locking tables by calling ModelSQL.lock without records
issue10785
review359051002
2021-10-03 13:50:33 +02:00
Cédric Krier 5e5c36b459 Add test on domain of relation fields
issue10794
review383081002
2021-10-03 13:45:32 +02:00
Cédric Krier 66a0dcf2b5 Add stored path as alternative to MPTT
issue7177
review352501002
2021-10-03 01:14:08 +02:00
Cédric Krier 30572116ed Test foreign key on delete and inactive
issue10782
review367581002
2021-10-03 00:32:10 +02:00
Nicolas Évrard 72e3bb74c7 Reconstruct local domain after split_subquery_domain
issue10761
review338921002
2021-09-28 16:44:12 +02:00
Nicolas Évrard 814f0055be Move tests related to OR-ed domain to ModelSQL test case 2021-09-28 10:59:56 +02:00
Cédric Krier 0e41c6940a Factorize the instantiation of LRUDict and LRUDictTransaction
We use default_factory to avoid create unnecessary instances. The
default_factory_with_key argument is added to LRUDict to pass the missing key
to the default_factory method. And we use an LRUDict also for the
Transaction.cache.

issue10726
review362531002
2021-09-26 22:55:52 +02:00
Cédric Krier 4840a0f46d Ensure that objects in the Pool has __slots__
issue10719
review375361002
2021-09-23 23:12:35 +02:00
Cédric Krier 9ae04f3e68 Use bigdecimal tag for XML-RPC
issue10734
review355491002
2021-09-23 10:22:01 +02:00
Cédric Krier 11aecd394a Add protocols test for timedelta and factorize them
issue10733
review371841002
2021-09-23 10:19:03 +02:00
Cédric Krier c345b0c693 Use tuple in Dict value instead of list
issue10715
review371771002
2021-09-23 10:15:16 +02:00
Cédric Krier 9f8b847c15 Use immutable dictionary for Transaction context
issue10691
review358741002
2021-09-19 00:30:35 +02:00
Cédric Krier c4c3540201 Use biginteger for integer overflowing XML-RPC integer dumper
issue10732
review363891002
2021-09-19 00:04:57 +02:00
Nicolas Évrard d3a5e680a8 Use UNION for 'Or'-ed domain with subqueries
issue10658
review365781002
2021-09-15 15:16:40 +02:00
Cédric Krier 154d8e4a23 Add remove_forbidden_chars in tools
issue10684
review371581002
2021-09-13 23:43:03 +02:00
Cédric Krier 216a7a9f50 Set search_similarity when testing search by similarity
issue10710
2021-09-10 19:54:44 +02:00
Cédric Krier a63de7ab07 Do not read deleted record as extra record
When a record from a browse list has been deleted, we must not try to read it
if other records are accessed.

issue10652
review346731080
2021-08-27 09:01:34 +02:00
Cédric Krier fb9238b8bf Add digits mixin
issue10596
review338511002
2021-08-21 09:05:34 +02:00
Cédric Krier 1dcedc1c98 Clear transaction cache in test_read_last_translation
issue10630
2021-08-18 13:07:55 +02:00
Cédric Krier 0cca1c8d57 Use subquery when searching for similarity on translated Char
issue10624
review363621002
2021-08-12 18:38:15 +02:00
Cédric Krier 5327972941 Make ImmutableDict dumpable by protocols
issue10599
review349001002
2021-07-22 19:06:15 +02:00
Maxime Richez f5f1328c12 Allow PYSON Expression as key for PYSON In with dict object
issue10542
2021-07-11 11:25:30 +02:00