-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
fix to getAccountIDForLogin applied #20818
fix to getAccountIDForLogin applied #20818
Conversation
@Beamanator @fedirjh One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
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.
LGTM
@fedirjh please review when you have time and test on web & desktop |
@burczu @Beamanator Unrelated to this PR, the logo of the tooltip for users with default avatars are different. ![]() |
const keys = lodashKeys(allPersonalDetails); | ||
const result = lodashFind(keys, (key) => allPersonalDetails[key].login === login) || '0'; | ||
return Number(result); |
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.
const keys = lodashKeys(allPersonalDetails); | |
const result = lodashFind(keys, (key) => allPersonalDetails[key].login === login) || '0'; | |
return Number(result); | |
const accountID = _.findKey(allPersonalDetails, {login}) || '0'; | |
return Number(accountID); |
We can simplify this block , we can use underscore findKey
.
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 seemed to work well for me too 👍
import lodashFind from 'lodash/find'; | ||
import lodashKeys from 'lodash/keys'; |
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.
import lodashFind from 'lodash/find'; | |
import lodashKeys from 'lodash/keys'; |
Suggestion Follow up
Reviewer Checklist
Screenshots/VideosMobile Web - ChromeMobile Web - SafariiOSAndroid |
Can we re-think of more optimized solution proposed here? |
Can anyone please confirm if this issue is fixed by this PR #20839 |
@0xmiroslav I think you are right and I agree that the other solution looks better. How do we want to tackle this? Should we close this PR and related issue, reopen the other one and let the author of that other proposal work on it? cc: @Beamanator |
@MonilBhavsar I think this PR won't fix the issue you've mentioned - it only fixes missing display name in the tooltip and doesn't handle too long emails/displayNames in any way... |
I am not sure. @alex-mechler will decide. |
I agree with @0xmiroslav & @burczu that this solution looks best - Let's close this out & reopen that issue |
Details
This PR fixes the issue with the lack of display name displayed in the tooltip while hovering over the avatars in the LHN.
Fixed Issues
$ #20801
PROPOSAL: #20801 (comment)
Tests
Offline tests
Same as above.
QA Steps
Same as above.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
screen-capture-20801-web.mp4
Mobile Web - Chrome
n/a
Mobile Web - Safari
n/a
Desktop
screen-capture-20801-desktop.mp4
iOS
n/a
Android
n/a