Skip to content

fix: error handling for valid timestamp - #2266

Merged
achettyiitr merged 1 commit into
developfrom
fix.valid-timestamp
Jun 16, 2023
Merged

achettyiitr merged 1 commit into
developfrom
fix.valid-timestamp

Conversation

@achettyiitr

@achettyiitr achettyiitr commented Jun 14, 2023 •

Copy link
Copy Markdown
Member

Description of the change

Getting for following error RangeError · Invalid time value for messagebird when the timestamp is coming as -0001-11-30T00:00:00+0000.

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Related issues

Fix #1

Checklists

Development

  • Lint rules pass locally
  • The code changed/added as part of this pull request has been covered with tests
  • All tests related to the changed code pass in development

Code review

  • This pull request has a descriptive title and information useful to a reviewer. There may be a screenshot or screencast attached
  • "Ready for review" label attached to the PR and reviewers mentioned in a comment
  • Changes have been reviewed by at least one other engineer
  • Issue from task tracker has a link to this pull request

@achettyiitr
achettyiitr requested review from a team as code owners June 14, 2023 06:43
@achettyiitr
achettyiitr force-pushed the fix.valid-timestamp branch from ffc2a04 to 210e5c7 Compare June 14, 2023 06:44
@achettyiitr
achettyiitr requested review from cisse21 and lvrach June 14, 2023 06:48
@codecov

codecov Bot commented Jun 14, 2023 •

Copy link
Copy Markdown

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (79ffb0a) 86.27% compared to head (1fb21d5) 86.27%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2266   +/-   ##
========================================
  Coverage    86.27%   86.27%           
========================================
  Files          497      497           
  Lines        25517    25520    +3     
  Branches      6292     6293    +1     
========================================
+ Hits         22015    22018    +3     
  Misses        3096     3096           
  Partials       406      406           
Impacted Files Coverage Δ
src/warehouse/util.js 90.90% <100.00%> (+0.52%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Comment thread src/warehouse/util.js Resolved
Comment thread test/__tests__/warehouse.test.js Resolved
@achettyiitr
achettyiitr force-pushed the fix.valid-timestamp branch from 210e5c7 to d753f77 Compare June 14, 2023 08:04
Jayachand
Jayachand previously approved these changes Jun 14, 2023
@achettyiitr
achettyiitr requested a review from cisse21 June 14, 2023 08:12
Comment thread src/warehouse/util.js Resolved
Comment thread src/warehouse/util.js Resolved
@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@achettyiitr
achettyiitr merged commit bf029ee into develop Jun 16, 2023
@achettyiitr
achettyiitr deleted the fix.valid-timestamp branch June 16, 2023 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants