-
Notifications
You must be signed in to change notification settings - Fork 19
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
Handle undefined attorney in app/queue/AssignedCasesPage.jsx #12999
Comments
Timebox this to a two as it has only occurred twice to a couple of users. |
https://sentry.ds.va.gov/department-of-veterans-affairs/caseflow/issues/8849/ FYI, while this issue is marked as low priority, it is preventing me from loading the case assignment page mentioned in that sentry alert. I assume this is likely a large issue for that particular user. If you like shiny new things, this might be a good candidate for using the optional chaining and/or nullish coalescing operators. |
Prioritize'd! Thanks for bringing this up! |
I'm able to replicate and see the error in the console by going to an acting judge (who doesn't have attorneys) and manually entering http://localhost:3000/queue/BVAACTING/assign/88 (the resulting page is blank). I can also replicate as a judge trying to view an attorney who is not on my team by manually changing the URL: http://localhost:3000/queue/BVAAABSHIRE/assign/92. @jcq Can you describe how I can replicate the error you described as:
Looking at all of these Sentry alerts, it seems like the user must be modifying or pasting the URL because none of the attorney links on the side panel corresponds to the URLs trying to be reached. |
Based on the breadcrumbs of these alerts it looks like this could be a stale link the user has bookmarked?
+ 88
+ tasks?user_id=3&role=Judge
+ 3
+ users?role=Attorney
+ users?role=Attorney&judge_id=3
+ BVAAABSHIRE
88?role=judge
tasks?user_id=88&role=attorney
BVAEERDMAN?role=judge |
Sorry, missed this until now. That said, it looks like Yoom identified the issue in the intervening time, as your before/after shots demonstrate. The "before" shot shows the issue I encountered as that user. |
I agree that we should handle this more gracefully, but I'm not sure the judge being unable to access this page is a concern. The attorney is not on their team, so they should not be able to see the attorney's cases. |
My PR will restrict judges from viewing other judge's assign queue. Once we enable the CM (case movement) feature flag ( Ann-Marie sent a note to the Board noting that we are fixing the bug (judge's being able to see other JudgeTeam's assign queue). |
I didn't realize these were related. We confirmed that a judge viewing another judge's queue is what is causing the error? I don't have any errors showing in this scenario Random attorney viewing a judge assign queue with
|
I was able recreate error by logging in as judges as described in prior comment. I did not test when logged in as an attorney. So back on the master branch, I test as an attorney. When I go to http://localhost:3000/queue/BVAAABSHIRE/assign/92, I don't get the 403 status, but the page is blank: Feature flag On the PR branch and logged in as |
Description
In
app/queue/AssignedCasesPage.jsx
, an error occurs when an attorney is not found and thus is undefined. Handle this case better:app/queue/AssignedCasesPage in full_name: Cannot read property 'full_name' of undefined
Background/context/resources
During Bat Teaming, Sentry alert occurred: https://dsva.slack.com/archives/CLRTL92TW/p1576600351014300
Sentry alert: https://sentry.ds.va.gov/department-of-veterans-affairs/caseflow/issues/7605/
Technical notes
initiated by
./app/queue/QueueActions.js in dispatch at line 372
The text was updated successfully, but these errors were encountered: