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 2024-01-11] [$500] Member - Gmail account cannot invite members to WS #32682

Closed
6 tasks done
kbecciv opened this issue Dec 7, 2023 · 41 comments
Closed
6 tasks done
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

@kbecciv
Copy link

kbecciv commented Dec 7, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 1.4.9.1
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:

Prerequisites: Use [email protected]
account or other gmail account with existing WS

  1. Open New Expensify app
  2. Navigate to the settings of the existing WS
  3. Invite any member

Expected Result:

The Gmail account should be able to invite members to any WS that exist in your account

Actual Result:

Gmail account cannot invite users to existing WS

Workaround:

Unknown

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

Bug6304573_1701962022360.Recording__857.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01c3f67ec9f72b91ef
  • Upwork Job ID: 1732794719410888704
  • Last Price Increase: 2023-12-28
  • Automatic offers:
    • bernhardoj | Contributor | 28071914
@kbecciv kbecciv 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 Dec 7, 2023
@melvin-bot melvin-bot bot changed the title Member - Gmail account cannot invite members to WS [$500] Member - Gmail account cannot invite members to WS Dec 7, 2023
Copy link

melvin-bot bot commented Dec 7, 2023

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

Copy link

melvin-bot bot commented Dec 7, 2023

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

Copy link

melvin-bot bot commented Dec 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

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

melvin-bot bot commented Dec 7, 2023

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

@Pujan92
Copy link
Contributor

Pujan92 commented Dec 7, 2023

Seems a backend issue where for Focus priority mode, workspace announce reports are not fetched in OpenApp api report_ response. It is general and not specifically related to gmail account.

@ikevin127
Copy link
Contributor

I cannot reproduce it on my end but based on the console error from the video looks like for whoever can reproduce it this.props.route.params.policyID seems to be undefined.

Policy.addMembersToWorkspace(this.props.invitedEmailsToAccountIDsDraft, this.state.welcomeNote, this.props.route.params.policyID);

I was able to reproduce it by setting this.props.route.params.policyID to undefined from within the codebase.

@parasharrajat
Copy link
Member

@puneetlath Let's take this internal and assign an Engineer. Thanks.

@parasharrajat parasharrajat removed their assignment Dec 8, 2023
@parasharrajat
Copy link
Member

Let me know if you need C+ help here. For now, I unassigned as I think you won't.

@puneetlath
Copy link
Contributor

I was able to reproduce it by:

  1. Logging into an account
  2. Creating a workspace
  3. Logging out and back in
  4. Attempting to invite someone

@melvin-bot melvin-bot bot added the Overdue label Dec 11, 2023
@puneetlath
Copy link
Contributor

Adding to wave8.

Copy link

melvin-bot bot commented Dec 14, 2023

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

@melvin-bot melvin-bot bot added the Overdue label Dec 14, 2023
Copy link

melvin-bot bot commented Dec 18, 2023

Eep! 4 days overdue now. Issues have feelings too...

1 similar comment
Copy link

melvin-bot bot commented Dec 18, 2023

Eep! 4 days overdue now. Issues have feelings too...

@bernhardoj
Copy link
Contributor

Copying my proposal from #33185.

They have different console errors, but the same issue, and because it's marked as a dupe, I am posting my proposal here.

Proposal

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

The app throws an error if we change the priority mode to #focus, re-login, and trying to invite or remove a member from a workspace.

What is the root cause of that problem?

The error comes from this LOC where the app fails to find the announce report of the workspace.

const remainUsers = _.difference(announceReport.participantAccountIDs, accountIDs);

It's because when we use a #focus mode, it will only load some required reports that will be shown on the LHN. When we update it back to Most recent, the app will trigger OpenApp request which will then fetch all report.

Onyx.connect({
key: ONYXKEYS.NVP_PRIORITY_MODE,
callback: (nextPriorityMode) => {
// When someone switches their priority mode we need to fetch all their chats because only #focus mode works with a subset of a user's chats. This is only possible via the OpenApp command.
if (nextPriorityMode === CONST.PRIORITY_MODE.DEFAULT && priorityMode === CONST.PRIORITY_MODE.GSD) {
// eslint-disable-next-line @typescript-eslint/no-use-before-define
openApp();
}
priorityMode = nextPriorityMode;
},

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

If we can't find the announce report, that means nothing to update optimistically, so we can just return early.

function removeOptimisticAnnounceRoomMembers(policyID, accountIDs) {
const announceReport = ReportUtils.getRoom(CONST.REPORT.CHAT_TYPE.POLICY_ANNOUNCE, policyID);
const announceRoomMembers = {
onyxOptimisticData: [],
onyxFailureData: [],
};

if (!announceReport) return announceRoomMembers

(we need to apply the same fix to buildAnnounceRoomMembersOnyxData)

Copy link

melvin-bot bot commented Dec 20, 2023

Still overdue 6 days?! Let's take care of this!

Copy link

melvin-bot bot commented Dec 21, 2023

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!

@deetergp
Copy link
Contributor

@bernhardoj's proposal sounds good. Let's go with it!

Copy link

melvin-bot bot commented Dec 28, 2023

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

Offer link
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 melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Dec 29, 2023
@bernhardoj
Copy link
Contributor

PR is ready

cc: @parasharrajat

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jan 4, 2024
@melvin-bot melvin-bot bot changed the title [$500] Member - Gmail account cannot invite members to WS [HOLD for payment 2024-01-11] [$500] Member - Gmail account cannot invite members to WS Jan 4, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jan 4, 2024
Copy link

melvin-bot bot commented Jan 4, 2024

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

Copy link

melvin-bot bot commented Jan 4, 2024

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

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:

Copy link

melvin-bot bot commented Jan 4, 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:

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

@puneetlath puneetlath self-assigned this Jan 4, 2024
@puneetlath
Copy link
Contributor

@parasharrajat friendly reminder about the checklist so that we can pay in a couple of days.

@parasharrajat
Copy link
Member

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:

Regression Test Steps

  1. Go to Preferences > Priority Mode and change it to "focus"
  2. Create a workspace if you don't have any.
  3. Make sure the workspace #announce room isn't unread.
  4. Sign out and sign in back.
  5. Open the workspace member page
  6. Add any new member and verify it works.
  7. Remove any member and verify it works.

Do you agree 👍 or 👎 ?

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jan 11, 2024

This comment was marked as duplicate.

@puneetlath
Copy link
Contributor

Payment summary:
$500 - @bernhardoj - paid via upwork
$500 - @parasharrajat - to be paid via NewDot (please request)

Thanks everyone!

@parasharrajat
Copy link
Member

Payment requested as per #32682 (comment)

@JmillsExpensify
Copy link

$500 approved for @parasharrajat

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
No open projects
Development

No branches or pull requests

10 participants