Closed m-natarajan closed 9 months ago
Triggered auto assignment to @stephanieelliott (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details.
Should we allow entries with future date? If not we can disable selecting any future date on UI.
📣 @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:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
Contributor details Your Expensify account email: vcoolsanghai@gmail.com Upwork Profile Link: https://www.upwork.com/freelancers/~0121fccdaccc2abdc1
✅ Contributor details stored successfully. Thank you for contributing to Expensify!
The SplitBill date displays incorrectly when a date other than today is selected.
1 - While making an API call, the created
field is not passed as a param. Consequently, the backend consistently returns today's date.
2 - The addition of the created
parameter to SplitBillParams
improves the optimistic transaction data. However, the SplitBill response still reflects today's date.
To address this issue, two essential changes are required:
1 - Include the created
parameter in SplitBillParams
and other relevant split params types.
2 - Coordinate with the backend team to implement the necessary updates.
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.
Could I take this issue as C+ contributor because I have context and discuss here
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.
Assigned to you @DylanDylann to work on this.
Job added to Upwork: https://www.upwork.com/jobs/~01d790dc8609cd540a
Current assignee @DylanDylann is eligible for the External assigner, not assigning anyone new.
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 😊
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.
📣 @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:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
Very good, thank you @stephanieelliott, I already have a proposal. However, today I will re-investigate and update the proposal if necessary.
SplitBill date displays incorrectly when a date other than today is selected.
Missing created
parameters at SplitBillParams
.
created
parameters at SplitBillParams
.IOURequestStepConfirmation
to pass the created transaction value
to IOU.splitBill
and IOU.splitBillAndOpenReport
call.splitBill
, splitBillAndOpenReport
and createSplitsAndOnyxData
to receive and use created
value to buildOptimisticTransaction
.[!NOTE] With these changes,
transaction.created
is correct, but we must also update BE to use thecreated
parameter when we callSPLIT_BILL
andSPLIT_BILL_AND_OPEN_REPORT
, as we do inCOMPLETE_SPLIT_BILL
, which returns the correct date.POC: Create a
splitBillAndOpenReport
offline and than go online:Proposed changes
https://github.com/Expensify/App/assets/95647348/24665cde-8444-479f-8421-0b85d6528a3eLatest main
https://github.com/Expensify/App/assets/95647348/42186470-e7d6-489a-9537-a96cc31b0c8a
@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
Triggered auto assignment to @francoisl, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
Don't need to update
StartSplitBill
API
Exactly! Thanks for the review @DylanDylann :D
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?
Ah shoot, actually this might be the same issue as https://github.com/Expensify/App/issues/34526, which just had this fix merged: https://github.com/Expensify/App/pull/35141. Right?
Thank you for pointing out that. Can't reproduce anymore
I can't repro it anymore either -- gonna close this as resolved.
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.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:
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?
Screenshots/Videos
Add any screenshot/video evidence
https://github.com/Expensify/App/assets/38435837/06fe85ce-3a30-490d-a5a9-fd81e9c22296
View all open jobs on GitHub
Upwork Automation - Do Not Edit