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 #35539][#VIP-VSB] Thread in #admin shows Hidden with avatar placeholder in LHN for workspace member #35132

Closed
1 of 6 tasks
kavimuru opened this issue Jan 25, 2024 · 36 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Hot Pick Ready for an engineer to pick up and run with Internal Requires API changes or must be handled by Expensify staff Weekly KSv2

Comments

@kavimuru
Copy link

kavimuru commented Jan 25, 2024

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


WAVE/PROJECT SUGGESTION : #vip-vsb

Version Number: v1.4.31-7
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
Expensify/Expensify Issue URL:
Issue reported by: Applause internal team
Slack conversation:

Action Performed:

Precondition:

  • User A is an admin of Workspace A.
  • User B is a member of Workspace A.
  1. [User B] Create a room under Workspace A.
  2. [User B] Invite User C to the room.
  3. [User A] Go to #admin room of Workspace A.
  4. [User A] Reply in thread to the system message "User B invited User C to room".
    5.[User B] Note the thread in LHN.

Expected Result:

The thread in LHN will appear with thread title and complete avatar for User B.

Actual Result:

The thread in LHN appears with "Hidden" as thread title and avatar placeholder for User B. The thread in LHN only shows the title and avatar after user opens the thread. On production, it is the same behavior except that it shows "Deleted message".

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: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6354278_1706164090200.20240125_130819.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01403dd68ad2cbea53
  • Upwork Job ID: 1750411743673921536
  • Last Price Increase: 2024-02-01
@kavimuru kavimuru added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jan 25, 2024
@melvin-bot melvin-bot bot changed the title Thread in #admin shows Hidden with avatar placeholder in LHN for workspace member [$500] Thread in #admin shows Hidden with avatar placeholder in LHN for workspace member Jan 25, 2024
Copy link

melvin-bot bot commented Jan 25, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01403dd68ad2cbea53

Copy link

melvin-bot bot commented Jan 25, 2024

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 25, 2024
Copy link

melvin-bot bot commented Jan 25, 2024

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

@Santhosh-Sellavel
Copy link
Collaborator

Santhosh-Sellavel commented Jan 27, 2024

So far no proposals.
I'm unavailable next week, Please assign a new C+ Issue here if required, thanks!

cc: @CortneyOfstad

@melvin-bot melvin-bot bot added the Overdue label Jan 29, 2024
@CortneyOfstad
Copy link
Contributor

Sounds good @Santhosh-Sellavel — we should be good, but thanks for the heads up! 👍

@melvin-bot melvin-bot bot removed the Overdue label Jan 30, 2024
@nebiyuelias1
Copy link

nebiyuelias1 commented Feb 1, 2024

Proposal

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

The thread in the LHN shows the wrong title when replying to a system message.

What is the root cause of that problem?

The root cause of this problem is that the parent report action is not present in Onyx. This is because the backend is not sending the right data to the FE and there is missing data being expected by the FE. For example sake let's look at the following report:

{
    ...,
    "parentReportActionID": "1720570339863409425",
    "parentReportID": "7087334114008551",
    "participantAccountIDs": [
        16310555,
        16310556
    ],
    "policyID": "0807ACCC40A5A850",
    "policyName": "Nebiyuelias1+4's Workspace 6",
    "reportID": "3278851746634061",

}

This the report object for the thread message. The FE has the following logic to construct the title:
allReportActions?.[report.parentReportID]?.[report.parentReportActionID] ?? {};
But the pusher event that is received looks like the following(when step #4 is performed):

   {
            "key": "reportActions_3278851746634061",
            "onyxMethod": "merge",
            "shouldNotify": true,
            "value": {
              ...
              }
            }
          }

Basically, the reportActions_7087334114008551 doesn't exist in onyx until the report is opened and hence the FE is not able to get the parent report. As a result a default message is being shown.

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

I suggest we show a different title for the thread. This is because we don't have the correct data. I'm suggesting to modify the logic added by this pr #34362.

What alternative solutions did you explore? (Optional)

An easier fix is to make sure BE sends the parent report action when the add comment (step #4 in the precondition steps) action is taken.

@melvin-bot melvin-bot bot added the Overdue label Feb 1, 2024
Copy link

melvin-bot bot commented Feb 1, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@CortneyOfstad
Copy link
Contributor

@Santhosh-Sellavel thoughts on the proposal above? Thanks!

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Feb 1, 2024
@CortneyOfstad
Copy link
Contributor

@Santhosh-Sellavel does the proposal above work, or does it need feedback? Thanks!

@melvin-bot melvin-bot bot removed the Overdue label Feb 5, 2024
@Santhosh-Sellavel
Copy link
Collaborator

Will Review today

Copy link

melvin-bot bot commented Feb 5, 2024

@CortneyOfstad, @Santhosh-Sellavel Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@Santhosh-Sellavel
Copy link
Collaborator

@CortneyOfstad This seems like backend issue can you add internal

@Santhosh-Sellavel
Copy link
Collaborator

I suggest we show a different title for the thread. This is because we don't have the correct data. I'm suggesting to modify the logic added by this pr #34362.

Can you elaborate on that @nebiyuelias1

@nebiyuelias1
Copy link

I suggest we show a different title for the thread. This is because we don't have the correct data. I'm suggesting to modify the logic added by this pr #34362.

Can you elaborate on that @nebiyuelias1

Well, right now we're constructing a title for the thread that says "User has been invited". I'm suggesting we show a different title for the thread with the current situation. But of course as you've said if the BE sends correct data we don't have to do anything.

@Santhosh-Sellavel
Copy link
Collaborator

@CortneyOfstad This seems like backend issue can you add internal

bump @CortneyOfstad

@CortneyOfstad CortneyOfstad removed External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors labels Feb 7, 2024
@CortneyOfstad CortneyOfstad added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 labels Feb 29, 2024
Copy link

melvin-bot bot commented Feb 29, 2024

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Feb 29, 2024
@CortneyOfstad CortneyOfstad added Weekly KSv2 and removed Daily KSv2 labels Feb 29, 2024
@CortneyOfstad CortneyOfstad self-assigned this Feb 29, 2024
@CortneyOfstad
Copy link
Contributor

Hey @mallenexpensify! I am heading OoO and will be back March 11th, so reassigned to have someone keep this moving until I am back. At this stage, we're on-hold for #35539. It shows that Puneet has requested a query in relation to that other GH. Thanks!

@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

@mallenexpensify
Copy link
Contributor

No action needed here so far, we're still on hold pending

The PR for that is actively being worked on by Puneet, he commented 13 mins ago

@CortneyOfstad
Copy link
Contributor

Back from OoO — thanks for holding down the fort @mallenexpensify!

No action needed, as still waiting for the on-hold issue 👍

@CortneyOfstad CortneyOfstad changed the title [ON HOLD for #35539][#Wave-6] Thread in #admin shows Hidden with avatar placeholder in LHN for workspace member [ON HOLD for #35539][#VIP-VSB] Thread in #admin shows Hidden with avatar placeholder in LHN for workspace member Mar 15, 2024
@melvin-bot melvin-bot bot added the Overdue label Mar 19, 2024
@mallenexpensify mallenexpensify removed their assignment Mar 20, 2024
@melvin-bot melvin-bot bot removed the Overdue label Mar 20, 2024
@mallenexpensify mallenexpensify self-assigned this Mar 20, 2024
@mallenexpensify
Copy link
Contributor

@mallenexpensify mallenexpensify removed their assignment Mar 20, 2024
@mvtglobally
Copy link

Issue not reproducible during KI retests. (Second week)

@mallenexpensify mallenexpensify changed the title [ON HOLD for #35539][#VIP-VSB] Thread in #admin shows Hidden with avatar placeholder in LHN for workspace member [HOLD #35539][#VIP-VSB] Thread in #admin shows Hidden with avatar placeholder in LHN for workspace member Mar 25, 2024
@mvtglobally
Copy link

Issue not reproducible during KI retests. (Third week)

@melvin-bot melvin-bot bot added the Overdue label Mar 28, 2024
@CortneyOfstad
Copy link
Contributor

I'm unable to recreate this either, so going to close 👍

Thanks @mvtglobally for continuing to test this!

@melvin-bot melvin-bot bot removed the Overdue label Mar 28, 2024
@github-project-automation github-project-automation bot moved this from LOW to CRITICAL in [#whatsnext] #vip-vsb Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Hot Pick Ready for an engineer to pick up and run with Internal Requires API changes or must be handled by Expensify staff Weekly KSv2
Projects
No open projects
Status: CRITICAL
Development

No branches or pull requests

6 participants