-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[ML] Add kibana setting for file data visualizer max file size #64427
[ML] Add kibana setting for file data visualizer max file size #64427
Conversation
Pinging @elastic/ml-ui (:ml) |
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.
Tested and LGTM. Just one typo to correct I think.
Is this edit to the docs still valid now that the setting has been moved into the advanced settings page? #64006
retest |
@elasticmachine merge upstream |
coreSetup.uiSettings.register({ | ||
[FILE_DATA_VISUALIZER_MAX_FILE_SIZE]: { | ||
name: i18n.translate('xpack.ml.maxFileSizeSettingsName', { | ||
defaultMessage: 'File Data Visualizer maximum file upload size', |
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.
In the docs we don't differentiate between the "Data Visualizer" and the "File Data Visualizer" (I think it's because they're both on the same "Data Visualizer" tab). IMO it's not necessary to have the "File" qualifier here either:
defaultMessage: 'File Data Visualizer maximum file upload size', | |
defaultMessage: 'Data Visualizer maximum file upload size', |
value: MAX_FILE_SIZE, | ||
description: i18n.translate('xpack.ml.maxFileSizeSettingsDescription', { | ||
defaultMessage: | ||
'Sets the file size limit when importing data in the File Data Visualizer. The highest supported value for this setting is 1GB.', |
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.
Ditto re "File Data Visualizer":
'Sets the file size limit when importing data in the File Data Visualizer. The highest supported value for this setting is 1GB.', | |
'Sets the file size limit when importing data in the Data Visualizer. The highest supported value for this setting is 1GB.', |
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
export const FILE_DATA_VISUALIZER_MAX_FILE_SIZE = 'ml:fileDataVisualizerMaxFileSize'; |
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.
Not mandatory, but if you follow my other suggestions, it might be a good idea to synch here too:
export const FILE_DATA_VISUALIZER_MAX_FILE_SIZE = 'ml:fileDataVisualizerMaxFileSize'; | |
export const FILE_DATA_VISUALIZER_MAX_FILE_SIZE = 'ml:DataVisualizerMaxFileSize'; |
|
||
[horizontal] | ||
`ml:fileDataVisualizerMaxFileSize`:: Sets the file size limit when importing |
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.
If you accept my suggestion about changing the setting name, it will need to be updated here too:
`ml:fileDataVisualizerMaxFileSize`:: Sets the file size limit when importing | |
`ml:DataVisualizerMaxFileSize`:: Sets the file size limit when importing |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
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.
LGTM ⚡
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
…ic#64427) * [ML] Add kibana setting for file data visualizers max file size * adding failsafe for setting * fixing id * [DOCS] Updates Data Visualizer setting Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: lcawl <[email protected]>
… (#64624) * [ML] Add kibana setting for file data visualizers max file size * adding failsafe for setting * fixing id * [DOCS] Updates Data Visualizer setting Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: lcawl <[email protected]> Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: lcawl <[email protected]>
Configuring the max file upload size is now done via a setting in the Advanced Settings page of kibana's management app.
Reverts some of the changes made in #62752
Basic validation looks for a data string using a regex. max and min testing is not possible.