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-07-24] [$250] Accounting - Workspace admins aren't lised as a "Preferred exporter" #44150

Closed
1 of 6 tasks
lanitochka17 opened this issue Jun 21, 2024 · 41 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

Comments

@lanitochka17
Copy link

lanitochka17 commented Jun 21, 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!


Version Number: 1.4.86-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4653117&group_by=cases:section_id&group_id=309134&group_order=asc
Issue reported by: Applause - Internal Team

Action Performed:

  1. Navigate to https://staging.new.expensify.com/
  2. Log in with an expensifail account
  3. Create a workspace
  4. Enable Accounting
  5. Connect to Xero
  6. Add an expensifail member as an admin
  7. Navigate to Workspace settings - Accounting - Export - Preferred exporter
    repro only if i add admin after i connect to Xero. Not repro when i manually sync it

Expected Result:

Workspace admins should be listed

Actual Result:

Workspace admins aren't lised as a "Preferred exporter"
Reproducible only if add admin after connected to Xero. Not repro when manually sync it

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

Bug6519648_1718905209575.bandicam_2024-06-20_19-34-39-083.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01b398eb305ddcbb3e
  • Upwork Job ID: 1805402957868224386
  • Last Price Increase: 2024-07-02
Issue OwnerCurrent Issue Owner: @greg-schroeder
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jun 21, 2024
Copy link

melvin-bot bot commented Jun 21, 2024

Triggered auto assignment to @greg-schroeder (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@lanitochka17
Copy link
Author

@greg-schroeder FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@lanitochka17
Copy link
Author

We think that this bug might be related to #wave-collect - Release 2

@melvin-bot melvin-bot bot added the Overdue label Jun 24, 2024
Copy link

melvin-bot bot commented Jun 24, 2024

@greg-schroeder Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@greg-schroeder greg-schroeder moved this to Release 2: Summer 2024 (Aug) in [#whatsnext] #wave-collect Jun 25, 2024
@greg-schroeder greg-schroeder added the External Added to denote the issue can be worked on by a contributor label Jun 25, 2024
@melvin-bot melvin-bot bot changed the title Accounting - Workspace admins aren't lised as a "Preferred exporter" [$250] Accounting - Workspace admins aren't lised as a "Preferred exporter" Jun 25, 2024
Copy link

melvin-bot bot commented Jun 25, 2024

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

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

melvin-bot bot commented Jun 25, 2024

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

@melvin-bot melvin-bot bot removed the Overdue label Jun 25, 2024
@greg-schroeder
Copy link
Contributor

Sending through for proposals

@daledah
Copy link
Contributor

daledah commented Jun 25, 2024

Proposal

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

Workspace admins aren't lised as a "Preferred exporter"
Reproducible only if add admin after connected to Xero. Not repro when manually sync it

What is the root cause of that problem?

When a user is updated role to Admin, the entry for that user in the policy employeeList doesn't contain the email

member[current.email] = {role: current?.role, pendingAction: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE};

In Xero exporter check

, we filter out employee without emails

-> The issue happens

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

Add email in employeeList entry when changing member role, adding member, ...

Or update getAdminEmployees such that it will use the key of the employeeList as email (because employeeList was keyed by emails), if email doesn't exist in the entry.

We could need to add logic to 'add @expensify.sms` to email if it's phone number, in those places.

The same solution could apply to other integrations, if the issue exists there.

What alternative solutions did you explore? (Optional)

None

@greg-schroeder
Copy link
Contributor

Bump @alitoshmatov for proposal review!

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jun 28, 2024
Copy link

melvin-bot bot commented Jul 1, 2024

@greg-schroeder, @alitoshmatov Whoops! This issue is 2 days overdue. Let's get this updated quick!

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

melvin-bot bot commented Jul 2, 2024

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

@allroundexperts
Copy link
Contributor

Taking over. I'll review the proposals today.

@alitoshmatov alitoshmatov removed their assignment Jul 3, 2024
@melvin-bot melvin-bot bot removed the Overdue label Jul 3, 2024
@shubham1206agra
Copy link
Contributor

@allroundexperts Please fix the same for other integrations too.

@allroundexperts

This comment was marked as outdated.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jul 9, 2024
@daledah
Copy link
Contributor

daledah commented Jul 9, 2024

@allroundexperts this PR is ready for review

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jul 17, 2024
@melvin-bot melvin-bot bot changed the title [$250] Accounting - Workspace admins aren't lised as a "Preferred exporter" [HOLD for payment 2024-07-24] [$250] Accounting - Workspace admins aren't lised as a "Preferred exporter" Jul 17, 2024
Copy link

melvin-bot bot commented Jul 17, 2024

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 17, 2024
Copy link

melvin-bot bot commented Jul 17, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.7-8 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-07-24. 🎊

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

  • @daledah requires payment (Needs manual offer from BZ)

Copy link

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

  • [@jasperhuangg] The PR that introduced the bug has been identified. Link to the PR: Much of this is new functionality so there aren't really PRs that introduced a particular regression here.
  • [@jasperhuangg] 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:
  • [@jasperhuangg] 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:
  • [@daledah] Determine if we should create a regression test for this bug.
  • [@daledah] 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.
  • [@greg-schroeder] 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 Jul 23, 2024
@greg-schroeder
Copy link
Contributor

Payment summary:

Contributor: @daledah - $250 - Offer sent via Upwork
C+: @allroundexperts - $250 - You can make a manual request via ND

@greg-schroeder
Copy link
Contributor

@daledah can you apply to the upwork job or link your upwork profile here so I can send you an offer/pay you?

https://www.upwork.com/jobs/~01b398eb305ddcbb3e

Copy link

melvin-bot bot commented Jul 24, 2024

Payment Summary

Upwork Job

BugZero Checklist (@greg-schroeder)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1805402957868224386/hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@greg-schroeder
Copy link
Contributor

@daledah it says your Upwork profile is no longer available. so you're going to create a valid upwork account and apply to this job in order for me to pay you.

@greg-schroeder
Copy link
Contributor

bump @daledah

@daledah

This comment was marked as outdated.

@melvin-bot melvin-bot bot added the Overdue label Jul 29, 2024
@daledah
Copy link
Contributor

daledah commented Jul 29, 2024

@daledah it says your Upwork profile is no longer available

@greg-schroeder All good now! Please help send an offer to my profile https://www.upwork.com/freelancers/~0138d999529f34d33f

@greg-schroeder
Copy link
Contributor

Sent @daledah

@melvin-bot melvin-bot bot removed the Overdue label Jul 30, 2024
@github-project-automation github-project-automation bot moved this from Release 2: Summer 2024 (Aug) to Done in [#whatsnext] #wave-collect Jul 30, 2024
@daledah
Copy link
Contributor

daledah commented Aug 2, 2024

@greg-schroeder I accepted the offer, thx!

@JmillsExpensify
Copy link

$250 approved for @allroundexperts based on this comment.

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
Projects
No open projects
Status: Done
Development

No branches or pull requests

8 participants