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

[EPM] Use NP registerFeature #49105

Closed

Conversation

jfsiii
Copy link
Contributor

@jfsiii jfsiii commented Oct 23, 2019

@rudolf pointed me to the availability of this feature. Used code from #44664

alvarezmelissa87 and others added 30 commits October 17, 2019 14:01
This package is only being referenced in OSS Kibana, though it was
defined in X-Pack causing issues for OSS builds.

Signed-off-by: Tyler Smalley <[email protected]>
…r product testing, and more unit tests (elastic#48471)

## Summary

* Adds stable alerting id's by using the alert params.
* Currently does a manual walk through of the alert params to find the stable id
* Updated all of the endpoints to take either of the two id's.
* Added several scripts to support performance testing ad-hoc such as `post_x_signals.sh`
* Added scripts to support converting from saved searches to alerts.
* Consolidated and fixed a lot of the backend types
* Added unit tests against the router endpoints
* elastic#47013

### 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](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility)~~

~~- [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)~~

~~- [ ] [Documentation](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials~~

- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios

~~- [ ] This was checked for [keyboard-only and screenreader accessibility](https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Accessibility#Accessibility_testing_checklist)~~

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)
- [ ] This includes a feature addition or change that requires a release note and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)
We need to either disable async loading, or defer exection. In IE11,
we're running into an issue where the logout page is executing before
the vendors file.

Signed-off-by: Tyler Smalley <[email protected]>
…stic#48301)

* Remove courier and search poller and move to time filter service

* Remove notifyShouldFetch function
…NP (elastic#47643)

* Migrate the elasticsearch admin client

* initial router migration

* update the code service request

* more routes migration

* remove Boom

* remove redirect route

* test

* more route

* addressing comments

* remove the notFound

* Revert "remove Boom"

This reverts commit 7eda19e.

* handle isBoom

* more fixes

* minor fix

* shim security useRbacForRequest
* Added 5 second sleep to let thte page load before checking for title.

* Made changes to Rollups page object, added data test subjects to some elements, added function to get Indices to indexmanagement page.

* Removed 5 second wait from old commit,

* Updated home page for a more simplified create rollups method. Simplified data for the rollups to use a simple data structure rather than using makelogs.

* Added stop to the previous rollup job that ran. Added some timeouts to wait for the rollup to run. Added future data to be rolled into hybrid index pattern. Added some custom handling for creating different types of index patterns.

* Added forking condition for if the create index pattern button has the dropdown due to rollup data being present and to handle that case. Changed assertion for rollup job test to ensure that there is one index created with the proper name from the rollup job. Made adjustment to cron expression to run every 10 seconds. Added deletion clauses for all rollup jobs, index patterns and indices to ensure proper teardown.

* Added navigate to the discover page and verify the number of hits.

* Fixed assertion: Not supposed to contain hits.

* Fixing the button that's being searched for.

* Made adjustment to setings page due to test failures.

* Made adjustment to setings page due to test failures.

* Made a change to the order of the parameters for createIndexPattern which was causing non rollup index patterns to break. Also added new conditional and function to click on rollup index pattern button.

* Changed ciGroup and also added logging statements to rollup jobs test.

* Trying an additional wait to see if there is a race condition.

* Changed timing of when rollup job is stopped. It was getting stopped before having triggered.

* Added  waitlogic for condition rather than hardcoded skeep. Used cheerio methods to parse table instead of bluebird's map async. Updated tests assertiuons to ensure the rollup has triggered and produced the right number of documents. Tested many times with Throttling and headless mode enabled.

* Returned the method reloadIndicesButton back to the page object instead of modifying it.

* Changed CI job to run test repeatedly.

* Forgot some script omissions.

* Reverting the script changes. Did not work.

* Readded config to run tests repeatedly per Dima.

* Added additional config for running CI tests.

* Fixed config error.

* Removed extra rollup cration step.

* Made edits per review and added some comments to clarify functions purposes.

* Added explanation of assertion and change that the rollup_info file was renamed.

* Adjusted assertion to compensate for CI's slow network.

* Split the hybrid index pattern test out and rollup job to be in separate files. Mocked out rollups and cleaned up log statements.

* Added load empty kibana to reset kibana to an empty state.

* Removed duplicate file and move method over from it. Updated references.

* Renamed test suite to hybrid index pattern as that's what the test entails

* Fixed missed reference rename.

* Fixed mistaken async keyword causing unhandled rejection error. Also deleted rollup job in hybrid index pattern test in after hook. Renoved log statements.

* Reverted changes to build scripts to normal.

* Fixed jobs file to match upstream due to a missed fix in a merge conflict.

* Added remainder of CI groups to job.

* Removed whitespace error.

* Made fixes per CJs review. Fixed clashing variable names. Reverted rollup job test to assert using rollups table. Changed group back to ciGroup1. Removed duplicate teardown index deletion calls.

* Created more concrete assertion for checking if hybrid index pattern was created. Some refactorings. Changed Math.floor() to Date.now() for avoidance of name collisions.

* Removed the data.json file.

* Addressed nits.
* [Code] code viewer for APM integration
Previously, error messages were just output within the toast as raw text which could result in overflows and overall unreadable results. This update fixes it by providing a "View details" button which opens a modal with the properly formatted error message. Plain text error message up to 140 character will still be shown in the toast itself.
…#48440)

* [ML] Adding detector descriptions to advanced wizard

* renaming things

* reverting accidentally added refactor
* [ML] Fixing missing advanced job summary items

* updating translations
* [ML] Fixing empty validation list in wizards

* updating translations

* updating snapshot
* EUIficate Vega options tab

* Update  list of dependencies

* Fix comments

* Adjust styles
…stic#48625)

* [ML] Disable exclude frequent if no by or over has been selected

* fixing typo in comment
* main and nav landmark a11y fixes

* deduping i18n keys

* renaming appNav aria-label prop
Fixes deprecated API endpoints _data_frame/transforms/ with the _transform/ replacement.
… filtering (elastic#47500)

* Convert from large terms agg to multiple smaller composite

* Fixing bug in snapshot

* Reducing duplicate code for composite agg requests

* Adding filter for last 24 hours

* Creating a helper for the afterKey handlers
* Add ability to use ram disk for jenkins workspace

* Re-combine ciGroup agents

* Address some PR feedback / questions

* Add --preserve-root
Spencer and others added 4 commits October 24, 2019 17:02
Moved `registerFeature` from `init` to plugin setup.

Moved rest of init into `createSetupShim`. `init` is now

```ts
init(server: Legacy.Server) {
    const { initializerContext, coreSetup, pluginsSetup } = createSetupShim(server);

    new Plugin(initializerContext).setup(coreSetup, pluginsSetup);
  },
```

Moved feature (argument for `registerFeature`) to separate file.

Renamed plugin-specific `CoreSetup` to `EPMCoreSetup`
@jfsiii jfsiii requested a review from a team as a code owner October 25, 2019 01:09
@jfsiii jfsiii requested a review from a team October 25, 2019 01:09
@jfsiii jfsiii requested review from a team as code owners October 25, 2019 01:09
@jfsiii jfsiii removed request for a team October 25, 2019 01:09
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@jfsiii jfsiii force-pushed the feature-integrations-manager branch 2 times, most recently from d9a5acf to 363d3bf Compare October 28, 2019 16:35
@jfsiii jfsiii closed this Oct 29, 2019
@jen-huang jen-huang added Team:Fleet Team label for Observability Data Collection Fleet team and removed Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services labels Mar 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:EPM Fleet team's Elastic Package Manager (aka Integrations) project Team:Fleet Team label for Observability Data Collection Fleet team
Projects
None yet
Development

Successfully merging this pull request may close these issues.