Skip to content
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 2023-07-14] [$1000] The workspace logo disappears if changed the workspace picture on combined user/workspace chat #19905

Closed
1 of 6 tasks
kavimuru opened this issue May 31, 2023 · 59 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@kavimuru
Copy link

kavimuru commented May 31, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Go to dev on web chrome
  2. Create a new workspace and invite a user
  3. Notice that on LHN, a combined workspace and user chat is created with both the user picture and the workspace picture
  4. Now try to change the workspace picture and notice that as soon as you change the workspace picture, the logo of the workspace that was present below in the LHN chat disappears. And if you remove the workspace picture, it reappears again
  5. Thus, it should have shown the updated picture on the LHN , instead of making it disappear

Expected Result:

The workspace logo should have been updated to the picture set on the LHN in the combined user/workspace chat instead of making it go disappear

Actual Result:

The workspace logo disappears if changed the workspace picture on combined user/workspace chat

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.21-2
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

chat-2023-05-29_11.26.13.mp4
Recording.825.mp4

Expensify/Expensify Issue URL:
Issue reported by: @priya-zha
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1685339400060349

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~018e5f5da305633aff
  • Upwork Job ID: 1669420216317644800
  • Last Price Increase: 2023-06-15
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels May 31, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 31, 2023

Triggered auto assignment to @strepanier03 (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot
Copy link

melvin-bot bot commented May 31, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@allroundexperts
Copy link
Contributor

allroundexperts commented May 31, 2023

Proposal

Please re-state the problem that we are trying to solve in this issue.

Workspace icon does not update in the workspace chat

What is the root cause of that problem?

The root cause of the issue is that we're not re-rendering the component once the avatar property gets updated in the Policy object in the ReportActionItemCreated component.

What changes do you think we should make in order to solve the problem?

Firstly, we need to pass policyID prop into ReportActionItemCreated component here.

Next, we'll need to load the policy into the ReportActionItemCreated component as a prop. We need to add following here.

 policy: {
            key: ({policyID}) => `${ONYXKEYS.COLLECTION.POLICY}${policyID}`,
        },

This will re-render the component and call const icons = ReportUtils.getIcons(props.report, props.personalDetails) function whenever the attached policy changes ie any avatar is added / removed from it.

We can optimise this approach further by just re-rendering when the avatar property of the attached policy changes.

What alternative solutions did you explore? (Optional)

None

@strepanier03
Copy link
Contributor

This should be fixed with #19750 so I'm going to put it on hold until that is merged so we can test again to be sure.

@strepanier03 strepanier03 changed the title The workspace logo disappears if changed the workspace picture on combined user/workspace chat [HOLD] The workspace logo disappears if changed the workspace picture on combined user/workspace chat Jun 1, 2023
@strepanier03 strepanier03 added Weekly KSv2 and removed Daily KSv2 labels Jun 1, 2023
@melvin-bot melvin-bot bot added the Overdue label Jun 12, 2023
@strepanier03
Copy link
Contributor

strepanier03 commented Jun 13, 2023

PR has been deployed to Prod so I'm going to ask for someone to test again and then I'll action as necessary.

@melvin-bot melvin-bot bot removed the Overdue label Jun 13, 2023
@strepanier03
Copy link
Contributor

I don't have a dev environment so I asked here if someone could test for me.

@strepanier03
Copy link
Contributor

Switching to Daily for now so I can remember to revisit this tomorrow.

@strepanier03 strepanier03 added Daily KSv2 and removed Weekly KSv2 labels Jun 13, 2023
@priya-zha
Copy link

#19750 was fixed, but this issue still exists. I just tested it today again.

error-2023-06-14_17.25.10.online-video-cutter.com.mp4

@strepanier03
Copy link
Contributor

This is still happening on DEV so I'm going to remove the hold and push through the BZ process so we can get a re-evaluation of it.

@strepanier03 strepanier03 changed the title [HOLD] The workspace logo disappears if changed the workspace picture on combined user/workspace chat The workspace logo disappears if changed the workspace picture on combined user/workspace chat Jun 15, 2023
@strepanier03 strepanier03 added the External Added to denote the issue can be worked on by a contributor label Jun 15, 2023
@melvin-bot melvin-bot bot changed the title The workspace logo disappears if changed the workspace picture on combined user/workspace chat [$1000] The workspace logo disappears if changed the workspace picture on combined user/workspace chat Jun 15, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 15, 2023

Job added to Upwork: https://www.upwork.com/jobs/~018e5f5da305633aff

@melvin-bot
Copy link

melvin-bot bot commented Jun 15, 2023

Triggered auto assignment to @tjferriss (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@melvin-bot
Copy link

melvin-bot bot commented Jun 15, 2023

Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane (External)

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 15, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 15, 2023

Triggered auto assignment to @NikkiWines (External), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@tjferriss tjferriss added Daily KSv2 and removed Weekly KSv2 labels Jul 11, 2023
@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Daily KSv2 labels Jul 13, 2023
@NikkiWines
Copy link
Contributor

@rushatgabhane friendly bump here 🙇

@melvin-bot melvin-bot bot removed the Overdue label Jul 17, 2023
@tjferriss
Copy link
Contributor

Payments sent to @developerdavi and @priya-zha

@tjferriss
Copy link
Contributor

@rushatgabhane can you accept the offer in Upworks?

@melvin-bot melvin-bot bot added the Overdue label Jul 21, 2023
@rushatgabhane
Copy link
Member

rushatgabhane commented Jul 23, 2023

  1. The PR that introduced the bug has been identified. Link to the PR: UI MoneyRequestHeader Polish #18775

  2. The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment: https://github.com/Expensify/App/pull/18775/files#r1271469115

  3. A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: N.A.

  4. Determine if we should create a regression test for this bug. No

  5. If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again N.A.

@melvin-bot melvin-bot bot removed the Overdue label Jul 23, 2023
@rushatgabhane
Copy link
Member

rushatgabhane commented Jul 23, 2023

Hi @tjferriss thanks for the offer on upwork but I'll be requesting payment on new dot.
Anu will handle new dot payments for now.

@rushatgabhane
Copy link
Member

Made a manual request on new dot https://staging.new.expensify.com/r/4385861037826843

@melvin-bot melvin-bot bot added the Overdue label Jul 25, 2023
@tjferriss
Copy link
Contributor

Easy, Melvin. We're just wrapping up payment.

@melvin-bot melvin-bot bot removed the Overdue label Jul 25, 2023
@parasharrajat
Copy link
Member

parasharrajat commented Jul 26, 2023

Found a regression from this issue's PR #22467 (comment). I need some assistance determine the correct solution. https://github.com/Expensify/App/pull/21657/files#r1275373499

@JmillsExpensify
Copy link

@tjferriss Can you please summarize the appropriate individual payments for all parties involved in this issue? This is holding up @rushatgabhane's NewDot payments. More information on this compliance process in Slack. This may also be affected based on the possible regression above.

@tjferriss
Copy link
Contributor

The payment comment has been updated: #19905 (comment)

@parasharrajat
Copy link
Member

@rushatgabhane Please respond to #19905 (comment) when you have time. Thanks.

@JmillsExpensify
Copy link

Reviewed details for @rushatgabhane. This is accurate based on summary from Business Reviewer and approved for payment in NewDot.

@melvin-bot melvin-bot bot added the Overdue label Jul 31, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 1, 2023

@tjferriss, @NikkiWines, @rushatgabhane, @developerdavi Eep! 4 days overdue now. Issues have feelings too...

@tjferriss
Copy link
Contributor

@rushatgabhane bumping this comment once more #19905 (comment)

@melvin-bot melvin-bot bot removed the Overdue label Aug 1, 2023
@rushatgabhane
Copy link
Member

rushatgabhane commented Aug 1, 2023

@tjferriss i had responded to the in the PR https://github.com/Expensify/App/pull/21657/files#r1277398010

sorry for no updates on issue. we can close this i think

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests