Skip to content

Conversation

@kertal
Copy link
Member

@kertal kertal commented Sep 28, 2020

Summary

Improve error message at search.aggs.param_types.field, it was hard coded to "field", now it's displaying the fieldName that caused the error.

Before:
Bildschirmfoto 2020-09-28 um 15 36 55
After:
Discover_-_Elastic

Note that these messages currently pop up at several test failures:
#39842
#78373

@kertal kertal self-assigned this Sep 28, 2020
@kertal kertal changed the title Improve error message Improve invalid field error message at search.aggs.param_types.field Sep 28, 2020
@kertal kertal added Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// release_note:skip Skip the PR/issue when compiling release notes v8.0.0 v7.10.0 v7.8.0 and removed v7.8.0 labels Sep 28, 2020
@kertal kertal marked this pull request as ready for review September 28, 2020 13:57
@kertal kertal requested a review from a team as a code owner September 28, 2020 13:57
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

'Saved {fieldParameter} parameter is now invalid. Please select a new field.',
values: {
fieldParameter: '"field"',
fieldParameter: `"${fieldName}"`,
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this is targeting a minor, not a patch, we can create new translations. My preference would be a message like Saved field "order_date" is invalid for use with the "terms" aggregation. Please select a new field.

Copy link
Member Author

Choose a reason for hiding this comment

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

@wylieconlon done. much better this way 👍
Discover_-_Elastic

@kertal kertal requested a review from wylieconlon September 29, 2020 14:34
@wylieconlon
Copy link
Contributor

@kertal I don't think you pushed the latest code?

@kertal
Copy link
Member Author

kertal commented Sep 29, 2020

@wylieconlon thx, yes, just a screenshot isn't sufficient 😄 , pushed it now

Copy link
Contributor

@wylieconlon wylieconlon left a comment

Choose a reason for hiding this comment

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

LGTM! Did not run the code

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

page load bundle size

id value diff baseline
data 1.3MB +202.0B 1.3MB

History

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

phillipb added a commit to phillipb/kibana that referenced this pull request Sep 30, 2020
…aly-detection-partition-field

* 'master' of github.com:elastic/kibana: (37 commits)
  [UiActions] Don't throw an error if there are no compatible actions to execute (elastic#78917)
  [Observability] Kibana nav when docked overlaps the content of the pages. (elastic#78593)
  Invalid `searchSourceJSON` causes saved object migration to fail (elastic#78535)
  update vega version (elastic#78390)
  Fix warning text doesn't get displayed on filters with custom filter name (elastic#78617)
  [ILM] Data tier notices should reflect tier preferences (elastic#78398)
  [APM] Service Map: `Not Defined` option doesn't work properly (elastic#77757)
  Improve invalid field error message at search.aggs.param_types.field (elastic#78587)
  Remove isDeprecated flag on visType (elastic#78820)
  Remove unused elasticsearch.preserverHost setting (elastic#78608)
  Fix condition and adjust tests (elastic#78898)
  [UX] Add percentile selector (elastic#78562)
  [ML] Replace use of rest_total_hits_as_int with track_total_hits (elastic#78423)
  expression service docs (elastic#78774)
  [Functional] Wait for the page to load and then click the new vis button (elastic#78725)
  [TSVB] No data in visualizations with annotations (elastic#78794)
  [kbn/ui-shared-deps] track asset sizes (elastic#78718)
  delete target before building (elastic#78665)
  Move indexPattern.popularizeField into discover (elastic#77668)
  [Security Solution][Resolver]Add backdrop to pills (elastic#78625)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// v7.10.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants