Commit Graph
22 Commits
Author SHA1 Message Date
Nicolas Évrard 92c2669764 Parse equality to a date as two clauses when handling datetime fields
Closes #14778
(grafted from 6952308a8b6b65ff583a2b04d9cd558b44c4e4a9)

--HG--
branch : 7.0
2026-04-14 18:29:42 +02:00
Cédric Krier e62e7d92c5 Fix domain parser for Reference field when there is no value but a target
Closes #14413
(grafted from 332b8107a181f3c14e0e3c39eed393bab0cc619b)

--HG--
branch : 7.0
2025-12-14 20:18:25 +01:00
Cédric Krier f1274d80bd Accept object has type for Greater statements
If the PYSON statement has the type 'object', it can be a Date, DateTime or
TimeDelta which is allowed for comparison.

Closes #13645
(grafted from df6e3c10a5105e545e1aa8e58c3c087285146a58)

--HG--
branch : 7.0
2024-11-04 13:09:34 +01:00
Cédric Krier e8f99b2cbb Quote empty string when formatting list value of domain
This is needed to keep the empty string in the list on a second parsing.

Closes #13558
(grafted from 747825bc93a35fef995094be5ca9d7e04c414692)

--HG--
branch : 7.0
2024-10-02 17:06:58 +02:00
Cédric Krier 91b274123a Use equality operators when stringify in domain clause with singleton
Closes #13557
(grafted from 075696a648468748ed3d9bba7d1bba7553ab21cc)

--HG--
branch : 7.0
2024-10-02 17:02:55 +02:00
Cédric Krier ae32cd004d Consider as stringable domain with empty clause
Closes #13414
(grafted from 49a55291512a957e496455f6474a9776e8c2c31c)

--HG--
branch : 7.0
2024-08-07 16:34:09 +02:00
Nicolas Évrard 87b1e66f67 Use PYSON's Bool evaluation for PYSON's Not evaluation
Closes #13096
(grafted from 009133813b11f264b5e038dc9c5912dc9e0101cb)

--HG--
branch : 7.0
2024-03-11 16:35:39 +01:00
Cédric Krier 3da873995a Use moment to parse time
Closes #13032
(grafted from 1b77b079e942f554c4f074533e209a340e5afa80)

--HG--
branch : 7.0
2024-02-21 09:52:06 +01:00
Cédric Krier caee2b8855 Replace jshint by eslint
Closes #13087
(grafted from b2a2c9483562f6ae5430df5cc957148003ac3520)

--HG--
branch : 7.0
2024-03-11 23:33:12 +01:00
Cédric Krier ae84e0a539 Test number of dots in name before computing unique value from a domain
The type of value may not correspond with the single_value parameter if the
domain does not apply directly to the field but to a nested field.

Closes #12843
(grafted from 411d5752ff2a1283d65fb457a5c9ac2f399dafb0)

--HG--
branch : 7.0
2024-02-12 11:59:13 +01:00
Cédric Krier 1a543f72f2 Return new instances of PYSON object from PYSON shortcut methods
Closes #12985
(grafted from af58504c1e6ad2b17cac5b6c41454d7eda28c5c7)

--HG--
branch : 7.0
2024-02-03 19:29:59 +01:00
Cédric Krier d4660a701a Compare leaf values only of the same type to sort domain
Closes #12792
(grafted from cb0f2181f6188f8a920e591f0d27a2dac6be5678)

--HG--
branch : 7.0
2023-12-12 18:02:14 +01:00
Cédric Krier 4afb959a07 Do not force value for single list on multi-value field
Fields based on multi-value must not be forced to the single value of a list.

Closes #12737
(grafted from c320a786923f19e138459d9a128c7d8cb097f1b1)

--HG--
branch : 7.0
2023-11-14 00:00:15 +01:00
Nicolas Évrard 82ae036d3a Add a canonicalize function for domains 2023-08-14 22:32:14 +02:00
Nicolas Évrard 99211dd03d Activate EcmaScript 6 compatibility for tests 2023-06-15 22:30:30 +02:00
Cédric Krier 041a3fb9b2 Support PYSON comparison of timedelta
Closes #10727
2023-06-15 17:06:13 +02:00
Cédric Krier d7aaac6740 Support encoding timedelta into PYSON TimeDelta
Closes #10727
2023-06-15 13:57:15 +02:00
Cédric Krier 26b9f97577 Use & and | as boolean operator in search widget
Closes #11962, #8714
2022-12-27 17:36:16 +01:00
Nicolas Évrard 3632c51c18 Manage domain on id in single value list as unique
Closes #11953
2023-01-02 11:49:34 +01:00
Cédric Krier e745f06e5f Add more prefixes for humanized number
Closes #11918
2022-12-26 13:00:02 +01:00
Nicolas Évrard 37ebcfc633 Use left part of domain leaf in unique_value return value
The left part must be returned because when the value is unique we also use the
name of field for further checks

Closes #11952
2022-12-20 13:37:06 +01:00
Cédric Krier bba0707929 Prepare migration to monorepo 2022-12-16 14:46:28 +01:00