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

IOU - User is able to select a date in the future when creating IOU request #32811

Closed
6 tasks done
kbecciv opened this issue Dec 11, 2023 · 7 comments
Closed
6 tasks done
Assignees

Comments

@kbecciv
Copy link

kbecciv commented Dec 11, 2023

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: v1.4.11-1
Reproducible in staging?: y
Reproducible in production?: n
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: Applause - Internal Team
Slack conversation:

Action Performed:

  1. Go to staging.new.expensify.com.
  2. Go to 1:1 DM > + > Request money.
  3. Enter amount > Next.
  4. Click Show more > Date.
  5. Select a date in the future and create the request.

Expected Result:

User should not be allowed to select a date in the future when creating IOU request.

Actual Result:

User is able to select a date in the future when creating IOU request.

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

Bug6309001_1702303263731.bandicam_2023-12-11_20-11-17-858__1_.mp4

View all open jobs on GitHub

@kbecciv kbecciv added the DeployBlockerCash This issue or pull request should block deployment label Dec 11, 2023
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

Copy link

melvin-bot bot commented Dec 11, 2023

Triggered auto assignment to @iwiznia (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@shubham1206agra
Copy link
Contributor

@tgolen Offending line
maxDate={dateAdd(new Date(), {years: 1})}
Is this intentional?

@paultsimura
Copy link
Contributor

Proposal

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

Possible to select future date for IOU requests.

What is the root cause of that problem?

We set the max date to 1 year from now:

maxDate={dateAdd(new Date(), {years: 1})}

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

Should use maxDate={new Date()} instead if no future requests are allowed.

What alternative solutions did you explore? (Optional)

@tgolen
Copy link
Contributor

tgolen commented Dec 11, 2023

This was intentional. I am closing this out because it's working as intended.

@tgolen tgolen closed this as completed Dec 11, 2023
@Julesssss
Copy link
Contributor

Might we need to update a testrails case here? or was this raised independently of a test case?

@luacmartins
Copy link
Contributor

Agree that we should update testrail

@luacmartins luacmartins removed the DeployBlockerCash This issue or pull request should block deployment label Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants