Label filtering feedback - some observed bugs #2194
Labels
No Label
dependencies
duplicate
help wanted
invalid
kind/bug
kind/feature
needs reproduction
question
security
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/vikunja#2194
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Hi,
first of all, I love the more flexible filter syntax! There's a few issues I noticed in our environment when playing around with it:
Filters after label filter
If you have a label filter, it's not easily possible to add another condition afterwards. Its mainly a UI bug I think:
Selecting project in filter doesn't work reliably
I have not figured out a pattern yet, I can fully reproduce it on my instance (
v0.23.0+230-3b77fff4c9
) and sometimes (tm) on try.vikunja.io (v0.23.0+240-659de54db1
). Will try to experiment further and upgrade my instance. What I'm seeing is that sometimes the project selected will be selected correctly. See attached screen recording. On try, I can reproduce it sometimes, try to create a saved filter and useproject = Label Feedback Project
- it often automatically switches toproject = Label Feedback Project - 2
Vikunja Version
v0.23.0+240-659de54db1
Browser and version
Firefox and Safair
Can you reproduce the bug on the Vikunja demo site?
Yes
Screenshots
No response
This looks like it's related to the way the projects are fetched.
Might be. Am on a business trip the next two weeks, not sure how much time I’ll have to investigate :(
The first issue should be fixed in
e44897e0d4
.I'm currently looking at the second issue, while I couldn't exactly reproduce what you showed in the video, I managed to find something funky happening.
Something funky is a good description - I wasn’t able to reproduce it deterministic. It happens sometimes, but not every time, even on the very same set of projects, but I haven’t been able to figure out which conditions trigger the issues and which don’t
Looks like the problem with the project replacement seems to happen when the actual project in the filter contains the word
project
(or parts of it).The other issue should be resolved in
e1c972d64d
- please check with the next unstable build.Hi, first of all, thank (again) for your work! Can confirm the first bug is fixed, the second one is sadly not fixed. It doesn't only affect projects containing the word "project". I managed to reproduce it on try, still not consistently though
I'm still not sure what conditions need to be met. Opening the same saved filter (called it "waza-ari-project-test" for now) multiple times within a minute yields inconsistent results :(
Things I tried to exclude so far:
Thanks!
I was able to reproduce it the first time with your reproduction steps. Will look into a fix.
Should be fixed in
d4605905d3
- please check again with the next unstable build.Hi, thanks, can confirm it works! Unfortunately found another one (or two, not sure):
Try to create a Saved filter involving both a project and a label. On try for example:
project = Smart home
)&& labels = green
)project =3eenmart home && labels = undefined
See attached video (recorded on try)
Maybe similar, but also this doesn't work:
This will yield both a green success message and an error message:
Let me know if I can be of any help please.
Not sure if it helps, but when going through the database on my instance it looks like the project name is not substituted with the ID, its actually stored like this in database:
If I change
Vorstand
to the corresponding numeric id manually, the filter works as expected.The actual filter on the server needs IDs to do the filtering, that's why a filter which contains the project title only will not work. That is resolved in the frontend before the filter string is sent to the api, and it looks like that's where the problem was.
This should now be fixed, in
161bb1b192
,c8b35d49ca
,6cf3a578c0
,96186250f4
The replacement back (from titles to ids) didn't work correctly - now it should all be good. Please verify on try, you know the drill :)
That makes a lot of sense and works wonderfully now, thanks again!
I'm really feeling sorry already, but found yet another one :(
On try, create the following saved filter:
That works fine. Then try to add another condition
&& done = false
to it, this won't get saved and removed before saving.Edit: never mind, just discovered it has nothing to do with the syntax, it's just me being too fast for the debouncing logic. If I click the save button too quick, it just reverts to the previous saved filter. Maybe it makes sense to disable the save button while debouncing is in progress?