-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Dataset Quality] Add fix it flow for field limit #195561
Open
achyutjhunjhunwala
wants to merge
59
commits into
elastic:main
Choose a base branch
from
achyutjhunjhunwala:add-fix-it-flow-for-field-limit
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+3,679
−655
Open
Changes from 56 commits
Commits
Show all changes
59 commits
Select commit
Hold shift + click to select a range
b34b9f1
Fix refresh table breaking for summary
achyutjhunjhunwala d1fdaeb
Add timeout to find
achyutjhunjhunwala ac496c4
Merge branch 'elastic:main' into main
achyutjhunjhunwala 12cad21
Merge branch 'elastic:main' into main
achyutjhunjhunwala db7d63b
Revert "Add timeout to find"
achyutjhunjhunwala c3a2774
Revert "Fix refresh table breaking for summary"
achyutjhunjhunwala 9ba8128
Merge branch 'elastic:main' into main
achyutjhunjhunwala 425cdb4
Merge branch 'elastic:main' into main
achyutjhunjhunwala a5ccc32
Merge branch 'elastic:main' into main
achyutjhunjhunwala 1ab7806
Merge branch 'elastic:main' into main
achyutjhunjhunwala abad280
Merge branch 'elastic:main' into main
achyutjhunjhunwala 14a3620
Merge branch 'elastic:main' into main
achyutjhunjhunwala 0dd0eb1
Merge branch 'elastic:main' into main
achyutjhunjhunwala 2dd64cc
Merge branch 'elastic:main' into main
achyutjhunjhunwala 3833283
Merge branch 'elastic:main' into main
achyutjhunjhunwala a1a1ce1
Merge branch 'elastic:main' into main
achyutjhunjhunwala 6278a51
Merge branch 'elastic:main' into main
achyutjhunjhunwala 14161a3
Merge branch 'elastic:main' into main
achyutjhunjhunwala 2df6d10
Merge branch 'elastic:main' into main
achyutjhunjhunwala 99d8084
Merge branch 'elastic:main' into main
achyutjhunjhunwala 28e789c
Merge branch 'elastic:main' into main
achyutjhunjhunwala 59fc802
Merge branch 'elastic:main' into main
achyutjhunjhunwala dec1cae
Merge branch 'elastic:main' into main
achyutjhunjhunwala 33c0c60
Merge branch 'elastic:main' into main
achyutjhunjhunwala 6f5c1c6
Merge branch 'elastic:main' into main
achyutjhunjhunwala fbf7d08
Merge branch 'elastic:main' into main
achyutjhunjhunwala 55d1cff
Merge branch 'elastic:main' into main
achyutjhunjhunwala 73ae28d
Merge branch 'elastic:main' into main
achyutjhunjhunwala b475502
Merge branch 'elastic:main' into main
achyutjhunjhunwala 53e9a19
Merge branch 'elastic:main' into main
achyutjhunjhunwala 19015ad
Add code to implement Fix It flow for Field Limits
achyutjhunjhunwala 7c7e3e0
Merge branch 'main' into add-fix-it-flow-for-field-limit
achyutjhunjhunwala a5f32c6
Add code logic to show a warning message for ignore_malformed
achyutjhunjhunwala ebc986c
Remove unwanted tests
achyutjhunjhunwala c8f2a1c
Merge branch 'main' into add-fix-it-flow-for-field-limit
achyutjhunjhunwala fd3df01
Fix text for situation where previously field_limit existed
achyutjhunjhunwala 6875a73
Update x-pack/plugins/observability_solution/dataset_quality/common/t…
achyutjhunjhunwala f1ba3e7
Fix checktype issues
achyutjhunjhunwala 9fd87ff
Fix pipeline logic for integrations and non integrations
achyutjhunjhunwala 2727ad0
Merge branch 'main' into add-fix-it-flow-for-field-limit
achyutjhunjhunwala 88b908c
Fix certain DOM level review comments
achyutjhunjhunwala 6c90898
Fix locator for Management plugin
achyutjhunjhunwala c4f2304
Fix logic to move fix it flow to the server side
achyutjhunjhunwala 54c07c7
Fix more review comments
achyutjhunjhunwala 14f8dad
Fix message callout and state machine
achyutjhunjhunwala 8887f70
Fix checking of response from settings API
achyutjhunjhunwala cd3fa22
Migrate and rewrote Deployment Agnostic Tests for Settings
achyutjhunjhunwala 413373d
Add Deployment Agnostic Tests for rollover API
achyutjhunjhunwala e76d91e
Add Deployment Agnostic Tests for Update field Limit API
achyutjhunjhunwala f416124
Merge branch 'main' into add-fix-it-flow-for-field-limit
achyutjhunjhunwala a9baa83
Fix checktypes and lint issues
achyutjhunjhunwala 73662db
Fix ingest pipeline design
achyutjhunjhunwala d04fac5
Add stateful ftr tests
achyutjhunjhunwala ed33c6a
Merge branch 'main' into add-fix-it-flow-for-field-limit
achyutjhunjhunwala 2c548f8
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine 14dee9f
Fix tests for Logs DB and MKI issue
achyutjhunjhunwala ab3855e
Add serverless FTR tests
achyutjhunjhunwala de5db88
Fix Editor role permissions and tests
achyutjhunjhunwala 5f3c371
Fix Dima's review comments
achyutjhunjhunwala File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...ck/plugins/observability_solution/dataset_quality/common/utils/component_template_name.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
/* | ||
* There are index templates like this metrics-apm.service_transaction.10m@template which exists. | ||
* Hence this @ needs to be removed to derive the custom component template name. | ||
*/ | ||
export function getComponentTemplatePrefixFromIndexTemplate(indexTemplate: string) { | ||
if (indexTemplate.includes('@')) { | ||
return indexTemplate.split('@')[0]; | ||
} | ||
|
||
return indexTemplate; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we use the Management plugin locator and not the Index Management/Ingest Pipeline locators? I'm concerned that we hardcode the paths and if we change app/section id's in the future, this locator would not work properly. For Index Management, we recently added a locator that can be enhanced for templates: #195299. Ingest pipelines already has an existing locator that can be used for this use case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ElenaStoeva ,
thank you for pointing towards the Ingest Pipeline locator, that's really great.
For Component Template and Index Template, do you propose to extend the IndexManagementLocator instead of Management Locator ?
I don't this understand how this will break the existing Management Locator. The Management Locator will still break if app/section id's are changed in the future. I just tried adding more options.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's correct.
These changes won't break the Management Locator but there's a risk that the hardcoded paths that you added (e.g.
/data/index_management/component_templates/
) might not be valid at some point if we decide to change the index management section or app ID. Therefore,getLocation
would return an incorrect path. That's why it's safer if we use the Index Management/Ingest Pipelines locators as they take care of using the correct path components.