Closed Segfaultd closed 1 year ago
Hello again @Segfaultd :wave:
Totally able to reproduce this one, I'll file a bug report in our issue tracker.
In the meantime, I can suggest the following implementation:
.collection.list
, use ctx.getRecords(['order_id'])
instead.Your workaround is also a valid one though, but it will prevent you from using the currently set frontend filter. If you set a frontend filter on your table view, you'll not be able to retrieve it from the smart action.
We will let you know once the fix is released and available 👍
Hello @jeffladiray any chance your team had the time to work on that point?
Thanks!
Looks like a fix was merged yesterday, and as the issue wasn't mentioned in the PR, our forest bot didn't notify you.
It should be fixed in @forestadmin/agent@1.4.1
, via this contribution.
Let me know if it fixes your issue.
Closing this, as the bug is fixed
Introduction
On a custom smart action, the filter contained in the context argument contains an additional unknown filter that breaks the whole implementation.
Code sample
With filters on the created_at field (before & after), a empty and unknown "Or" ConditionTreeBranch is injected and breaks the whole query.
Payload sent by UI
Debug hint
If I actually cheat the querier by manually placing the information inside, everything works as intended.