Incident - reportedBy should store the currently logged in user id
See original GitHub issue🐛 Bug Report
Report incident is currently hardcoded to set reportedBy
to some user instead of the currently logged in user’s id. This needs to be corrected to user the current user id from the redux store.
To Reproduce
- Access staging https://staging.hospitalrun.io/
- Report an incident
- View the list of incidents and notice that the reported by field shows ‘some user’
Expected behavior
- The
incident.reportedBy
should be the currently logged inuser.id
at the time the incident is reported - The list of incidents should display the
user.fullName
based on theincident.reportedBy
Notes
- See
src/shared/components/navbar/Navbar.tsx
on how to access the user from the store
Your Environment
- node version: 6,8,10
- fastify version: >=1.0.0
- os: Mac, Windows, Linux
- any other relevant information
Issue Analytics
- State:
- Created 3 years ago
- Comments:27 (11 by maintainers)
Top Results From Across the Web
Incident - reportedBy should store the currently logged in user id
Report incident is currently hardcoded to set reportedBy to some user instead of the currently logged in user's id. This needs to be...
Read more >Show User ID also in the caller field of Incident - ServiceNow
Solved: Hello Experts! Can someone please tell me that in the Incident form, if I open the caller field (search for a user,...
Read more >User ID in Google Analytics Explained with Examples
Google Analytics User ID is a unique set of alphanumeric characters ... However, the login ID should not contain personally identifiable ...
Read more >How to get current logged in user id in process builder
And would I put that under formula ? – Kdjdnxkdks. Oct 14, 2018 at 15:44. Absolutely. In ...
Read more >CloudTrail userIdentity element - AWS Documentation
For an example log entry, see AWS STS API Event in CloudTrail Log File. ... Note that the userName field will never contain...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@tehKapa I’ve created a PR can you please check?
yep @bottercode