Removing some no-longer needed code after D9682.
Details
- Reviewers
atul
login/logout and confirm it works, make sure this log SQLite database deletion was triggered by change in logged-in user credentials is printed
Diff Detail
- Repository
- rCOMM Comm
- Branch
- refactors-us-to-ops
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
native/data/sqlite-data-handler.js | ||
---|---|---|
215–216 | Looks like those are unused so can be removed. There is also cookie in deps and not used directly, but I believe we want this code to run when the cookie changes |
Probably missing something here.
My understanding is that D9682 handled removing the messageStore.threads asserts, but aren't there other exceptions that could be caught here? Anything from await commCoreModule.getClientDBStore(), threadStoreOpsHandlers.translateClientDBData(threads), and reportStoreOpsHandlers.translateClientDBData(reports)?
Apologize for churn, but would appreciate a bit more context
native/data/sqlite-data-handler.js | ||
---|---|---|
194–200 | Are there no other exceptions that we might want to log? |
Appreciate feedback @atul.
I was sure this alert was introduced exclusively for message/thread store asserts. Also, I had in mind this issue: ENG-5160 (but it's not occurring anymore).
That's why I was convinced we can remove this code but you're right, we can keep logging different errors, could always improve debugging (however I haven't seen anything like this for a long time).
I am abandoning this diff, if anyone still thinks it's better to remove this code I can reopen it.