-
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
[AppServices] Space privilege "Index pattern management" read still shows delete button (#53682) #115390
[AppServices] Space privilege "Index pattern management" read still shows delete button (#53682) #115390
Conversation
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.
Works well, just a couple of comments and tests need to be fixed
IndexedFieldsTableProps, | ||
IndexedFieldsTableState | ||
> { | ||
const withHooks = (Comp: any) => { |
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.
Could you provide types instead of using any
?
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.
done!
// @ts-expect-error invalid lang type | ||
const items: ScriptedFieldItem[] = [{ name: '1', lang: 'Elastic', script: '' }]; | ||
const items: ScriptedFieldItem[] = [ | ||
// @ts-expect-error invalid lang type |
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'm not sure why there's an expect error statement. Perhaps a valid lang type could be provided if thats indeed the problem.
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.
updated with a valid lang
💚 Build SucceededMetrics [docs]Async chunks
Unknown metric groupsReferences to deprecated APIs
History
To update your PR or re-run it, just comment with: |
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.
Looks great, works well!
…hows delete button (elastic#53682) (elastic#115390) * [AppServices] Space privilege Index pattern management read still shows delete button (elastic#53682)
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
Summary
Space privilege "Index pattern management" read still shows edit and delete buttons. Also, the buttons to add new fields are not removed
Normal fields
Scripted fields
Checklist
Delete any items that are not applicable to this PR.