fix(scheduler): 'deck not found in limits map' - #21014
Conversation
| col.decks.select(deckADid) | ||
|
|
||
| val ex = assertFailsWith<Exception> { col.sched.counts() } | ||
| assertTrue(ex.isDeckNotFoundInLimitsMapException()) |
There was a problem hiding this comment.
Regression cover: backend does not change the text
|
|
||
| Timber.i("Error dialog displayed") | ||
|
|
||
| val helpAction = crashReportData?.helpAction?.takeIf { it.canExecute(this) } |
There was a problem hiding this comment.
This complexity comes from the fact that we cannot call showDatabaseErrorDialog without context being an AnkiActivity derivative
c61d107 to
02365b1
Compare
|
Unsure if this qualifies for 2.24.1 - reviewer's choice |
c2bfe7c to
5c99879
Compare
5c99879 to
b788824
Compare
mikehardy
left a comment
There was a problem hiding this comment.
I like it but this feels more like a feature than a bugfix, and it's already in an area where I user might be in trouble so to speak. It's not great to continue leaving them without the ability to fix, now that we know it's possible, but there's always a risk of something unintended - I'd rather this marinate on main for a while
| if (shouldDismiss) { | ||
| dismiss() | ||
| } | ||
| if (helpAction!!.execute(this@showError)) dismiss() |
There was a problem hiding this comment.
reasoning through the !! to verify safety - there wouldn't be a neutralButton at all if the helpAction didn't exist above, ergo for the listener on neutral to be called, the helpAction is non null
|
Works for me, it's been a longstanding issue and I was hoping for a fast 2.25 |
A 'Check database' action is shown on the error message, which resolves the issue. The error is no longer sent to ACRA Fixes 15195 Assisted-by: Claude Opus 4.7 - initial debugging, wrote code which I designed
b788824 to
c2aaa5c
Compare
Note
Assisted-by: Claude Opus 4.7 - initial debugging, wrote code which I designed
Fixes
Approach
A 'Check database' action is shown on the error message, which resolves the issue.
The error is no longer sent to ACRA
How Has This Been Tested?
Checklist