-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[HOLD for payment 2022-09-01] [$250] iOS - Random avatar color changes after creating a group for a new user #10220
Comments
Triggered auto assignment to @madmax330 ( |
When you are entering the name on the If that is not the expected behavior, all that's needed is changing this line in function getDefaultAvatar(login = '') {
// There are 8 possible default avatars, so we choose which one this user has based
// on a simple hash of their login (which is converted from HEX to INT)
- const loginHashBucket = (parseInt(md5(login).substring(0, 4), 16) % 8) + 1;
+ const loginHashBucket = (parseInt(md5(login.toLowerCase()).substring(0, 4), 16) % 8) + 1;
return `${CONST.CLOUDFRONT_URL}/images/avatars/avatar_${loginHashBucket}.png`;
} |
Triggered auto assignment to @stephanieelliott ( |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a production regression has occurred a Root Cause Analysis is required. Please follow the instructions here. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
@stephanieelliott Huh... This is 4 days overdue. Who can take care of this? |
Hey @kavimuru, heads up we skipped a few steps with this one - this (and all new issues) should get the |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
Triggered auto assignment to @puneetlath ( |
There was discussion on #9876 (comment) and we determined this was not caused by a regression, so treating this as a normal job. Messed this one up and closed the job post after just hiring C+, so had to create separate jobs: @rushatgabhane heads up there is a proposal on this one already: #10220 (comment) |
ProposalThis happens when email is capitalized (first letter is uppercased). Email is usually capitalized because search input component (TextInput)'s This is the main issue: Solution
Before: Second proposal:
|
@eVoloshchak the issue and your proposal make sense! (also it looks like it's not a regression) @puneetlath I like @eVoloshchak's proposal. 🎀 👀 🎀 C+ reviewed |
📣 @eVoloshchak You have been assigned to this job by @puneetlath! |
I agree. @aimane-chnaif thanks for your proposal, but we're going to go with @eVoloshchak given that they proposed first and I think the check for whether it is email before setting to lowercase is overkill. Thanks! |
Hey @eVoloshchak, any update on progress? Also, I sent you an offer for this job in Upwork, please accept when you get a chance: https://www.upwork.com/jobs/~0172aa16b79ead5420 |
Either something was broken by recent changes or in npm registry, but my
|
And there's no need, we already have a contract running for this job on Upwork |
PR is up |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.89-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2022-09-01. 🎊 |
All paid up, thanks! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Issue was found when executing #9963
Action Performed:
Expected Result:
Randomly generated avatar color should be same when selecting a user to create a group and after group chat initiated
Actual Result:
Avatar color is different in the group chat than initially selected
Workaround:
Unknown
Platform:
Where is this issue occurring?
Version Number: 1.1.87-8
Reproducible in staging?: y
Reproducible in production?: y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
Bug5673400_DHBY0250_1_.mp4
Expensify/Expensify Issue URL:
Issue reported by:
Applause internal team
Slack conversation:
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: