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

[$250] [HOLD for payment 2025-02-17] [CRITICAL] Add dropdown to allow users to choose which domain their travel should be provisioned under in NewDot #55377

Closed
stitesExpensify opened this issue Jan 16, 2025 · 24 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement.

Comments

@stitesExpensify
Copy link
Contributor

stitesExpensify commented Jan 16, 2025

Problem

Currently when we provision travel, we use the domain of the billing owner for that policy. This works fine in most cases, but if there is an external accountant set as the owner, then the policy would be provisioned under that company which is incorrect and would need to be manually fixed by us.

Solution

When enabling travel, display a dropdown that includes all domains of members on the policy with a question like "Which company does this workspace belong to?"

This will then be passed to the backend and placed underneath that spotnana company

After this long thread, we landed on the following solution:

  1. When a policy has members in more than one domain let them choose which domain they want to provision on
  • We will show (recommended) in front of the most used domain in that policy
  1. If they choose a policy they don’t have access to the domain prompt them to ask for a domain admin/become an A!
  • Not having access to the domain means either:
    • Not having an email on that domain
    • Not being a domain admin
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021891556443234572502
  • Upwork Job ID: 1891556443234572502
  • Last Price Increase: 2025-02-17
  • Automatic offers:
    • ZhenjaHorbach | Contributor | 106161952
Issue OwnerCurrent Issue Owner: @brunovjk
@stitesExpensify stitesExpensify added Engineering Daily KSv2 Improvement Item broken or needs improvement. Internal Requires API changes or must be handled by Expensify staff labels Jan 16, 2025
@stitesExpensify
Copy link
Contributor Author

@ZhenjaHorbach
Copy link
Contributor

I can help with this !

@stitesExpensify stitesExpensify moved this to Critical - Feb '25 Earnings in #Travel Jan 17, 2025
@melvin-bot melvin-bot bot added the Overdue label Jan 20, 2025
Copy link

melvin-bot bot commented Jan 20, 2025

@dannymcclain, @cristipaval, @ZhenjaHorbach Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@ZhenjaHorbach
Copy link
Contributor

ZhenjaHorbach commented Jan 20, 2025

Not overdue
PR is in progress !

@cristipaval
Copy link
Contributor

Auth PR is merged and deployed.
Web-E PR is up
App PR is up but held on the Web-E PR

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Overdue Daily KSv2 labels Jan 22, 2025
@cristipaval cristipaval added Daily KSv2 and removed Weekly KSv2 labels Jan 24, 2025
@cristipaval
Copy link
Contributor

Backend PRs are deployed.

App PR passed the design review and it is being reviewed by the C+

Copy link

melvin-bot bot commented Jan 28, 2025

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Jan 29, 2025
Copy link

melvin-bot bot commented Feb 11, 2025

@tgolen, @garrettmknight, @dannymcclain, @cristipaval, @ZhenjaHorbach Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@garrettmknight garrettmknight changed the title [HOLD for payment 2025-02-05] [CRITICAL] Add dropdown to allow users to choose which domain their travel should be provisioned under in NewDot [HOLD for payment 2025-02-17] [CRITICAL] Add dropdown to allow users to choose which domain their travel should be provisioned under in NewDot Feb 11, 2025
@garrettmknight
Copy link
Contributor

Looks like that PR went to prod. @ZhenjaHorbach any others expected?

@melvin-bot melvin-bot bot removed the Overdue label Feb 11, 2025
@ZhenjaHorbach
Copy link
Contributor

Looks like that PR went to prod. @ZhenjaHorbach any others expected?

I hope that's all 😄

@stitesExpensify stitesExpensify moved this from Critical - Feb '25 Earnings to High - Feb '25 Earnings in #Travel Feb 11, 2025
@stitesExpensify stitesExpensify moved this from High - Feb '25 Earnings to Critical - Feb '25 Earnings in #Travel Feb 11, 2025
@garrettmknight
Copy link
Contributor

Cool, we'll wait till payout then! @cristipaval do we need a regression test for this one or is it being handled elsewhere?

@cristipaval
Copy link
Contributor

do we need a regression test for this one or is it being handled elsewhere?

Good question! I think we'll add regression tests when we enable travel for everyone, right now Applause can't really test this. @stitesExpensify what do you think?

@melvin-bot melvin-bot bot added the Overdue label Feb 17, 2025
Copy link

melvin-bot bot commented Feb 17, 2025

Payment Summary

Upwork Job

BugZero Checklist (@garrettmknight)

  • 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//hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@cristipaval
Copy link
Contributor

@garrettmknight I think we're good to issue the payment for @ZhenjaHorbach here

@melvin-bot melvin-bot bot removed the Overdue label Feb 17, 2025
@garrettmknight garrettmknight added External Added to denote the issue can be worked on by a contributor and removed Awaiting Payment Auto-added when associated PR is deployed to production Internal Requires API changes or must be handled by Expensify staff labels Feb 17, 2025
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2025-02-17] [CRITICAL] Add dropdown to allow users to choose which domain their travel should be provisioned under in NewDot [$250] [HOLD for payment 2025-02-17] [CRITICAL] Add dropdown to allow users to choose which domain their travel should be provisioned under in NewDot Feb 17, 2025
Copy link

melvin-bot bot commented Feb 17, 2025

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 17, 2025
Copy link

melvin-bot bot commented Feb 17, 2025

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

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 17, 2025
Copy link

melvin-bot bot commented Feb 17, 2025

📣 @ZhenjaHorbach 🎉 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 📖

@garrettmknight garrettmknight added the Awaiting Payment Auto-added when associated PR is deployed to production label Feb 17, 2025
@garrettmknight
Copy link
Contributor

All paid up!

@github-project-automation github-project-automation bot moved this from Critical - Feb '25 Earnings to Done in #Travel Feb 19, 2025
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 Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement.
Projects
Status: Done
Development

No branches or pull requests

7 participants