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

[$250] NetSuite - Sometimes the "last synced" text is missing the actual time data #46228

Closed
1 of 6 tasks
lanitochka17 opened this issue Jul 25, 2024 · 23 comments
Closed
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Help Wanted Apply this label when an issue is open to proposals by contributors Internal Requires API changes or must be handled by Expensify staff Reviewing Has a PR in review

Comments

@lanitochka17
Copy link

lanitochka17 commented Jul 25, 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: 9.0.12-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: N/A
Issue reported by: Applause - Internal Team

Action Performed:

  1. Navigate to https://staging.new.expensify.com/
  2. Log in with a new expensifail account
  3. Click on FAB - New workspace
  4. Enable "Accounting" in the "More features" page.
  5. Navigate to "Accounting"
  6. Connect to NetSuite and upgrade the workspace to Control when asked
  7. Wait for the sync to finish

Expected Result:

It should be showing "Last synced X minutes ago"

Actual Result:

Sometimes the "last synced" text is missing the actual time data. It can occur then the connection is made to NetSuite or if a setting is changed that forces a sync

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

Bug6552961_1721932115926.bandicam_2024-07-25_20-20-49-475.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01e16d825f11c5924c
  • Upwork Job ID: 1818663718833083769
  • Last Price Increase: 2024-08-07
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jul 25, 2024
Copy link

melvin-bot bot commented Jul 25, 2024

Triggered auto assignment to @greg-schroeder (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.

@lanitochka17
Copy link
Author

@greg-schroeder FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@melvin-bot melvin-bot bot added the Overdue label Jul 29, 2024
Copy link

melvin-bot bot commented Jul 29, 2024

@greg-schroeder Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@greg-schroeder greg-schroeder added the External Added to denote the issue can be worked on by a contributor label Jul 31, 2024
@melvin-bot melvin-bot bot changed the title NetSuite - Sometimes the "last synced" text is missing the actual time data [$250] NetSuite - Sometimes the "last synced" text is missing the actual time data Jul 31, 2024
Copy link

melvin-bot bot commented Jul 31, 2024

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 31, 2024
Copy link

melvin-bot bot commented Jul 31, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov (External)

@melvin-bot melvin-bot bot removed the Overdue label Jul 31, 2024
@NJ-2020
Copy link
Contributor

NJ-2020 commented Aug 4, 2024

Proposal

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

NetSuite - Sometimes the "last synced" text is missing the actual time data

What is the root cause of that problem?

On PolicyAccountingPage, we do not handle if we get an error response
image

const [datetimeToRelative, setDateTimeToRelative] = useState('');

const successfulDate = getIntegrationLastSuccessfulDate(
connectedIntegration ? policy?.connections?.[connectedIntegration] : undefined,
connectedIntegration === connectionSyncProgress?.connectionName ? connectionSyncProgress : undefined,
);

? translate('workspace.accounting.connections.syncStageName', connectionSyncProgress.stageInProgress)
: translate('workspace.accounting.lastSync', datetimeToRelative),

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

We can create a new variable for lastSynced date if the response is error .lastErrorSyncedData, and use this variable if the connection is error and use the successfulDate variable if the connection is success

Or we can make it in one variable checking if error we can use the lastErrorSyncedData and if success we can use the successfulDate variable

What alternative solutions did you explore? (Optional)

@melvin-bot melvin-bot bot added the Overdue label Aug 4, 2024
@greg-schroeder
Copy link
Contributor

Next up is @alitoshmatov for proposal review

@greg-schroeder
Copy link
Contributor

Go away melvin

@melvin-bot melvin-bot bot removed the Overdue label Aug 5, 2024
Copy link

melvin-bot bot commented Aug 7, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Aug 7, 2024
Copy link

melvin-bot bot commented Aug 8, 2024

@greg-schroeder @alitoshmatov this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

Copy link

melvin-bot bot commented Aug 8, 2024

@greg-schroeder, @alitoshmatov Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@alitoshmatov
Copy link
Contributor

Requested access to Netsuite in slack.

@melvin-bot melvin-bot bot removed the Overdue label Aug 9, 2024
@shubham1206agra
Copy link
Contributor

This is a BE issue. Already asked @yuwenmemon for a fix. Will be fixed after he comes back from OOO

@melvin-bot melvin-bot bot added the Overdue label Aug 12, 2024
Copy link

melvin-bot bot commented Aug 12, 2024

@greg-schroeder, @alitoshmatov Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@greg-schroeder greg-schroeder removed the External Added to denote the issue can be worked on by a contributor label Aug 13, 2024
@greg-schroeder greg-schroeder added the Internal Requires API changes or must be handled by Expensify staff label Aug 13, 2024
@greg-schroeder
Copy link
Contributor

Okay - adjusting to Internal

@NJ-2020
Copy link
Contributor

NJ-2020 commented Aug 21, 2024

Is the issue has been fixed in BE?
The issue still reproducible if I provide with invalid credentials
Screenshot 2024-08-20 at 23 43 12

cc: @greg-schroeder

Copy link

melvin-bot bot commented Aug 23, 2024

@yuwenmemon, @greg-schroeder, @alitoshmatov Whoops! This issue is 2 days overdue. Let's get this updated quick!

@greg-schroeder
Copy link
Contributor

Hmm - @yuwenmemon I see your PR was deployed and is due to resolve the phantom "last synced" issue. But that looks slightly different than what's been pointed out here... this has a failed connection instead of a successful one.

Would you consider that a separate issue?

@yuwenmemon
Copy link
Contributor

Yep, we're going to be tackling that here: #47493

Copy link

melvin-bot bot commented Sep 3, 2024

@yuwenmemon, @greg-schroeder, @alitoshmatov Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

Copy link

melvin-bot bot commented Sep 5, 2024

@yuwenmemon, @greg-schroeder, @alitoshmatov Eep! 4 days overdue now. Issues have feelings too...

@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

@greg-schroeder
Copy link
Contributor

Okay, so the issue brought up in this issue was fixed, then, and the other thing that was mentioned is being fixed elsewhere. Closing then.

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 Help Wanted Apply this label when an issue is open to proposals by contributors Internal Requires API changes or must be handled by Expensify staff Reviewing Has a PR in review
Projects
Status: Done
Development

No branches or pull requests

7 participants