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

[Enterprise Search] Add cron scheduling support to Kibana #145241

Merged
merged 10 commits into from
Nov 16, 2022

Conversation

byronhulcher
Copy link
Contributor

Summary

Adds new UX to the Search Index view's Scheduling tab for crawler indices, based on the same view/tab for connector indices. Users can select between cron and interval scheduling, and modify settings for each. Cron schedules are still stored in the connector configuration document.

scheduling.mov

Some notes:

  • This component saves onChange instead of with a save button
  • I needed the cron editor to support being disabled. The existing ES UI CronEditor component didn't support that. With feature freeze looming I made a pragmatic decision to straight up copy/paste the component into the Enterprise Search directory, and add the disabled flag to that component and its child components. I take no pleasure in reporting this. This side-steps engaging with the ES UI team via a PR into their original component. I had to copy the whole directory, rather than just the files I needed to modify, because ES UI is a private directory that our tooling will not allow me to import from (largely to prevent exactly what I was attempting to do here) I will follow-up with a PR into ES UI after feature freeze.
  • I did go through and update the i18n tags for our new cron editor, and copied their existing values from our translation files.

Checklist

Delete any items that are not applicable to this PR.

@byronhulcher byronhulcher added release_note:skip Skip the PR/issue when compiling release notes Team:EnterpriseSearch labels Nov 15, 2022
@byronhulcher byronhulcher self-assigned this Nov 15, 2022
@byronhulcher byronhulcher marked this pull request as ready for review November 15, 2022 14:01
@byronhulcher byronhulcher requested a review from a team November 15, 2022 14:01
}
)
);
// actions.clearCrawlSchedule();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick(non-blocking): Can this be removed?

} catch (e) {
// A 404 is expected and means the user has no crawl schedule to delete
if (e.response?.status === 404) {
actions.clearCrawlSchedule();
// actions.clearCrawlSchedule();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

)
);
actions.setCrawlSchedule(crawlScheduleServerToClient(crawlSchedule));
// flashSuccessToast(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and same here

@byronhulcher byronhulcher enabled auto-merge (squash) November 15, 2022 15:45
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
enterpriseSearch 1867 1878 +11

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
enterpriseSearch 2.0MB 2.0MB +14.6KB
Unknown metric groups

ESLint disabled in files

id before after diff
osquery 1 2 +1

ESLint disabled line counts

id before after diff
enterpriseSearch 19 21 +2
fleet 59 65 +6
osquery 108 113 +5
securitySolution 441 447 +6
total +19

Total ESLint disabled count

id before after diff
enterpriseSearch 20 22 +2
fleet 67 73 +6
osquery 109 115 +6
securitySolution 518 524 +6
total +20

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @byronhulcher

@byronhulcher
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.6

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

byronhulcher added a commit to byronhulcher/kibana that referenced this pull request Nov 16, 2022
byronhulcher added a commit that referenced this pull request Nov 16, 2022
) (#145445)

# Backport

This will backport the following commits from `main` to `8.6`:
- [[Enterprise Search] Add cron scheduling support to Kibana
(#145241)](#145241)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Byron
Hulcher","email":"[email protected]"},"sourceCommit":{"committedDate":"2022-11-16T16:57:51Z","message":"[Enterprise
Search] Add cron scheduling support to Kibana
(#145241)","sha":"1192e4f375420ef46cf73008f9e78229af62f86c","branchLabelMapping":{"^v8.6.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:skip","Team:EnterpriseSearch","v8.6.0"],"number":145241,"url":"https://github.com/elastic/kibana/pull/145241","mergeCommit":{"message":"[Enterprise
Search] Add cron scheduling support to Kibana
(#145241)","sha":"1192e4f375420ef46cf73008f9e78229af62f86c"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.6.0","labelRegex":"^v8.6.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/145241","number":145241,"mergeCommit":{"message":"[Enterprise
Search] Add cron scheduling support to Kibana
(#145241)","sha":"1192e4f375420ef46cf73008f9e78229af62f86c"}}]}]
BACKPORT-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:EnterpriseSearch v8.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants