Add a manual option to the worker run filters
https://redmine.teklia.com/issues/9016
- Rename
UUIDFilter
toUUIDOrFalseFilter
insrc/filterbar.js
- Have the filter extend
Filter<UUID | false>
- Update the placeholder to mention
or false
- Update the
validate
method so that"false"
andfalse
are accepted and returnfalse
. UUIDs are validated as they are now. - Nice to have:
- Add an
autocomplete
function that returns[false]
- Add a
display
function that returns"Manual"
if the value isfalse
, and otherwise returnssuper.display(value)
- Check that it is possible to type an UUID in the filter bar, or select the manual option, or type
false
yourself, and that an UUID orfalse
in the URL is properly parsed by the filter bar and sent to the backend.
- Add an
Edited by Erwan Rouchet