-
Notifications
You must be signed in to change notification settings - Fork 271
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
added tagging functionality and filtering by date, amount, payer, tag #557
Conversation
Hi! Nice improvement. It seems simpler that what I expected, so good job! There is however some issues for now, please have a look. |
So I've run |
This sounds good! Being able to search is especially important now that we have paginated output (#480), because a simple browser-based text search won't show everything. Is it possible to have a screenshot of how the search functionality would look like? |
We used a previous PR's code to start us off and this is how it ended up looking: However, I do not think the original code we based ours off of will work with pagination. (PR #511) |
@allisongu great, thanks! If you want to test what happens with pagination, you can change the number of items per page to a really low value in
Although I see now that we also have javascript-based pagination and sorting (#538), I'll have to check how the two pagination methods interact... Edit: forget that last comment, #538 is only about the admin dashboard, not the list of bills! |
To generate migrations, you need to make sure that you have an up-to-date database.
It should pick up your changes. I tested it and it also included something strange and completely unrelated about
If something like this happens (it might depend on the system you're using...), you would need to manually edit the migration file to only keep the bits related to the new field. |
@zorun The instructions to get the database revision fixed worked! I just had to delete the lines in the migration file that had to do with I tested out our search functionality with a low number of bills per page (1 haha) and it does not search through all bills currently, only the ones shown on the page. |
Great! The documentation update is a good idea: #569 For the issue with pagination, it needs some thinking. One way would be to do the searching/filtering on the server side. However, it means that:
Any other ideas? |
@allisongu what do you think of doing this in two steps? The first step could be to just add tags, and provide simple server-side filtering on tags. Regarding the UI, maybe each tag in the bill description could be a link that filters down on this tag? Or also add a filtering bar like you did, but only for tags? Filtering would need to reload the page, which is fine as a first step I think. The second step would then add more powerful searching (by date, payer, etc), and look for a better solution to the pagination problem & asynchronous loading. This is just a suggestion and more ideas are welcome. |
i'll +1 @zorun , maybe first doing small steps. Also, please keep in mind that we want to try to keep this page as light as possible, so adding a full blown search form in a big card might be a bit too much. |
We are on the way to discover that filtering is complex, especially from the UI point of view. @allisongu, do you think you can open a new request with only the tag management in the database? As @zorun mentioned, you can also add a browse-by-tag feature, like this one: https://www.koreus.com/tag/chaton When you click on a new tag, it filters on both selected tags. |
Hi, here we are with this? It seems kinda stalled (last discussion and commit 6 months ago) but the feature is cool :-) @allisongu, do you want to finish your work on this or should we let it go? |
@indatwood Hey, unfortunately I don't have the time to contribute to this feature anymore so unless someone else wants to pick it up, i guess we should let it go |
@nachow16 and I wrote this code to fix #430 and fix #55