-
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
base: main
Are you sure you want to change the base?
[Dataset Quality] Add fix it flow for field limit #195561
Conversation
...ails/degraded_field_flyout/possible_mitigations/field_limit/increase_field_mapping_limit.tsx
Show resolved
Hide resolved
Pinging @elastic/obs-ux-logs-team (Team:obs-ux-logs) |
const { body } = await supertestWithoutAuth | ||
const { body } = await roleScopedSupertestWithCookieCredentials | ||
.post(`/api/fleet/epm/custom_integrations`) |
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.
I think it wasn't intentional: Fleet API is public (no internal
in route path) and should be called with API key as it was before change.
I think you need to revert it and pass API key from test. You can get it similar to cookie header:
supertestAdminWithApiKey = await roleScopedSupertest.getSupertestWithRoleScope(
'admin',
{
withInternalHeaders: true,
}
);
Keep in mind to invalidate it in after
hook
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.
I get your point. The reason i did that was for all our tests, which are internal API, i was already generating roleScopedSupertestWithCookieCredentials
, so i though to use the same for Fleet packages.
But your point is valid as fleet api is public, i must authenticate using API key rather than header. I will get both API key (for Fleet) and headers for my test
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
| { | ||
pipeline: string; | ||
} | ||
); |
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.
For Component Template and Index Template, do you propose to extend the IndexManagementLocator instead of Management Locator ?
Yes, that's correct.
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.
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.
...i_integration/deployment_agnostic/apis/observability/dataset_quality/data_stream_settings.ts
Outdated
Show resolved
Hide resolved
💔 Build Failed
Failed CI StepsTest Failures
Metrics [docs]Module Count
Async chunks
Page load bundle
History
|
Summary
Closes - #190330
This PR implements the logic to support
Demo
Not possible, to many things to display 😆
What's Pending ?
Tests
How to setup a local environment
We will be setting up 2 different data streams, one with integration and one without. Please follow the steps in the exact order
This setup will give you 3 fields for testings