Closed
Bug 1438331
Opened 7 years ago
Closed 6 years ago
Keep the last 5 debug messages in localStorage
Categories
(Taskcluster :: UI, enhancement)
Taskcluster
UI
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: hassan, Unassigned)
Details
(Whiteboard: taskcluster-web)
We don't always want to show an error when something goes wrong. For example,
when auth0 renewal fails, we currently use `console.error` without showing an error box since there was no user iteraction. That console error is invariably gone because the tab was closed by the time anyone notices.
We want to have a way to debug those issues when users report them. For example, this happened today:
<gerard-majax> is it normal that I get disconnected from taskcluster/auth0 often?
like I signed in this afternoon, and now I'm again signed off
One solution to that is to to keep the last 5 debug messages about auth in localStorage and show those in the "manage credentials" page.
Comment 1•7 years ago
|
||
No new localStorage interactions. All new storage will be kept in IDB. This way we can structure data and not deal with serialization.
Reporter | ||
Comment 2•7 years ago
|
||
That works as well. Would you recommend https://github.com/localForage/localForage for interacting with IDB?
Flags: needinfo?(eperelman)
Comment 3•7 years ago
|
||
If we are working with more than key-value pairs, which would seem to be the case if we are working with several rows of data, I'd recommend dexie.
https://www.npmjs.com/package/dexie
Flags: needinfo?(eperelman)
Comment 4•7 years ago
|
||
Reporter | ||
Comment 5•7 years ago
|
||
I wouldn't say that we'll be working with more than key-value pairs. For debug messages, we just need to store a key 'notifications' with the value being an array of strings or objects. I think this is doable with localForage imo.
Comment 6•7 years ago
|
||
Now that I think of it, we should probably roll this into our analytics story. Tracking views, usage, errors, etc. by having them shipped off to a remote service.
Comment 7•7 years ago
|
||
Perhaps, but we need this done *now* as we are having lots of authentication failures and we have no idea why. This is useful debugging information that we need, like, yesterday.
Updated•7 years ago
|
Assignee: nobody → eperelman
Comment 8•7 years ago
|
||
Whiteboard: taskcluster-web
Updated•6 years ago
|
Assignee: eperelman → nobody
Reporter | ||
Comment 9•6 years ago
|
||
This will be handled by reporting to sentry which has been integrated in tc-web[1].
[1] https://github.com/taskcluster/taskcluster-web/commit/6f59e5e8e5169db652db0965ddf023223031d78c
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•6 years ago
|
Component: Tools → UI and Tools
You need to log in
before you can comment on or make changes to this bug.
Description
•