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

[Ingest Manager] Match package spec dataset->data_stream and config_templates->policy_templates renaming #78699

Merged
merged 15 commits into from
Oct 1, 2020

Conversation

jen-huang
Copy link
Contributor

@jen-huang jen-huang commented Sep 28, 2020

Summary

Part of #74842. This PR supports the following renaming work done for packages:

Method names, types, etc were also renamed as needed. API integration fixtures (test packages) were updated to match the package spec changes too.

Important: These test suites were skipped fc6a2ba and should be re-enabled ASAP in a follow up PR as soon as a public docker image with the new package changes becomes available.

There is a private docker image that I used to validate these tests locally with, but that image is not accessible to Kibana CI. All skipped tests passed with that image, with the only exception of 3db32e2, an expected failure as Endpoint package did not have the changes yet.

Testing

  1. Build local registry with new changes using instructions in PR Rename config to policy and dataset to datastream integrations#280 and comment Rename config to policy and dataset to datastream integrations#280 (comment)
  2. Point Kibana to use your local registry
  3. Comment out endpoint from default packages - Endpoint package is not available using the above registry instructions
  4. Start Kibana, everything should work normally

@jen-huang jen-huang added release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v7.10.0 v8.0.0 labels Sep 30, 2020
@jen-huang jen-huang marked this pull request as ready for review September 30, 2020 20:23
@jen-huang jen-huang requested a review from a team as a code owner September 30, 2020 20:23
@jen-huang jen-huang requested a review from a team September 30, 2020 20:23
@jen-huang jen-huang requested a review from a team as a code owner September 30, 2020 20:23
@elasticmachine
Copy link
Contributor

Pinging @elastic/ingest-management (Team:Ingest Management)

Copy link
Contributor

@jonathan-buttner jonathan-buttner left a comment

Choose a reason for hiding this comment

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

Security solution changes look good 👍

@@ -13,7 +13,7 @@ import {
export default function (providerContext: FtrProviderContext) {
const { loadTestFile, getService } = providerContext;

describe('endpoint', function () {
describe.skip('endpoint', function () {
Copy link
Contributor

Choose a reason for hiding this comment

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

Heads up @kevinlog we need to do this because of the breaking changes for dataset -> data_stream. We'll reenable as soon as the endpoint package with the same changes gets released: elastic/endpoint-package#89

Copy link
Contributor

@kevinlog kevinlog Sep 30, 2020

Choose a reason for hiding this comment

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

no problem, I have PR right now where I'm re-enabling our other tests due to the one faulty package. #78954

I'm happy to to wait on it since this PR seems more complicated. I could also re-enable everything after the package releases.

FYI @nnamdifrankie @jen-huang

Copy link
Contributor

Choose a reason for hiding this comment

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

After speaking with @jen-huang offline, it's OK to merge this PR #78954. Tests will be disabled again with this PR, but we'll re-enable again after the next package.

@@ -10,7 +10,7 @@ import { getRegistryUrl as getRegistryUrlFromIngest } from '../../../plugins/ing
export default function endpointAPIIntegrationTests(providerContext: FtrProviderContext) {
const { loadTestFile, getService } = providerContext;

describe('Endpoint plugin', function () {
describe.skip('Endpoint plugin', function () {
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@@ -6,48 +6,48 @@ Overall documentation of Ingest Management is now maintained in the `elastic/sta
Ingest Management enforces an indexing strategy to allow the system to automatically detect indices and run queries on it. In short the indexing strategy looks as following:

```
{dataset.type}-{dataset.name}-{dataset.namespace}
{data_stream.type}-{data_stream.dataset}-{data_stream.namespace}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ruflin could you look over the changes to this doc to make sure it's still accurate?

@jen-huang
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

async chunks size

id value diff baseline
ingestManager 1.1MB +41.0B 1.1MB

page load bundle size

id value diff baseline
ingestManager 509.8KB +19.0B 509.8KB

History

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

// if it's a dataset
if (service === 'dataset') {
// if it's a data stream
if (service === 'data_stream') {
// save the dataset name
dataset = type;
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't we be calling this dataStream now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this should still actually be dataset as it refers to data_stream.dataset i.e. auth (as in system.auth)

Copy link
Contributor

@skh skh left a comment

Choose a reason for hiding this comment

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

Thank you for the testing instructions! I tested this locally and everything works as described. 👍

(It would be great to get this merged soon, as I need to rebase #77986 on these changes.)

@jen-huang jen-huang merged commit 6d8f74a into elastic:master Oct 1, 2020
@jen-huang jen-huang deleted the ingest/package-renaming branch October 1, 2020 17:57
jen-huang added a commit to jen-huang/kibana that referenced this pull request Oct 1, 2020
…fig_templates`->`policy_templates` renaming (elastic#78699)

* Match elastic/package-spec#24 `datasets`->`data_streams` property renaming

* Match elastic/package-spec#24 `datasets.name`->`data_streams.dataset` property renaming

* Match elastic/package-spec#24 `/dataset`->`/data_stream` directory renaming

* Match elastic/package-spec#50 `config_templates`->`policy_templates` property renaming

* Update API integration test fixtures (test packages)

* Temporarily skip API integration tests

* Temporarily skip more API integration tests

* Pin to custom docker image, unskip test suites, clean up broken icon paths in test package manifests

* Skip the only (yay!) failing test suite

* Revert "Skip the only (yay!) failing test suite"

This reverts commit 3db32e2.

* Re-skip tests and revert docker image

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
jen-huang added a commit that referenced this pull request Oct 1, 2020
…fig_templates`->`policy_templates` renaming (#78699) (#79183)

* Match elastic/package-spec#24 `datasets`->`data_streams` property renaming

* Match elastic/package-spec#24 `datasets.name`->`data_streams.dataset` property renaming

* Match elastic/package-spec#24 `/dataset`->`/data_stream` directory renaming

* Match elastic/package-spec#50 `config_templates`->`policy_templates` property renaming

* Update API integration test fixtures (test packages)

* Temporarily skip API integration tests

* Temporarily skip more API integration tests

* Pin to custom docker image, unskip test suites, clean up broken icon paths in test package manifests

* Skip the only (yay!) failing test suite

* Revert "Skip the only (yay!) failing test suite"

This reverts commit 3db32e2.

* Re-skip tests and revert docker image

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
phillipb added a commit to phillipb/kibana that referenced this pull request Oct 1, 2020
…aly-detection-partition-field

* 'master' of github.com:elastic/kibana: (76 commits)
  Fix z-index of KQL Suggestions dropdown (elastic#79184)
  [babel] remove unused/unneeded babel plugins (elastic#79173)
  [Search] Fix timeout upgrade link (elastic#79045)
  Always Show Embeddable Panel Header in Edit Mode (elastic#79152)
  [Ingest]: add more test for transform index (elastic#79154)
  [ML] DF Analytics: Collapsable sections on results pages (elastic#76641)
  [Fleet] Fix agent policy change action migration (elastic#79046)
  [Ingest Manager] Match package spec `dataset`->`data_stream` and `config_templates`->`policy_templates` renaming (elastic#78699)
  Revert "[Metrics UI] Add ability to override datafeeds and job config for partition field (elastic#78875)"
  [ML] Update transform cloning to include description and new fields (elastic#78364)
  chore(NA): remove non existing plugin paths from case api integration tests (elastic#79127)
  [Ingest Manager] Ensure we trigger agent policy updated event when we bump revision. (elastic#78836)
  [Metrics UI] Display No Data context.values as [NO DATA] (elastic#78038)
  [Monitoring] Missing data alert (elastic#78208)
  [Lens] Fix embeddable title and description for reporting and dashboard tooltip (elastic#78767)
  [Lens] Consistent Drag and Drop styles (elastic#78674)
  [ML] Model management UI fixes and enhancements (elastic#79072)
  [Metrics UI] Add ability to override datafeeds and job config for partition field (elastic#78875)
  [Security Solution]Fix basepath used by endpoint telemetry tests (elastic#79027)
  update rum agent version which contains longtasks (elastic#79105)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants