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

[ML] Fix check for watcher being enabled #43025

Conversation

jgowdyelastic
Copy link
Member

@jgowdyelastic jgowdyelastic commented Aug 9, 2019

Fixes issue where it's not possible to create a watch after creating an ML job

PR #35301 changed the feature properties watcher is adding.
We originally relied on isAvailable being set as a catch-all for license and plugin enabled checks.
Watcher now only uses the license status property, which i believe is the default if the plugin doesn't register a license check generator using registerLicenseCheckResultsGenerator

If the user has disabled watcher in their elasticsearch.yml, this check will fail due to an issue in the way watcher is checking feature enablement. (#43023)

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

- [ ] This was checked for cross-browser compatibility, including a check against IE11
- [ ] Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support
- [ ] Documentation was added for features that require explanation or tutorials
- [ ] Unit or functional tests were updated or added to match the most common scenarios
- [ ] This was checked for keyboard-only and screenreader accessibility

For maintainers

- [ ] This was checked for breaking API changes and was labeled appropriately
- [ ] This includes a feature addition or change that requires a release note and was labeled appropriately

@jgowdyelastic jgowdyelastic added bug Fixes for quality problems that affect the customer experience review non-issue Indicates to automation that a pull request should not appear in the release notes release_note:fix :ml v8.0.0 v7.4.0 v7.3.1 labels Aug 9, 2019
@jgowdyelastic jgowdyelastic requested a review from a team as a code owner August 9, 2019 14:24
@jgowdyelastic jgowdyelastic self-assigned this Aug 9, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui

Copy link
Contributor

@alvarezmelissa87 alvarezmelissa87 left a comment

Choose a reason for hiding this comment

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

LGTM ⚡️

Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

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

LGTM

@jgowdyelastic jgowdyelastic removed the non-issue Indicates to automation that a pull request should not appear in the release notes label Aug 9, 2019
Copy link
Contributor

@walterra walterra left a comment

Choose a reason for hiding this comment

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

LGTM

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@jgowdyelastic jgowdyelastic merged commit a209f1f into elastic:master Aug 9, 2019
@jgowdyelastic jgowdyelastic deleted the fix-check-for-watcher-being-enabled branch August 9, 2019 15:55
jgowdyelastic added a commit to jgowdyelastic/kibana that referenced this pull request Aug 9, 2019
* [ML] Fix check for watcher being enabled

* adding comments

* typo

* fixing test
jgowdyelastic added a commit to jgowdyelastic/kibana that referenced this pull request Aug 9, 2019
* [ML] Fix check for watcher being enabled

* adding comments

* typo

* fixing test
jgowdyelastic added a commit that referenced this pull request Aug 9, 2019
* [ML] Fix check for watcher being enabled

* adding comments

* typo

* fixing test
jgowdyelastic added a commit that referenced this pull request Aug 9, 2019
* [ML] Fix check for watcher being enabled

* adding comments

* typo

* fixing test
jloleysens added a commit to jloleysens/kibana that referenced this pull request Aug 12, 2019
…p-metrics-selectall

* 'master' of github.com:elastic/kibana: (22 commits)
  [Code]: downgrade the log level of error message from subprocess (elastic#42925)
  [Code] Cancel clone/update job in the middle if disk space over the watermark (elastic#42890)
  Add Kibana App specific URL to the help menu (elastic#34739) (elastic#42580)
  [Maps] refactor createShapeFilterWithMeta to support more than just polygons (elastic#43042)
  Skip flaky es_ui_shared/request tests.
  Pass uiSettings to all data plugin services (elastic#42159)
  [SIEM] Upgrades react-redux and utilize React.memo for performance gains  (elastic#43029)
  [skip-ci][Maps] add maki icon sheet to docs (elastic#43063)
  Adding "style-src 'unsafe-inline' 'self'" to default CSP rules (elastic#41305)
  Update dependency commander to v3 (elastic#43041)
  Update dependency @percy/agent to ^0.10.0 (elastic#40517)
  [Maps] only show top hits checkbox if index has date fields (elastic#43056)
  run chained_controls on Firefox to catch regression (elastic#43044)
  fixing issue with dashboard csv download (elastic#42964)
  Expose task manager as plugin instead of server argument (elastic#42966)
  Expose createRouter from HttpService, prepare handlers for context introduction (elastic#42686)
  [Code] disk watermark supports percentage and absolute modes (elastic#42987)
  [apps/dashboard] skip part of filtering tests on FF (elastic#43047)
  [ML] Kibana management jobs list (elastic#42570)
  [ML] Fix check for watcher being enabled (elastic#43025)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience :ml release_note:fix review v7.3.1 v7.4.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants