-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Due for payment 2025-05-27] [$250] Cancellation policy in NewDot contradicts cancellation policy in Spotnana #60835
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
Comments
Triggered auto assignment to @laurenreidexpensify ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Cancellation policy in NewDot contradicts cancellation policy in Spotnana What is the root cause of that problem?The date received from spotnata is not being converted to local time first, while on the spotnata page it is displayed in local time which causes the issue. App/src/pages/Travel/HotelTripDetails.tsx Lines 34 to 36 in a6904db
What changes do you think we should make in order to solve the problem?First convert the date to local time here App/src/pages/Travel/HotelTripDetails.tsx Lines 34 to 36 in a6904db
Additionally add a Optionally we should add the hours as well(coz there could be scenarios where cancellation would not be allowed for whole day and if customer tries to cancel it during later hours of the day it may be not available to free cancel. Do the same for other bookings as well. What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?NA What alternative solutions did you explore? (Optional) |
Job added to Upwork: https://www.upwork.com/jobs/~021915703191769199540 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Pujan92 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Cancellation policy in NewDot contradicts cancellation policy in Spotnana What is the root cause of that problem?In App/src/pages/Travel/HotelTripDetails.tsx Lines 34 to 36 in a9b6d36
Lines 866 to 872 in a9b6d36
What changes do you think we should make in order to solve the problem?We should format
function formatLocalCancellationDate(dateTime: string | Date, locale: Locale = CONST.LOCALES.EN): string {
const localDate = getLocalDateFromDatetime(locale, dateTime.toString());
return format(localDate, 'MMM d, yyyy, HH:mm a');
}
const { preferredLocale} = useLocalize();
const cancellationText = reservation.cancellationDeadline
? `${translate('travel.hotelDetails.cancellationUntil')} ${DateUtils.formatLocalCancellationDate(reservation.cancellationDeadline,preferredLocale)} local time` // the translate in PR phase
: cancellationMapping[reservation.cancellationPolicy ?? CONST.CANCELLATION_POLICY.UNKNOWN];
I'm not sure if we need to apply this change to other trips or only to hotel trip details. Currently, the expected behavior applies only to hotel trips, but we can always extend the same approach to other trip types later if needed What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?We can add tests in What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
@Pujan92 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@Pujan92 have you had a chance to review these proposals^^ Thanks |
@laurenreidexpensify, I need help with the test spotnana account and asked about it in Slack. |
@Pujan92 Bump here |
@Pujan92 @shubham1206agra what is the latest - are you still stuck on the test account? |
Yes @laurenreidexpensify, I am trying to get access for the test account to verify from my side. https://expensify.slack.com/archives/C08CZDJFJ77/p1746036031905829?thread_ts=1745063803.789999&cid=C08CZDJFJ77 |
Triggered auto assignment to @arosiclair, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.46-12 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 2025-05-27. 🎊 For reference, here are some details about the assignees on this issue:
|
@Pujan92 @laurenreidexpensify @Pujan92 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
Can someone assign me here as contributor? |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test Proposal Template
Regression Test ProposalPrecondition:Test:Do we agree 👍 or 👎 |
Uh oh!
There was an error while loading. Please reload this page.
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: 9.1.29-10
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers): [email protected]
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @JmillsExpensify
Slack conversation (hyperlinked to channel name): #travel
Action Performed:
Expected Result:
The policies match
Actual Result:
They are different
Workaround:
n/a
Platforms:
Select the officially supported platforms where the issue was reproduced:
Platforms Tested:
On which of our officially supported platforms was this issue tested:Screenshots/Videos
Add any screenshot/video evidence
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @laurenreidexpensifyThe text was updated successfully, but these errors were encountered: