-
Notifications
You must be signed in to change notification settings - Fork 890
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
fix for quickrange to use datemath to parse datetime strings #6782
fix for quickrange to use datemath to parse datetime strings #6782
Conversation
Signed-off-by: Paul Sebastian <[email protected]>
ℹ️ Manual Changeset Creation ReminderPlease ensure manual commit for changeset file 6782.yml under folder changelogs/fragments to complete this PR. If you want to use the available OpenSearch Changeset Bot App to avoid manual creation of changeset file you can install it in your forked repository following this link. For more information about formatting of changeset files, please visit OpenSearch Auto Changeset and Release Notes Tool. |
❌ Empty Changelog SectionThe Changelog section in your PR description is empty. Please add a valid changelog entry or entries. If you did add a changelog entry, check to make sure that it was not accidentally included inside the comment block in the Changelog section. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6782 +/- ##
==========================================
- Coverage 67.56% 67.35% -0.21%
==========================================
Files 3428 3443 +15
Lines 67343 67795 +452
Branches 10996 11032 +36
==========================================
+ Hits 45498 45666 +168
- Misses 19176 19434 +258
- Partials 2669 2695 +26
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Paul Sebastian <[email protected]>
Signed-off-by: Paul Sebastian <[email protected]>
|
||
describe('Data Frame Utils', () => { | ||
describe('formatTimePickerDate function', () => { | ||
Date.now = jest.fn(() => new Date('2024-05-04T12:30:00.000Z')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kavilla is this fine for mocking the time or is there another preferred option?
Signed-off-by: Paul Sebastian <[email protected]>
Signed-off-by: Paul Sebastian <[email protected]>
provides a formatting util function meant to convert quick range time (such as 'now-15m') to datetimes that can be understood. Signed-off-by: Paul Sebastian <[email protected]> --------- Signed-off-by: Paul Sebastian <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit 347639f) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
provides a formatting util function meant to convert quick range time (such as 'now-15m') to datetimes that can be understood. Signed-off-by: Paul Sebastian <[email protected]> --------- Signed-off-by: Paul Sebastian <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit 347639f) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…6868) provides a formatting util function meant to convert quick range time (such as 'now-15m') to datetimes that can be understood. --------- (cherry picked from commit 347639f) Signed-off-by: Paul Sebastian <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
…rch-project#6782) provides a formatting util function meant to convert quick range time (such as 'now-15m') to datetimes that can be understood. Signed-off-by: Paul Sebastian <[email protected]> --------- Signed-off-by: Paul Sebastian <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
…6834) provides a formatting util function meant to convert quick range time (such as 'now-15m') to datetimes that can be understood. --------- (cherry picked from commit 347639f) Signed-off-by: Paul Sebastian <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Description
provides a formatting util function meant to convert quick range time (such as 'now-15m') to datetimes that can be understood.
related to: kavilla/qlDashboards#4
Issues Resolved
Screenshot
Testing the changes
Changelog
Check List
yarn test:jest
yarn test:jest_integration