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

[$500] [HOLD for payment 2024-03-19] Do not show "member not found" when loading member list #37605

Closed
luacmartins opened this issue Mar 1, 2024 · 15 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

Comments

@luacmartins
Copy link
Contributor

luacmartins commented Mar 1, 2024

Coming from this comment, we should not show "member not found" while loading the member list

cc @burczu

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01d5126ce1290525b2
  • Upwork Job ID: 1770042366576177152
  • Last Price Increase: 2024-03-19
@luacmartins luacmartins added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Mar 1, 2024
@luacmartins luacmartins self-assigned this Mar 1, 2024
Copy link

melvin-bot bot commented Mar 1, 2024

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

@aimane-chnaif
Copy link
Contributor

Happy to review this as C+

@rayane-djouah
Copy link
Contributor

Proposal

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

we are showing "member not found" while loading the member list.

What is the root cause of that problem?

Here:

const getHeaderMessage = () => {
if (isOfflineAndNoMemberDataAvailable) {
return translate('workspace.common.mustBeOnlineToViewMembers');
}
return !data.length ? translate('workspace.common.memberNotFound') : '';
};

when data is empty we show the "member not found" message, but we should not show it when members are still loading

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

we should use the same condition used here:

showLoadingPlaceholder={!isOfflineAndNoMemberDataAvailable && (!OptionsListUtils.isPersonalDetailsReady(personalDetails) || isEmptyObject(policyMembers))}

in getHeaderMessage function, like this:

    const getHeaderMessage = () => {
        if (isOfflineAndNoMemberDataAvailable) {
            return translate('workspace.common.mustBeOnlineToViewMembers');
        }
        return (!data.length && (!OptionsListUtils.isPersonalDetailsReady(personalDetails) || isEmptyObject(policyMembers))) ? translate('workspace.common.memberNotFound') : '';
    };

@aimane-chnaif
Copy link
Contributor

aimane-chnaif commented Mar 1, 2024

I am not sure this will be be external.
@burczu may take this.

@burczu
Copy link
Contributor

burczu commented Mar 1, 2024

Hey I'm Bartek from Callstack - could you please assign this issue to me?

@luacmartins luacmartins added Weekly KSv2 and removed Daily KSv2 Weekly KSv2 labels Mar 1, 2024
@luacmartins luacmartins added the Daily KSv2 label Mar 1, 2024
@melvin-bot melvin-bot bot added the Overdue label Mar 4, 2024
@burczu
Copy link
Contributor

burczu commented Mar 4, 2024

not overdue - I'll work on this today

@melvin-bot melvin-bot bot removed the Overdue label Mar 4, 2024
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Mar 5, 2024
@burczu
Copy link
Contributor

burczu commented Mar 5, 2024

The PR is ready for review: #37731

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Mar 12, 2024
@melvin-bot melvin-bot bot added the Awaiting Payment Auto-added when associated PR is deployed to production label Mar 12, 2024
@melvin-bot melvin-bot bot changed the title Do not show "member not found" when loading member list [HOLD for payment 2024-03-19] Do not show "member not found" when loading member list Mar 12, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Mar 12, 2024
Copy link

melvin-bot bot commented Mar 12, 2024

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

Copy link

melvin-bot bot commented Mar 12, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.50-5 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 2024-03-19. 🎊

For reference, here are some details about the assignees on this issue:

  • @burczu does not require payment (Contractor)
  • @aimane-chnaif requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented Mar 12, 2024

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:

  • [@aimane-chnaif] The PR that introduced the bug has been identified. Link to the PR:
  • [@aimane-chnaif] 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:
  • [@aimane-chnaif] 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:
  • [@aimane-chnaif] Determine if we should create a regression test for this bug.
  • [@aimane-chnaif] 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.
  • [@zanyrenney] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Mar 18, 2024
@zanyrenney zanyrenney added the External Added to denote the issue can be worked on by a contributor label Mar 19, 2024
Copy link

melvin-bot bot commented Mar 19, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01d5126ce1290525b2

@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-03-19] Do not show "member not found" when loading member list [$500] [HOLD for payment 2024-03-19] Do not show "member not found" when loading member list Mar 19, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 19, 2024
@zanyrenney zanyrenney 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 Mar 19, 2024
Copy link

melvin-bot bot commented Mar 19, 2024

Current assignee @aimane-chnaif is eligible for the External assigner, not assigning anyone new.

@zanyrenney
Copy link
Contributor

@aimane-chnaif invited you to job on UW - https://www.upwork.com/jobs/~01d5126ce1290525b2 pls accept for payout.

@zanyrenney
Copy link
Contributor

accepted proposal.

@zanyrenney
Copy link
Contributor

payment summary:
@burczu does not require payment (Contractor)
@aimane-chnaif requires payment (Needs manual offer from BZ) - paid $500 on Upwork.

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

No branches or pull requests

5 participants