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] SplitBill date is incorrect when a date other than today is selected #36285

Closed
1 of 6 tasks
m-natarajan opened this issue Feb 9, 2024 · 24 comments
Closed
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 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

Comments

@m-natarajan
Copy link

m-natarajan commented Feb 9, 2024

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.39-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:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @tgolen
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1707500020195589

Action Performed:

  1. Create a split bill
  2. On the confirmation screen, set the date to a date in the future
  3. After creating the bill, click on the preview to view the details

Expected Result:

The date should show as date that is not today

Actual Result:

The date shows today's date because it's showing the "created" date and not the date the user specified.

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

Recording.2713.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01d790dc8609cd540a
  • Upwork Job ID: 1757674654685200384
  • Last Price Increase: 2024-02-14
@m-natarajan m-natarajan added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Feb 9, 2024
Copy link

melvin-bot bot commented Feb 9, 2024

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

@vishalsanghai
Copy link

Should we allow entries with future date?
If not we can disable selecting any future date on UI.

Copy link

melvin-bot bot commented Feb 10, 2024

📣 @vishalsanghai! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@vishalsanghai
Copy link

Contributor details
Your Expensify account email: [email protected]
Upwork Profile Link: https://www.upwork.com/freelancers/~0121fccdaccc2abdc1

Copy link

melvin-bot bot commented Feb 10, 2024

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@brunovjk

This comment was marked as outdated.

@brunovjk
Copy link
Contributor

brunovjk commented Feb 10, 2024

Interested in help, despite the absence of the "Help Wanted" tag. Noticed this issue while working on another PR and @DylanDylann helped with the solution. However, I believe we still need an internal team member to check and implement the required backend adjustments.

@DylanDylann
Copy link
Contributor

Could I take this issue as C+ contributor because I have context and discuss here

@melvin-bot melvin-bot bot added the Overdue label Feb 12, 2024
@tgolen
Copy link
Contributor

tgolen commented Feb 12, 2024

Should we allow entries with future date?

I noticed this question and wanted to respond. This should be allowed, yes. Please use these constants for the date.

@tgolen
Copy link
Contributor

tgolen commented Feb 12, 2024

Assigned to you @DylanDylann to work on this.

@stephanieelliott stephanieelliott added 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 Feb 14, 2024
Copy link

melvin-bot bot commented Feb 14, 2024

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

@melvin-bot melvin-bot bot changed the title SplitBill date is incorrect when a date other than today is selected [$500] SplitBill date is incorrect when a date other than today is selected Feb 14, 2024
Copy link

melvin-bot bot commented Feb 14, 2024

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

@stephanieelliott
Copy link
Contributor

Seems like the labels didn't apply correctly here. Thanks for noticing @brunovjk -- giving you a heads up if you want to make a proposal 😊

@jonxzsh
Copy link

jonxzsh commented Feb 14, 2024

It seems like "created" is passed to the RequestMoney command with a value similar to "2024-02-17", but the same doesn't happen on SplitBill. I don't have my environment setup so just posting to anybody who's looking. Seems like you might have to make API changes aswell to implement the "created" parameter and do something with it on the server.

Copy link

melvin-bot bot commented Feb 14, 2024

📣 @jonsystems! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@brunovjk

This comment was marked as outdated.

@brunovjk
Copy link
Contributor

Proposal

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

SplitBill date displays incorrectly when a date other than today is selected.

What is the root cause of that problem?

Missing created parameters at SplitBillParams.

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

Note

With these changes, transaction.created is correct, but we must also update BE to use the created parameter when we call SPLIT_BILL and SPLIT_BILL_AND_OPEN_REPORT, as we do in COMPLETE_SPLIT_BILL, which returns the correct date.

POC: Create a splitBillAndOpenReport offline and than go online:

Proposed changes
POC-36285-Proposed.changes.mp4
Latest main
POC-36285-Latest.main.mp4

What alternative solutions did you explore? (Optional)

@DylanDylann
Copy link
Contributor

DylanDylann commented Feb 15, 2024

@brunovjk Your proposal looks good to me

Note that: We need to update splitBillAndOpenReport API and splitBill API from the BE side to fix this issue completely. Don't need to update StartSplitBill API, because this flow is used when splitting bill with receipt and date field is hidden in this case

🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Feb 15, 2024

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

@brunovjk
Copy link
Contributor

Don't need to update StartSplitBill API

Exactly!
Thanks for the review @DylanDylann :D

@francoisl
Copy link
Contributor

Hi @brunovjk, looks like the backend was just modified to support the created param for the commands SplitBill and SplitBillAndOpenReport a few days ago. Can you try your changes again and see if the backend returns the right date in the response now?

@francoisl
Copy link
Contributor

Ah shoot, actually this might be the same issue as #34526, which just had this fix merged: #35141. Right?

@DylanDylann
Copy link
Contributor

Thank you for pointing out that. Can't reproduce anymore

@stephanieelliott
Copy link
Contributor

I can't repro it anymore either -- gonna close this as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 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
Projects
None yet
Development

No branches or pull requests

8 participants