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-08-01] [$1000] User was not shown on Invite members page after immediately inviting #22442

Closed
1 of 6 tasks
kavimuru opened this issue Jul 7, 2023 · 28 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 External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review

Comments

@kavimuru
Copy link

kavimuru commented Jul 7, 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 workspace invite member page -> Invite
  2. Type a new user whom you have not interacted yet
  3. Invite them
  4. Observe invite member page

Expected Result:

The invited user should immediately show up in the invite member page

Actual Result:

The invited user shows up after sometime

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.38-3
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

Screen.Recording.2023-07-08.at.12.15.02.AM.mov
Recording.1213.mp4

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

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0101aca3aeff5e6e57
  • Upwork Job ID: 1678399914954649600
  • Last Price Increase: 2023-07-10
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jul 7, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 7, 2023

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

@melvin-bot
Copy link

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

@samh-nl
Copy link
Contributor

samh-nl commented Jul 8, 2023

Proposal

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

Inviting users you have not interacted with to a workspace do not immediately show.

What is the root cause of that problem?

When inviting members, the ONYXKEYS.PERSONAL_DETAILS_LIST data is not optimistically set for users where no prior interaction has taken place.

const optimisticData = [
{
onyxMethod: Onyx.METHOD.MERGE,
key: membersListKey,
// Convert to object with each key containing {pendingAction: ‘add’}
value: _.object(accountIDs, Array(accountIDs.length).fill({pendingAction: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD})),
},
...membersChats.onyxOptimisticData,
];

This leads to the members not being rendered and an error being logged.

const details = props.personalDetails[accountID];
if (!details) {
Log.hmmm(`[WorkspaceMembersPage] no personal details found for policy member with accountID: ${accountID}`);
return;
}

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

In Policy.addMembersToWorkspace(), the optimistically set data must include ONYXKEYS.PERSONAL_DETAILS_LIST information for users for whom it does not exist.

What alternative solutions did you explore? (Optional)

N/A

@melvin-bot melvin-bot bot added the Overdue label Jul 10, 2023
@maddylewis maddylewis added the External Added to denote the issue can be worked on by a contributor label Jul 10, 2023
@melvin-bot melvin-bot bot changed the title User was not shown on Invite members page after immediately inviting [$1000] User was not shown on Invite members page after immediately inviting Jul 10, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 10, 2023

Job added to Upwork: https://www.upwork.com/jobs/~0101aca3aeff5e6e57

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

melvin-bot bot commented Jul 10, 2023

Current assignee @maddylewis is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Jul 10, 2023

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

@maddylewis
Copy link
Contributor

C+ assigned to review existing proposal

@s77rt
Copy link
Contributor

s77rt commented Jul 10, 2023

@samh-nl Thanks for the proposal. Your RCA is correct. The solution makes sense.

🎀 👀 🎀 C+ reviewed

@melvin-bot
Copy link

melvin-bot bot commented Jul 10, 2023

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

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 11, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 11, 2023

📣 @s77rt 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Upwork job

@melvin-bot
Copy link

melvin-bot bot commented Jul 11, 2023

📣 @samh-nl 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot
Copy link

melvin-bot bot commented Jul 11, 2023

📣 @abdulrahuman5196 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app!

Upwork job

@melvin-bot melvin-bot bot added the Overdue label Jul 12, 2023
@yuwenmemon
Copy link
Contributor

@samh-nl let us know when you have a PR!

@melvin-bot melvin-bot bot removed the Overdue label Jul 13, 2023
@samh-nl
Copy link
Contributor

samh-nl commented Jul 14, 2023

Just an update - PR is almost done. There was an issue leading to duplicate members showing when optimistically adding them (with the other user being provided by the backend). My solution is to remove the optimistically added user upon success.

@maddylewis
Copy link
Contributor

@yuwenmemon is reviewing here - #22904 (comment)

@melvin-bot melvin-bot bot removed the Overdue label Jul 19, 2023
@s77rt
Copy link
Contributor

s77rt commented Jul 19, 2023

PR is merged

@maddylewis

This comment was marked as duplicate.

@melvin-bot
Copy link

melvin-bot bot commented Jul 21, 2023

@yuwenmemon @s77rt @maddylewis @samh-nl this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@s77rt
Copy link
Contributor

s77rt commented Jul 22, 2023

PR is merged already, Melvin

@melvin-bot melvin-bot bot added the Overdue label Jul 24, 2023
@maddylewis
Copy link
Contributor

PR is merged / awaiting regression period before issuing payment 👍

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Overdue Daily KSv2 labels Jul 24, 2023
@melvin-bot melvin-bot bot changed the title [$1000] User was not shown on Invite members page after immediately inviting [HOLD for payment 2023-08-01] [$1000] User was not shown on Invite members page after immediately inviting Jul 25, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 25, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.44-2 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-08-01. 🎊

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

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

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 Jul 25, 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:

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

@s77rt
Copy link
Contributor

s77rt commented Jul 25, 2023

@maddylewis maddylewis added Daily KSv2 and removed Weekly KSv2 labels Jul 29, 2023
@melvin-bot melvin-bot bot added the Overdue label Jul 29, 2023
@maddylewis
Copy link
Contributor

moving to daily since payments are due early next week

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 Daily KSv2 and removed Overdue Daily KSv2 Weekly KSv2 labels Jul 29, 2023
@maddylewis
Copy link
Contributor

maddylewis commented Aug 2, 2023

Payments:


  • Contributor hired July 10
  • PR merged July 19

@maddylewis
Copy link
Contributor

everyone is 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 External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

5 participants