-
Notifications
You must be signed in to change notification settings - Fork 198
Save UID and display name for managers of the org chart #2962
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
Conversation
Codecov ReportBase: 31.21% // Head: 67.96% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #2962 +/- ##
=============================================
+ Coverage 31.21% 67.96% +36.74%
Complexity 253 253
=============================================
Files 109 23 -86
Lines 1858 721 -1137
Branches 218 0 -218
=============================================
- Hits 580 490 -90
+ Misses 1163 231 -932
+ Partials 115 0 -115 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
|
Seems to do the trick now |
st3iny
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good otherwise.
| // TODO: this only *shows* the display name but doesn't assign the missing UID | ||
| const displayName = this.property.getFirstValue() | ||
| const other = this.otherContacts(this.contact).filter(contact => contact.displayName === displayName) | ||
| return other?.key |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| return other?.key | |
| return other.key |
The variable other is always defined because Array.filter in the line above always returns an array.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This actually shows a problem. I meant to use .find instead of .filter. Then the result is undefind|object :)
Signed-off-by: Christoph Wurst <[email protected]>
c79e597 to
240ee34
Compare
Follow-up to #2954
Discussed in #2726 (comment)
Previously assigned managers will show a broken link because we wrongly stored the UID as display name. Those contacts need to be fixed but it only affects dev and pre-production instances.