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

Create a new kind of revlog entry for reschedule cards on change #3508

Conversation

L-M-Sherlock
Copy link
Contributor

close #3357

for e in group.into_iter() {
if e.button_chosen >= 1 {
last_reviewed_at = Some(e.id.as_secs());
}
last_revlog_is_manual = e.review_kind == RevlogReviewKind::Manual;
last_revlog_is_rescheduled = e.review_kind == RevlogReviewKind::Rescheduled;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about older cards that were rated in previous Anki versions. Should we be accepting either manual or rescheduled here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My concern is the user may feel confused if they set due date for a card and reschedule all cards, they will only see the first revlog entry generated by set due date.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only affects card rescheduling when saving deck options, yes? Won't an upgrading user with previous set due date use see quite different results when rescheduling now, compared to what they were getting previously? Is that intentional?

Copy link
Contributor Author

@L-M-Sherlock L-M-Sherlock Oct 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

d767e9a

This change aimed at reducing the collection bloat caused by a user experimenting with reschedule multiple times in a short period. But it didn't distinguish "Reschedule cards on change" and "Set Due Date". I think it's a problem, so my PR fix it intentionally.

rslib/src/stats/graphs/reviews.rs Show resolved Hide resolved
@dae dae merged commit 26ae51f into ankitects:main Oct 21, 2024
1 check passed
@L-M-Sherlock L-M-Sherlock deleted the create-a-new-kind-of-revlog-entry-for-Reschedule-cards-on-change branch October 21, 2024 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a new revlog entry for "Reschedule cards on change"
2 participants