Skip to content

[Index management] Fix errors with validation#56072

Merged
alisonelizabeth merged 1 commit intoelastic:masterfrom
alisonelizabeth:bugfix/index_management_validation
Jan 28, 2020
Merged

[Index management] Fix errors with validation#56072
alisonelizabeth merged 1 commit intoelastic:masterfrom
alisonelizabeth:bugfix/index_management_validation

Conversation

@alisonelizabeth
Copy link
Copy Markdown
Contributor

This PR fixes a few minor bugs related to validation in Index Management that I came across while working on the test plan.

  1. The force merge form was providing a string to the isInvalid prop instead of a boolean.
  2. The segments input in the force merge form was using EuiFieldText instead of EuiFieldNumber.
  3. Console error when a user deletes the json input in the edit settings editor and clicks "Save". The "Save" button is now disabled.

Screenshots

Screen Shot 2020-01-27 at 4 11 51 PM

Screen Shot 2020-01-27 at 4 12 15 PM

@alisonelizabeth alisonelizabeth added Feature:Index Management Index and index templates UI v8.0.0 Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// release_note:skip Skip the PR/issue when compiling release notes v7.7.0 labels Jan 27, 2020
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/es-ui (Team:Elasticsearch UI)

@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Copy Markdown
Contributor

@jloleysens jloleysens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy with these changes! Nice work @alisonelizabeth


<EuiForm
isInvalid={this.forcemergeSegmentsError()}
isInvalid={!!this.forcemergeSegmentsError()}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it still possible for this error condition to come about given the EuiFieldNumber change?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could type a negative number so I think the validation is still necessary.

@alisonelizabeth alisonelizabeth merged commit b7eef03 into elastic:master Jan 28, 2020
@alisonelizabeth alisonelizabeth deleted the bugfix/index_management_validation branch January 28, 2020 13:33
alisonelizabeth added a commit to alisonelizabeth/kibana that referenced this pull request Jan 28, 2020
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jan 28, 2020
* master: (21 commits)
  [SIEM][Detection Engine] critical blocker updates to latest ECS version
  [Monitoring] Fix inaccuracies in logstash pipeline listing metrics (elastic#55868)
  Resetting errors and removing duplicates (elastic#56054)
  Add flag to opt out from sub url tracking (elastic#55672)
  [SIEM][Detection Engine] critical bug, fixes duplicate tags
  [ML] Anomaly Detection: Fix persist/restore of refreshInterval in globalState. (elastic#56113)
  [ML] Single Metric Viewer: Fix annnotations refresh. (elastic#56107)
  adapt ObjectToConfigAdapter.getFlattenedPaths to consider arrays as final values (elastic#56105)
  Add Appender.receiveAllLevels option to fix LegacyAppender (elastic#55752)
  [ML] Process delimited files like semi-structured text (elastic#56038)
  Charts plugin (combining ui/color_maps and EuiUtils) (elastic#55469)
  fix tutorial documentation (elastic#55996)
  [ML] Fix persist/restore of time/refreshInterval in data visualizer. (elastic#56122)
  [Index Management] Fix errors with validation (elastic#56072)
  [Index Management] Add try/catch when parsing index filter from URI (elastic#56051)
  [NP] add HTTP resources testing strategies (elastic#54908)
  [ML] Single Metric Viewer: Fix brush update on short recent timespans. (elastic#56125)
  [Uptime] Add timeout for slow process to skipped functional tests (elastic#56065)
  refactor (elastic#56121)
  Move tests in dashboard into appropriate folders (elastic#55304)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Index Management Index and index templates UI release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// v7.7.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants