-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fix/Relearning cards' Intervals don't update after changing Desired Retention #3236
Fix/Relearning cards' Intervals don't update after changing Desired Retention #3236
Conversation
…-after-changing-Desired-Retention
Though I am not 100% sure, I think that your fix forces the recalculation of the interval every time a relearning card leaves the RELEARN state. If it is so, I think that the following fix is more efficient. My idea is that Anki should clear the stored value of the interval of relearning cards (like d9f5487) when certain operations (listed below) are performed and then recalculate the interval during review if it is missing (because it was cleared). The stored value of interval of relearning cards should be cleared when:
I am not sure if we need to treat LEARN cards in the same way. |
This implementation would be complex.
It's necessary if we update to FSRS-5 because it considers the short-term schedule. |
…-after-changing-Desired-Retention
@@ -52,6 +52,14 @@ impl RelearnState { | |||
}, | |||
} | |||
.into() | |||
} else if let Some(states) = &ctx.fsrs_next_states { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work if there are no memory states at that point of time (e.g. the deck was changed, which clears the memory states)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The state is recalculated prior to that point.
Not 100% sure if this is a bug, but still worth looking into: A relearning card on AnkiDroid (24.06.2 backend) shows the intervals The same card on Anki 24.06.3 rc1 shows the intervals The change of But, should the Card: A.apkg.zip (rename to remove .zip) |
Seems I should set the interval as anki/rslib/src/scheduler/states/relearning.rs Lines 135 to 149 in 0d8d816
FSRS gives the same interval for |
Maybe, yes |
#3256) * Fix FSRS easy interval being same as good interval in relearning cards #3236 (comment) * Update relearning.rs * Update relearning.rs * Set min interval of easy to Good + 1 * Ensure minimum doesn't exceed maximum (dae) With a maximum interval set, it would be possible to confuse with_review_fuzz() by passing min > max.
fix #3234