-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Private Room - Chair icon not displayed for private room created #7261
Comments
Triggered auto assignment to @tgolen ( |
Triggered auto assignment to @kadiealexander ( |
Reason Proposal
in App/src/libs/actions/Report.js Lines 377 to 380 in 7dfe96f
|
Hi @sobitneupane and thanks for the proposal! I really like your thinking here:
I 100% agree with you. What would you think about doing a small refactoring here so that |
Sure. function getFromReportParticipants(reports) {
const participantEmails = _.chain(reports)
.pluck('participants')
.flatten()
.unique()
.value();
if (participantEmails.length === 0) {
return;
}
API.PersonalDetails_GetForEmails({emailList: participantEmails.join(',')})
.then((data) => {
const existingDetails = _.pick(data, participantEmails);
// Fallback to add logins that don't appear in the response
const details = _.chain(participantEmails)
.filter(login => !data[login])
.reduce((previousDetails, login) => ({
...previousDetails,
[login]: {}, // Simply just need the key to exist
}), existingDetails)
.value();
const formattedPersonalDetails = formatPersonalDetails(details);
Onyx.merge(ONYXKEYS.PERSONAL_DETAILS, formattedPersonalDetails);
- // The personalDetails of the participants contain their avatar images. Here we'll go over each
- // report and based on the participants we'll link up their avatars to report icons. This will
- // skip over default rooms which aren't named by participants.
- const reportsToUpdate = {};
- _.each(reports, (report) => {
- if (report.participants.length <= 0 && !ReportUtils.isChatRoom(report)) {
- return;
- }
-
- const avatars = OptionsListUtils.getReportIcons(report, details);
- const reportName = ReportUtils.isChatRoom(report)
- ? report.reportName
- : _.chain(report.participants)
- .filter(participant => participant !== currentUserEmail)
- .map(participant => lodashGet(
- formattedPersonalDetails,
- [participant, 'displayName'],
- participant,
- ))
- .value()
- .join(', ');
-
- reportsToUpdate[`${ONYXKEYS.COLLECTION.REPORT}${report.reportID}`] = {icons: avatars, reportName};
- });
-
- // We use mergeCollection such that it updates ONYXKEYS.COLLECTION.REPORT in one go.
- // Any withOnyx subscribers to this key will also receive the complete updated props just once
- // than updating props for each report and re-rendering had merge been used.
- Onyx.mergeCollection(ONYXKEYS.COLLECTION.REPORT, reportsToUpdate);
});
} And Add
|
I like it! Change the name of the method to @kadiealexander can you please move forward with hiring them for this and posting the job on upwork? |
Sorry team, was OOO for a couple days! Here's the Upwork link: https://www.upwork.com/ab/applicants/1484387572985319424/ @sobitneupane I've invited you to the job, could you please accept? |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Current assignee @tgolen is eligible for the Exported assigner, not assigning anyone new. |
Accepted. |
I can see a good refined proposal but it has some issues/challenges. I am sure that we can overcome those on PR review. Overall, I like @sobitneupane 's proposal as well. I am anticipating that it will fix one more issue (can't find atm). 🎀 👀 🎀 C+ reviewed |
📣 @sobitneupane You have been assigned to this job by @kadiealexander! |
Don't worry about the above @sobitneupane, it's already done. :) |
This caused a staging deploy blocker so the PR is being reverted #7417 |
Hello @parasharrajat , While working on this issue, I have found another issue that the icons for new chats and new group chats are not visible in report body in mobile app. Should I report the issue on slack? Should I solve the bug as part of this issue? The solution to the bug is different from that of this issue. |
If that is not caused by your PR and not fixed by the changes for this PR then you should report that on Slack. |
Okay. Thanks for the suggestion. It is not caused by my PR. It is already reverted. The issue exists in current codebase. |
Issue not reproducible during KI retests. (First week) |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.33-3 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-02-08. 🎊 |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.36-0 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-02-14. 🎊 |
Issue not reproducible during KI retests. (Second week) |
Unfortunately, it looks like this has led to another regression: #7630 so I am reverting the PR again for now. |
Hi! OK, coming back here... The revert of this PR helped me to discover a big performance improvement that I was able to make in #7649. As @luacmartins and I were debugging this, we found out that even with the new optimization fix, the code in this PR still results in a near-infinite loop happening that we were not able to track down. I suspect it has something to do with the addition of the
|
Okay. |
OK, I've added you! Please don't do anything on that policy in expensify.com, but you should now see a ton of logins on your personal details. |
Issue not reproducible during KI retests. (Third week) |
Wow, that's SUPER weird that you cannot reproduce the original problem, especially considering that all the code for this was reverted. What is "the specific scenario" that's still happening? |
@tgolen I might've misunderstood the discussion. I thought the main issue is fixed and there is some additional case which still needs to be resolved. |
I think at this point, we should just close the issue. There is nothing more to do. Thanks for your help! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
Chair Icon displayed for private room
Actual Result:
Chair icon not displayed for private room but displayed for restricted room
Workaround:
Unknown
Platform:
Where is this issue occurring?
Version Number: 1.1.30
Reproducible in staging?: Yes
Reproducible in production?: No
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
Issue reported by: Applause
Slack conversation:
Issue was found when executing: #7197
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: