-
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
[Pay 4/29][$500] Group chat - Share code subtitle does not include the group creator #39316
Comments
Triggered auto assignment to @CortneyOfstad ( |
@CortneyOfstad FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
We think that this bug might be related to #vip-vsp |
ProposalPlease re-state the problem that we are trying to solve in this issue.Share code subtitle does not include the group creator What is the root cause of that problem?In App/src/pages/ShareCodePage.tsx Line 62 in 0140912
What changes do you think we should make in order to solve the problem?We should modify if (isGroupChat(report)) {
return getGroupChatName(report.participantAccountIDs ?? [], true);
} But remember to leave the group chat logic under the thread one because any thread in group chat also has What alternative solutions did you explore? (Optional)This issue also happens in several places using Report details Parent navigation subtitle (when reply a group message in thread): Shortcut Search page |
ProposalPlease re-state the problem that we are trying to solve in this issue.Share code group name doesn't include the creator. What is the root cause of that problem?
App/src/pages/ShareCodePage.tsx Line 62 in 14ff944
In ReportUtils.ts, inside Lines 2889 to 2895 in 14ff944
What changes do you think we should make in order to solve the problem?Current user should be included if the number of total people is <= 5.
This will start including the creator at other places also, whenever the total participants is 5 or less. |
Job added to Upwork: https://www.upwork.com/jobs/~0190680b621c41acf8 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @cubuspl42 ( |
@cubuspl42 We have some proposals above — if you have any feedback, feel free to share. Thanks! |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?Option 1:
Option 2:
What alternative solutions did you explore? (Optional)Addtional bug:
|
Both your proposals are relatively similar, I understand that @nkdengineer discovered another bug and provides a solution of that bug, too. But what bothers me is that you both suggest to synchronize the code, so it's the same, instead of de-duplicating it. Why is that? |
@cubuspl42 I do not fully understand the term "de-duplicating it" that you mentioned. But I assume that you mean is that, we should create a function, named |
@cubuspl42 I updated my proposal (Option 2) |
Yeah, something like that. De-duplication is a broad class of actions performed to reduce duplication, which is typically understood as the presence of the same ("copied-and-pasted") blocks of code or very similar blocks of code in the codebase. I didn't suggest any exact strategy of de-duplication in this specific case; it's typically easier to spot the duplication than to solve it. 🙂 |
@nkdengineer What you suggest in Option 2 (extending Have you ensured there is no specific reason why the code wasn't phrased this way? Are there any spots where we might want the "old" |
There is a lot of logic that we use |
This logic was introduced in #28991 where we want to ensure the order of display names matches that of avatars in welcome text, but only in report header and LHN. We no longer used multiple avatars for group chats so I think it's safe to move the |
Thanks everyone for their input! I approve the proposal by @gijoe0295 The element that shifted my decision towards their proposal is the investigation of the reason why the code is as it is, which is very important information when changing something. C+ reviewed 🎀 👀 🎀 |
Triggered auto assignment to @srikarparsi, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@gijoe0295 While this is not related, it would be great if you added pronouns and a first name to your GitHub account; it can help refer to a person. |
@cubuspl42 I see that the selected proposal will lead to regression with a thread in group report. Can you help check again. Also, my proposal does not encountered that regression |
Do you mean what you described here...
...? I thought that this is another problem which also happens on |
@cubuspl42 No. I mean this case, you can see the below screen recording. Screen.Recording.2024-04-03.at.19.45.36.mov |
Oh ok, yes sorry I misunderstood you. I think a good best practice would be to update the proposal so there is clarity about what we decided to do. Less confusion later for future reference. Thanks for your understanding 🙇 |
PR is still in review here 👍 |
Reviewed and merged 👍 |
@cubuspl42 @CortneyOfstad @marcaaron @gijoe0295 this issue is now 4 weeks old, please consider:
Thanks! |
Payment Summary
Waiting for @cubuspl42 to accept the proposal in Upwork so they can be paid 👍 |
I accepted 👍 Just for cross-reference, this wasn't processed in #41121 (which I didn't notice) |
@CortneyOfstad @marcaaron Please help check our decision here |
@CortneyOfstad Oh yes, @cubuspl42, @nkdengineer and me were supposed to be paid $330 each. Could you please create a refund request? |
Sorry about that! @gijoe0295 I requested a refund for $170, so you should see that in Upwork now 👍 @cubuspl42 — unfortunately Upwork would not let me modify the original proposal, so I had to send you a new proposal. Please let me know once you accept and I can get that paid ASAP. @nkdengineer — I sent you a proposal in Upwork, so please let me know once you accept and I'll get that paid ASAP. Thank you! |
@cubuspl42 and @nkdengineer please let me know once you accept the proposals above ^^^ Thanks! @gijoe0295 — thanks for the refund on the overpayment and sorry about that again! |
@CortneyOfstad I accepted the offer, appreciate it 🙏 |
Payment made! @cubuspl42 waiting for you to accept the payment proposal — thanks! |
Bump @cubuspl42 ^^^ |
Bump @cubuspl42 ^^^ |
This comment was marked as resolved.
This comment was marked as resolved.
I'm sorry! I wasn't active on GitHub or Upwork in the recent days. I accepted the offer. |
No worries and payment made! Payment summary below! Payment Summary@cubuspl42 — paid $330 via Upwork Closing! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.58-4
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause -Internal Team
Action Performed:
Expected Result:
Share code subtitle will include the group creator, as group creator is shown in every part of the group chat/
Actual Result:
Share code subtitle does not include the group creator
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6432388_1711779508540.20240330_141620.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: