-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Tell the users why card type deletion fails when this would orphan note #16789
Comments
@Arthur-Milchior Would love to work on this issue . |
Go for it. Sorry, it seems I can't assign from GitHub Android app |
Like? I am on it sir @Arthur-Milchior |
@Arthur-Milchior is this issue still open, can this be assigned to me and can I create a pull request for my fix? |
@HUN-sp Can you please give us an update ? David asked you to close one of the PR and rebase and force push the other. |
@Arthur-Milchior I have my initial fix ready for the issue, I will create a PR when this is assigned to me. |
Hey @Arthur-Milchior assign it to sahil
…On Tue, 6 Aug, 2024, 11:59 Sahil-Mandal15, ***@***.***> wrote:
@Arthur-Milchior <https://github.com/Arthur-Milchior> I have my initial
fix ready for the issue, I will create a PR when this is assigned to me.
—
Reply to this email directly, view it on GitHub
<#16789 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BDBYM26K3U4XA5A4N43II4TZQBUNDAVCNFSM6AAAAABLSXXKDKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZQGQ4DIMJXGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@Arthur-Milchior I am waiting for the issue to be assigned to me to create the PR or should I proceed with it? |
@Sahil-Mandal15 you could have proceeded. Of course, you're now assigned anyway. |
Is it still open? |
An orphan note is a note that has no card. For example if you have a basic and reverse card, with only the front filled, and you delete the first card type, then the note has no card left.
In AnkiDroid/src/main/java/com/ichi2/anki/CardTemplateEditor.kt, when the user tries to delete a card type, if that would cause orphan, we stop the user from doing it, thanks to
deletionWouldOrphanNote
Except that the user does not know why it failed.
We should add a simple message dialog explaining that some note would not have any card anymore.
You can imitate the lines above, where the user gets a message stating that there is a single card type and so it can't be deleted
(I should note that, in anki, we can create orphan. There is no warning. The orphan first disappear from the browser if it's opened, and then reappear if you close and reopen it.
Honestly, I prefer the way ankidroid handle it, but if a maintainer prefer to imitate anki, fine)
The text was updated successfully, but these errors were encountered: