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

Cant/shouldnt edit cards while search text is filtering view #712

Open
MoonRubles opened this issue Nov 5, 2024 · 1 comment
Open

Cant/shouldnt edit cards while search text is filtering view #712

MoonRubles opened this issue Nov 5, 2024 · 1 comment
Assignees

Comments

@MoonRubles
Copy link

Describe the bug

If you enter text into the "search for cards..." box, and then click on a card to edit it, the wrong card will be edited. Worse, if you delete a card while filtering, the wrong card will be deleted irreversibly.

To Reproduce
Make 2 cards in a column named "1" and "2"
Search for "2". you will see only the "2" card.
Right click and delete. It will say "are you sure you want to delete card '1'?". If you proceed, it will delete 1 instead of 2.
So it seems to be using the filtered index of the card in the nonfiltered list.

Now instead of trying to delete card 2, edit it instead. Click on card 2 to open the edit box, which correctly has the title "2". Change this to "3" and close. You will see only card "2" in the filtered view. Remove the search text. Now you will see cards "3" and "2". So it edited the wrong card (probably index problem again), but surprisingly this time it opened the correct card to edit -- it said "2"

  • OS: win10
  • App Version 0.8.0
@trobonox
Copy link
Member

trobonox commented Nov 5, 2024

Thanks for reporting this issue. This is very likely a leftover where I use the index of a card to mutate it instead of the ID. I have been using the ID in some places, but it seems like I need to replace indexes completely in order to resolve these issues.

@trobonox trobonox self-assigned this Nov 5, 2024
@trobonox trobonox moved this to Todo in Kanri roadmap Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

2 participants