lowcoder icon indicating copy to clipboard operation
lowcoder copied to clipboard

[Feat]: Query fails when depending on input

Open renekahr opened this issue 1 year ago • 1 comments
trafficstars

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

When you run a query which is depending on an input, the query fails if the input is empty.

Expected Behavior

The query shouldn't even run, if the input is empty.

Steps to reproduce

  • add an input field
  • create a query which is depending on that input
  • run it without providing an input

Environment

No response

Additional Information

No response

renekahr avatar Jun 24 '24 13:06 renekahr

We disagree about Bug. However we understand naturally your described case. As queries could get triggered also after a validation - and validation could be bound to that specific field - it is not a bug. But surely it is a further optimization to test if a query reference a field - and if so, how to handle empty fields.

Remember, in terms of a filter for example, an empty field may be wishful - as it would indicate "all records".

FalkWolsky avatar Jun 24 '24 15:06 FalkWolsky