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

[HOLD for payment 2024-11-20] [Workspace Feeds] Transaction start date in card details page is one day prior to the selected date when assigning a card #51915

Closed
1 of 8 tasks
m-natarajan opened this issue Nov 1, 2024 · 22 comments
Assignees
Labels
AutoAssignerNewDotQuality Used to assign quality issues to engineers Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Needs Reproduction Reproducible steps needed

Comments

@m-natarajan
Copy link

m-natarajan commented Nov 1, 2024

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:
Reproducible in staging?: needs reproduction
Reproducible in production?: needs reproduction
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):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @joekaufmanexpensify
Slack conversation (hyperlinked to channel name): quality

Action Performed:

Prerequisite:
Members and company cards added in workspace , 8+ export options for card

  1. Go to staging.new.expensify.com
  2. Choose the workspace from settings
  3. Click company cards >Card Details

Expected Result:

Transaction start date should be same as entered when assigning the card

Actual Result:

Transaction start date in card details page is one day prior to the selected date when assigning a card

Workaround:

unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence ![image - 2024-10-31T153107 487](https://github.com/user-attachments/assets/710fa817-5448-4ce5-94ea-fd9e22472f35) ![image - 2024-10-31T153058 517](https://github.com/user-attachments/assets/6500a64c-2b8f-4d69-a82f-7f8cfc613a40)

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @MitchExpensify
@m-natarajan m-natarajan added Needs Reproduction Reproducible steps needed Bug Something is broken. Auto assigns a BugZero manager. AutoAssignerNewDotQuality Used to assign quality issues to engineers labels Nov 1, 2024
@m-natarajan
Copy link
Author

BZ team member, Callstack will work on this issue, please wait for them to comment before moving the issue forward.

Copy link

melvin-bot bot commented Nov 1, 2024

Triggered auto assignment to @MitchExpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

Copy link

melvin-bot bot commented Nov 1, 2024

Triggered auto assignment to @cristipaval (AutoAssignerNewDotQuality)

@melvin-bot melvin-bot bot added Daily KSv2 Weekly KSv2 and removed Weekly KSv2 labels Nov 1, 2024
@m-natarajan m-natarajan added Weekly KSv2 and removed Daily KSv2 labels Nov 1, 2024
@MelvinBot
Copy link

This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989

@mountiny
Copy link
Contributor

mountiny commented Nov 1, 2024

Handling this as part of the project I have worked on

@mountiny mountiny changed the title Transaction start date in card details page is one day prior to the selected date when assigning a card [Workspace Feeds] Transaction start date in card details page is one day prior to the selected date when assigning a card Nov 1, 2024
@waterim
Copy link
Contributor

waterim commented Nov 5, 2024

Hello, Im Artem from Callstack and would like to help with this issue!

@DylanDylann
Copy link
Contributor

I would love to help on this issue with @waterim

@waterim
Copy link
Contributor

waterim commented Nov 6, 2024

I wasnt able to reproduce this issue, I thought maybe timezone was broken, but we are using strings in all parts, tested everything and works properly
@joekaufmanexpensify which timezone you are in, maybe will be able to repro with switching timezones?

But also found a bit weird unneeded date parsing with creating string from the date and after convert this string again to date and format again to string, I think this is possible that because of the timezones it can be parsed without a proper time and make this 1 day move, I will create a PR for this and you can retest, maybe this was an issue you've got!

@DylanDylann
Copy link
Contributor

I also can't reproduce

@mountiny
Copy link
Contributor

mountiny commented Nov 7, 2024

Joe is in new york timezone

@waterim
Copy link
Contributor

waterim commented Nov 7, 2024

@mountiny probably should work with removing new Date converting all the time, cant reproduce
@joekaufmanexpensify feel free to reproduce!

@joekaufmanexpensify
Copy link
Contributor

I can still reproduce. Added here.

@DylanDylann
Copy link
Contributor

DylanDylann commented Nov 7, 2024

@waterim This issue only can be reproduced when we set Local time is 8:30 am and EST timezone (GMT -5). The problem comes from the format function

title={card?.scrapeMinDate ? format(card.scrapeMinDate, CONST.DATE.FNS_FORMAT_STRING) : ''}

Screenshot 2024-11-07 at 08 39 01

@DylanDylann
Copy link
Contributor

I suggest updating

title={card?.scrapeMinDate ? format(card.scrapeMinDate, CONST.DATE.FNS_FORMAT_STRING) : ''}

title={card?.scrapeMinDate ? format(parseISO(card.scrapeMinDate), CONST.DATE.FNS_FORMAT_STRING) : ''}

@waterim
Copy link
Contributor

waterim commented Nov 8, 2024

Thank you, will try tomorrow morning, maybe format from date-fns-tz

@MitchExpensify
Copy link
Contributor

@waterim Have you had a chance to come back to this?

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Nov 13, 2024
@melvin-bot melvin-bot bot changed the title [Workspace Feeds] Transaction start date in card details page is one day prior to the selected date when assigning a card [HOLD for payment 2024-11-20] [Workspace Feeds] Transaction start date in card details page is one day prior to the selected date when assigning a card Nov 13, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Nov 13, 2024
Copy link

melvin-bot bot commented Nov 13, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Nov 13, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.60-3 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 2024-11-20. 🎊

For reference, here are some details about the assignees on this issue:

  • @waterim does not require payment (Contractor)
  • @DylanDylann requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented Nov 13, 2024

@DylanDylann @MitchExpensify @DylanDylann 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]

@DylanDylann
Copy link
Contributor

DylanDylann commented Nov 19, 2024

BugZero Checklist:

  • [Contributor] Classify the bug:
Bug classification

Source of bug:

  • 1a. Result of the original design (eg. a case wasn't considered)
  • 1b. Mistake during implementation
  • 1c. Backend bug
  • 1z. Other:

Where bug was reported:

  • 2a. Reported on production
  • 2b. Reported on staging (deploy blocker)
  • 2c. Reported on both staging and production
  • 2d. Reported on a PR
  • 2z. Other:

Who reported the bug:

  • 3a. Expensify user
  • 3b. Expensify employee
  • 3c. Contributor
  • 3d. QA
  • 3z. Other:
  • [Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.

    Link to comment: [NO QA]: Company card details #48491 (comment)

  • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.

    Link to discussion:

  • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

  • [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

    Link to issue:

Regression Test Proposal

Precondition:

  • Set Local time is 8:30 am and EST timezone (GMT -5)

Test:

  1. Open any workspace
  2. Enable Company Cards
  3. Click company cards
  4. Assign a new card and set the custom start date as the current day
  5. Go to the card detail of the created card above
  6. Verify that the date displayed correctly with the date set above

Do we agree 👍 or 👎

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Nov 19, 2024
Copy link

melvin-bot bot commented Nov 20, 2024

Payment Summary

Upwork Job

  • Contributor: @waterim is from an agency-contributor and not due payment
  • ROLE: @DylanDylann paid $(AMOUNT) via Upwork (LINK)

BugZero Checklist (@MitchExpensify)

  • 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

@mountiny
Copy link
Contributor

Checklist done, regression test for this specific scenario is not needed I think, it will be covered with the tests for the feature we will add with Joe. Payments are handled separately for the project so closing this one for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AutoAssignerNewDotQuality Used to assign quality issues to engineers Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Needs Reproduction Reproducible steps needed
Projects
Status: Done
Development

No branches or pull requests

8 participants