Skip to content

Commit

Permalink
[Enterprise Search] Change minute values to preset intervals (#161082)
Browse files Browse the repository at this point in the history
## Summary


https://github.com/elastic/kibana/assets/1410658/b9b7d66d-6368-4da4-90f6-2547193c07b6


Change minute values to the preset intervals
5, 10, 15 and 30 minutes presets are set.



### Checklist

Delete any items that are not applicable to this PR.

- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [x] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [x] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)
  • Loading branch information
efegurkan committed Jul 3, 2023
1 parent 44c7091 commit 0aea720
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 815 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function cronToFrequency(cron: string): Frequency {
if (fields.length < 4) {
return 'YEAR';
}
if (fields[1] === '*' || fields[1].startsWith('*/')) {
if (fields[1] === '*' || fields[1].includes(',')) {
return 'MINUTE';
}
if (fields[2] === '*') {
Expand Down
Loading

0 comments on commit 0aea720

Please sign in to comment.