[ML] Add kibana setting for file data visualizer max file size#64427
Conversation
|
Pinging @elastic/ml-ui (:ml) |
peteharverson
left a comment
There was a problem hiding this comment.
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.
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.
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.
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'; |
| ==== Machine learning | ||
|
|
||
| [horizontal] | ||
| `ml:fileDataVisualizerMaxFileSize`:: Sets the file size limit when importing |
There was a problem hiding this comment.
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 |
💚 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 <elasticmachine@users.noreply.github.com> Co-authored-by: lcawl <lcawley@elastic.co>
… (#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 <elasticmachine@users.noreply.github.com> Co-authored-by: lcawl <lcawley@elastic.co> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: lcawl <lcawley@elastic.co>
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.