Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EA cannot handle ">=" "<=" (greater/less than or equal) in filter correctly #73

Open
mizuno4559 opened this issue Aug 7, 2024 · 0 comments

Comments

@mizuno4559
Copy link

When I set examples to output ">=" in filter part, I confirmed Gemini returns following URL parameter as expected.

fields=users.name,user_order_facts.lifetime_orders&f[user_order_facts.lifetime_orders]=>=10

However, when explore comes up, the embedded url includes following URL parameters:

&fields=users.name,user_order_facts.lifetime_orders&f[user_order_facts.lifetime_orders]=>

So "=10" has gone from the url parameter and actual filter in Explore displays Livetime Order is any value.

After some investigation, I suspects it's gone during the exploreUrl creation:

      exploreUrl.split('&').map((param) => {
        const [key, ...rest] = param.split('=')
        // paramsObj[key] = rest.join('=')
        if (key === 'filter_expression' || key === 'dynamic_fields') {
          // console.log('rest', rest)
          paramsObj[key] = rest.join('=')
        } else {
          paramsObj[key] = param.split('=')[1]
        }

It split by "=" and therefore ">=" (and "<=") won't be handled as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant