FIX: #131 (query: "and" in subproperties)
Summary
Fix for https://gitlab.com/caosdb/caosdb-server/-/issues/131
See also #214 (closed)
Focus
The bug consisted of two problems:
- In queries similar to
FIND ENTITY WITH pname1.x>0 AND ...
the part after theAND
was interpreted as filters on pname1, not on the entity. - In queries similar to
FIND ENTITY WITH ( pname1.x>0 ) AND ( ... )
everything after the first round bracket until the last round bracket was interpreted as the unit (so the unit was) AND ( ...
) and the query had only a single filter and the AND was not interpreted as a marker for the conjunction.
Test Environment
No special setup required.
Check List for the Author
-
All automated tests pass -
Reference related Issues -
Up-to-date CHANGELOG.md -
Annotations in code (Gitlab comments) - Intent of new code
- Problems with old code
- Why this implementation?
Check List for the Reviewer
-
I understand the intent of this MR -
All automated tests pass -
Up-to-date CHANGELOG.md -
The test environment setup works and the intended behavior is reproducible in the test environment -
In-code documentation and comments are up-to-date. -
Check: Are there specifications? Are they satisfied?
For further good practices have a look at our review guidelines.
Edited by Daniel Hornung