ankidroid / Anki-Android

AnkiDroid: Anki flashcards on Android. Your secret trick to achieve superhuman information retention.
GNU General Public License v3.0
8.81k stars 2.25k forks source link

[BUG]: note edits flip cards to 'question' side #14656

Open Arthur-Milchior opened 1 year ago

Arthur-Milchior commented 1 year ago

Checked for duplicates?

What are the steps to reproduce this bug?

Open the reviewer, tap on "answer".

Expected behaviour

Answer updated

Actual behaviour

It shows the question again

Debug info

Running on df10031dac7bcdbb9640d51bd9b9040de87ed315

(Optional) Anything else you want to share?

No response

Research

user1823 commented 1 year ago

I think that the Desktop behaves similarly (not verified).

BrayanDSO commented 1 year ago

(or anything that edit the note)

Changing flags doesn't create the issue

Arthur-Milchior commented 1 year ago

@user1823 Nice to meet you, but I'd invite you to verify if you have doubt. I did, (admittedly, I didn't write it up, and I'm sorry for that), marking a note on current version of anki, or even editing its content, keep you in answer side if you are in answer side.

@BrayanDSO I beg your pardon, I should have emphasized the part "editing the note". The flag is applied to the card only. I did test it too and noticed it didn't create the bug.

user1823 commented 1 year ago

I just tested this on the Desktop version. @Arthur-Milchior, you are right; this bug doesn't exist there.

When I made the above comment, I was not on my desktop and so, I couldn't verify. I thought that it can be easily verified by anyone who was on desktop. But sorry for the inconvenience caused.

dae commented 1 year ago

This should be a good one for you to get up to speed with the undo infrastructure Arthur. The way to solve this is:

dae commented 1 year ago

@BrayanDSO changing flags doesn't trigger this, because they haven't been made undoable yet

user1823 commented 9 months ago

Editing tags again unflips the card in 2.17 beta 5.

Recently, I have noticed it multiple times that the fix for one issue causes a previously solved issue to reappear. So, after 2.17 is out, I think that it would help to work on adding more automated tests.

mikehardy commented 9 months ago

Recently, I have noticed it multiple times that the fix for one issue causes a previously solved issue to reappear. So, after 2.17 is out, I think that it would help to work on adding more automated tests.

Indeed - worth noting that in this specific area I think there were some tests added just recently. Somewhat surprising they didn't catch this regression

github-actions[bot] commented 3 months ago

Hello 👋, this issue has been opened for more than 3 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically