Skip to content
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

Fix removing a single field formatter #141078

Merged
merged 3 commits into from Sep 21, 2022

Conversation

Dosant
Copy link
Contributor

@Dosant Dosant commented Sep 20, 2022

Summary

fix #134873

When updating a data view saved object, make sure we send an empty field format object instead of an undefined one when there are no field formats.
I think the fix makes sense, especially considering that this is how we treat sourceFilters and runtimeFieldMap

I saw this attempt to fix it #134874, but it looks like it is a more risky change

@Dosant Dosant marked this pull request as ready for review September 20, 2022 15:09
@Dosant Dosant requested a review from a team as a code owner September 20, 2022 15:09
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-services (Team:AppServicesUx)

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
dataViews 42.9KB 42.9KB -17.0B

History

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

Copy link
Contributor

@mattkime mattkime left a comment

Choose a reason for hiding this comment

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

Nice, I like this effort compared to mine as its much simpler. code changes look good!

@mattkime
Copy link
Contributor

Worth backporting to 8.4

@Dosant Dosant added the v8.4.3 label Sep 21, 2022
@Dosant Dosant merged commit f44f1d1 into elastic:main Sep 21, 2022
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Sep 21, 2022
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.4

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

jloleysens added a commit to jloleysens/kibana that referenced this pull request Sep 21, 2022
* main:
  [SearchBar] Allow show refresh button as an icon (elastic#141088)
  [Files] Added usage counters for delete, unshare and download (elastic#140091)
  Fix removing a single field formatter  (elastic#141078)
  [APM] Move service metric config  to kibana advanced settings (elastic#141147)
  Synthetics project update improvements (elastic#140990)
kibanamachine added a commit that referenced this pull request Sep 21, 2022
* Fix removing a single field formatter  (#141078)

(cherry picked from commit f44f1d1)

* revert importing lodash as _

Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[data views] Unable to remove sole field formatter
5 participants