An error occurred while fetching this tab.
F fix max dropdown options
- Feb 13, 2024
-
-
Daniel Hornung authored
-
- Feb 12, 2024
-
-
Florian Spreckelsen authored
-
Florian Spreckelsen authored
-
Florian Spreckelsen authored
-
Fix for #345 (closed). Send the correct query string in case of BUILD_MAX_EDIT_MODE_DROPDOWN_OPTIONS=-1
.
The original problem was that unlimited dropdown options would result in a P0L-1
query being sent, so this is now caught specifically.
Start LinkAhead with BUILD_MAX_EDIT_MODE_DROPDOWN_OPTIONS=-1
(i.e., default) and enter several hundred records, e.g., by
import linkahead as db
rt = db.RecordType(name="Test").insert()
db.Container().extend([db.Record(name=f"Rec{ii+1}").add_parent(rt) for ii in range(500)]).insert()
then, add Test
as a reference prop to any entity and verify that all 500 records can be selected.
As a comparison, repeat for BUILD_MAX_EDIT_MODE_DROPDOWN_OPTIONS=10
and verify that it stops correctly after the first 10 entries and offers the possibility to enter an id manually.
Please, prepare your MR for a review. Be sure to write a summary and a focus and create gitlab comments for the reviewer. They should guide the reviewer through the changes, explain your changes and also point out open questions. For further good practices have a look at our review guidelines
For further good practices have a look at our review guidelines.