-
Notifications
You must be signed in to change notification settings - Fork 3
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
Query parameter time_filter ignored #49
Comments
Hi @HughbertD! 👋🏾 Thanks for your issue. Can you include two things for me?
This will help us figure out where the breakdown is happening. |
Hi @benmvp Thanks for taking a look! Request is being made in node on the backend, so I can't show you a network tab.
Similar request in Insomnia that bears different (and correct) results |
I created a codesandbox that emulates the issue. I don't see why it would do that, but you can see from the sandbox that is does return 17 items, however when I use the API explorer it only returns 1. UPDATE |
I debugged this locally with the API. The SDK defaults the A workaround is to specifically set the method of the request to I will also open a PR that will default method to I also threw it in Netlify, since it was easy and shouldn't have to build to test it. |
Thanks @kwelch for looking into this, the work around is doing the trick for the time being :) 👍 |
🎉 This issue has been resolved in version 1.0.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Current Behavior
When making a request to:
/users/me/orders/?time_filter=current_future
via the SDK I am receiving all the orders back regardless of the time_filter usedExpected Behavior
I expect to receive only the
current_future
orpast
events depending on the parameter I providePossible Solution
Steps to Reproduce (for bugs)
Generate a token
Provide a request to:
/users/me/orders/?time_filter=current_future
Observe the orders returned
Provide a request to:
/users/me/orders/?time_filter=past
Observe the same orders are returned
I then used Insomnia (API client) to make the same request (same token etc) and observed properly filtered events returned depending on the query parameter provided.
Screenshots (if appropriate):
Your Environment
The text was updated successfully, but these errors were encountered: