Add card meta for persisting custom scheduling state#2040
Add card meta for persisting custom scheduling state#2040dae merged 4 commits intoankitects:mainfrom
Conversation
Large values will slow down table scans of the cards table, and it's easier to be strict now and possibly relax things in the future than the opposite.
+ default customData to empty if it can't be parsed
|
Thanks Rumo. I've made some minor tweaks - do they work for you? |
|
Sure! |
|
🚀 |
|
I just wanted to document const fooFactor = customData.fooFac || 1;
if (states.good.normal?.review) {
states.good.normal.review.scheduledDays *= fooFactor;
}
customData.fooFac = calculateNewFooFactor(fooFactor); // what's the point?As the custom variable must be calculated in advance, it cannot take into account the answer rating. But without it, what scheduling variable worth persisting can we possibly calculate? Am I missing something? |
|
You're right 🤦 I guess we could pack it into the top level of SchedulingState so we don't have to update every enum variant? |
|
Sounds good, I'll take care of it. |
Closes #2039.
A welcome opportunity to look into custom scheduling!