Skip to content

Conversation

@cee-chen
Copy link
Contributor

Summary

Follow up to #77258 - I forgot to export the helper :dead_inside:

I also realized that we should add some kind of fallback for HTTP errors without an attributes.errors array/key (applies to HTTP errors that aren't ours, and some of our returned server errors). The messages key works really well for this purpose since it's required by Kibana's response factory.

Checklist

- all http error messages should still be expected to contain a message key, so should be a reliable fallback
@cee-chen cee-chen added Feature:Plugins release_note:skip Skip the PR/issue when compiling release notes v7.10.0 labels Sep 16, 2020
@cee-chen cee-chen requested a review from a team September 16, 2020 03:05
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

@kbn/optimizer bundle module count

id value diff baseline
enterpriseSearch 271 +1 270

async chunks size

id value diff baseline
enterpriseSearch 432.4KB +2.3KB 430.1KB

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

@cee-chen cee-chen merged commit c84c347 into elastic:master Sep 16, 2020
@cee-chen cee-chen deleted the flash-api-messages branch September 16, 2020 15:30
cee-chen pushed a commit that referenced this pull request Sep 16, 2020
* Fix missing export 🤦‍♀️

* Add fallback for http errors without an errors array

- all http error messages should still be expected to contain a message key, so should be a reliable fallback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Plugins release_note:skip Skip the PR/issue when compiling release notes v7.10.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants