-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
Capture Filter: wallet filter is broken #1035
Comments
Example filter data: startDate: 2023-02-17 |
This might be caused by double-conversion of the |
Currently, 'wallet' can be filtered only as a full match. |
For me, exact matching is appropriate here, but we need to improve the UI to make it clearer. |
@nmcharlton Sounds good, could you please assign this ticket to me? |
I asked Sebastian Gärtner about the amount of wallet data in the production database and he told that the current amount is 6500 records which should grow up quickly. It seems to be too much to load all at once to the dropdown when page loads (like we do in other autocomplete components like Tags or Organizations). |
@OlhaD I agree with that approach. It's how Tags used to work, with a limit of 25. But it was simplified (I think) as the number of tags remained fairly manageable in production. We can query on each keystroke and limit the results to what sensibly fits in a dropdown. If wallet queries take some time to complete, it might be worth denouncing requests as well to cut down on unnecessary ones. |
If you're feeling really flashy, you could even use pagination to add more results in the autocomplete as the user scrolls down 😀 |
@nmcharlton I tried several solutions with tracking scrolls down, but all of them worked not stable. For example, the same event fired only a couple of times and it worked not with all browser zoom. Also, I added a new API to get only wallets from 'treetracker.grower_account'. It allows us to avoid not needed joins and returns data much faster (at least 2.5 times on my local machine). I created this ticket for it: Greenstand/treetracker-query-api#299 |
'Wallet' filter was also updated on Growers page. |
…er-autocomplete
…er-autocomplete
…allet-filter-autocomplete' into Greenstand#1035-capture-filter-wallet-filter-autocomplete
No description provided.
The text was updated successfully, but these errors were encountered: