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-05-29] in workspace chat, workspace details are missing in header #19123

Closed
1 of 6 tasks
kavimuru opened this issue May 17, 2023 · 26 comments
Closed
1 of 6 tasks
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

Comments

@kavimuru
Copy link

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:

  1. Action Performed:
  2. go to Settings > Workspaces
  3. create new workspace
  4. close the modal
  5. click on workspace chat in LHN
  6. check the header

Expected Result:

should show workspace name in header

Actual Result:

details are missing in header

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.14.4
Reproducible in staging?: Y
Reproducible in production?: N
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
Screenshot 2023-05-16 at 12 58 46 PM

Screen.Recording.2023-05-16.at.12.58.21.PM.mov
Recording.633.mp4

Expensify/Expensify Issue URL:
Issue reported by: @gadhiyamanan
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1684222206427449

View all open jobs on GitHub

@kavimuru kavimuru added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels May 17, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 17, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented May 17, 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

@OSBotify
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@melvin-bot
Copy link

melvin-bot bot commented May 17, 2023

Triggered auto assignment to @luacmartins (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@luacmartins
Copy link
Contributor

luacmartins commented May 17, 2023

Not able to reproduce this in staging not production

Staging:

Screen.Recording.2023-05-17.at.9.19.28.AM.mov

Production:

Screen.Recording.2023-05-17.at.9.20.49.AM.mov

@luacmartins luacmartins added Needs Reproduction Reproducible steps needed Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels May 17, 2023
@hungvu193
Copy link
Contributor

@luacmartins I can reproduce this on latest main

@hungvu193
Copy link
Contributor

hungvu193 commented May 17, 2023

@luacmartins The problem came from this line in headerview:

    const reportHeaderData = (isTaskReport || !isThread) && !_.isEmpty(props.parentReport) ? props.parentReport : props.report;

it should be:

(isTaskReport || !isThread ) && !_.isEmpty(props.parentReport) && !isPolicyExpenseChat ? props.parentReport : props.report;
Screen Shot 2023-05-17 at 23 13 02

@hungvu193
Copy link
Contributor

hungvu193 commented May 17, 2023

Proposal

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

in workspace chat, workspace details are missing in header

What is the root cause of that problem?

The problem came from this line:

const reportHeaderData = (isTaskReport || !isThread) && !_.isEmpty(props.parentReport) ? props.parentReport : props.report;

Let take a look at the prop of workspace, I posted above. The parentReport isn't empty, so this condition return true and reportHeaderData will be props.parentReport which is an object of report key, because of that ReportUtils.getReportName(reportHeaderData); will return empty since getPolicyExpenseChatName couldn't get information from it.

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

The condition here should be:

const reportHeaderData = (isTaskReport || !isThread) && !_.isEmpty(props.parentReport) && !isPolicyExpenseChat ? props.parentReport : props.report;props.report;

We should check the condition if this is Policy Expense Chat then we should use props.report instead of props.parentReport

What alternative solutions did you explore? (Optional)

None

@luacmartins luacmartins mentioned this issue May 17, 2023
57 tasks
@melvin-bot melvin-bot bot added the Reviewing Has a PR in review label May 17, 2023
@luacmartins luacmartins added DeployBlockerCash This issue or pull request should block deployment and removed Needs Reproduction Reproducible steps needed labels May 17, 2023
@luacmartins
Copy link
Contributor

I could reproduce and this is indeed a blocker

@github-actions github-actions bot added Hourly KSv2 and removed Daily KSv2 labels May 17, 2023
@OSBotify
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@dukenv0307
Copy link
Contributor

Proposal

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

in workspace chat and new chat, header are missing

What is the root cause of that problem?

This PR caused this bug
in here

const reportHeaderData = (isTaskReport || !isThread) && !_.isEmpty(props.parentReport) ? props.parentReport : props.report;

We are having the wrong condition (isTaskReport || !isThread)

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

We should update reportHeaderData like this

    const reportHeaderData = isTaskReport && !_.isEmpty(props.parentReport) ? props.parentReport : props.report;

What alternative solutions did you explore? (Optional)

@melvin-bot melvin-bot bot added the Awaiting Payment Auto-added when associated PR is deployed to production label May 18, 2023
@melvin-bot melvin-bot bot changed the title in workspace chat, workspace details are missing in header [HOLD for payment 2023-05-25] in workspace chat, workspace details are missing in header May 18, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label May 18, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 18, 2023

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot
Copy link

melvin-bot bot commented May 18, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.15-12 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 2023-05-25. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot

This comment was marked as duplicate.

@chiragsalian
Copy link
Contributor

PR was CP-d and its on production too so this is not a deploy blocker. Removing label.

@chiragsalian chiragsalian removed the DeployBlockerCash This issue or pull request should block deployment label May 22, 2023
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels May 22, 2023
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-05-25] in workspace chat, workspace details are missing in header [HOLD for payment 2023-05-29] [HOLD for payment 2023-05-25] in workspace chat, workspace details are missing in header May 22, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 22, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.16-7 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 2023-05-29. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented May 22, 2023

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@luacmartins] The PR that introduced the bug has been identified. Link to the PR: Update task detailed view  #18676
  • [@luacmartins] 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: Update task detailed view  #18676 (comment)
  • [@luacmartins] 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
  • [@luacmartins] Determine if we should create a regression test for this bug. No need, this would be pretty obvious to spot during regression tests.
  • [@luacmartins] 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.
  • [@mallenexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@luacmartins
Copy link
Contributor

@mallenexpensify checklist complete. We just need to process payment now.

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels May 24, 2023
@luacmartins
Copy link
Contributor

Lol why are there 2 payment dates here? I think it should be the 2nd one since the fix was deployed to prod 4 days ago. Please correct me if I'm wrong

@melvin-bot melvin-bot bot removed the Overdue label May 26, 2023
@luacmartins luacmartins changed the title [HOLD for payment 2023-05-29] [HOLD for payment 2023-05-25] in workspace chat, workspace details are missing in header [HOLD for payment 2023-05-29] in workspace chat, workspace details are missing in header May 26, 2023
@gadhiyamanan
Copy link
Contributor

I think it's on production 9 days ago as per #19127 (comment)
cc :@luacmartins @mallenexpensify

@melvin-bot melvin-bot bot added the Overdue label May 29, 2023
@luacmartins
Copy link
Contributor

@gadhiyamanan thanks! In Any case, payment is due today.

@melvin-bot melvin-bot bot removed the Overdue label May 29, 2023
@mallenexpensify
Copy link
Contributor

@gadhiyamanan can you please accept the job and reply here once you have?
https://www.upwork.com/jobs/~01b912fd94ec4da0e0

Only payment due is the reporting bonus, right? Comment if not!

@gadhiyamanan
Copy link
Contributor

@mallenexpensify accepted, thanks!

@mallenexpensify
Copy link
Contributor

@gadhiyamanan paid! Closing

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
Projects
None yet
Development

No branches or pull requests

8 participants