Skip to content

Conversation

@mshustov
Copy link
Contributor

@mshustov mshustov commented Oct 26, 2020

Summary

Closes #80966

Checklist

For maintainers

Plugin API Changes

SavedObjects export API support exporting SavedObjects with circular references.

@mshustov mshustov added Team:Core Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// release_note:plugin_api_changes Contains a Plugin API changes section for the breaking plugin API changes section. v8.0.0 v7.11.0 labels Oct 26, 2020
@mshustov mshustov marked this pull request as ready for review October 26, 2020 10:43
@mshustov mshustov requested a review from a team as a code owner October 26, 2020 10:43
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-platform (Team:Platform)

Comment on lines -33 to +32
throw Boom.badRequest(
`circular reference: ${[...path, object]
.map((obj) => `[${obj.type}:${obj.id}]`)
.join(' ref-> ')}`
);
continue;
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure, but can we now delete the path.delete(object); L47?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think so. It acts as a pop operation in 'path stack'

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

@mshustov mshustov merged commit 82cf8fd into elastic:master Oct 28, 2020
@mshustov mshustov deleted the issue-80966-so-circular-refs branch October 28, 2020 10:43
mshustov added a commit to mshustov/kibana that referenced this pull request Oct 28, 2020
* support export for SO with circular refs

* add a test for export to space

* update test case names

* add test with complex deps tree
mshustov added a commit that referenced this pull request Oct 28, 2020
* support export for SO with circular refs

* add a test for export to space

* update test case names

* add test with complex deps tree
gmmorris added a commit to gmmorris/kibana that referenced this pull request Oct 29, 2020
…kibana into alerts/convert-to-tm-intervals

* 'alerts/convert-to-tm-intervals' of github.com:gmmorris/kibana: (88 commits)
  fixed jest
  APM Experiments settings (elastic#81554)
  [Resolver] Enable resolver test plugin tests (elastic#81339)
  Add TS project references for inspector  (elastic#81792)
  Add uri decode to es_ui_shared and fix navigation issues with special characters (elastic#80835)
  [Fleet] Rename ingestManager translations fleet (elastic#81837)
  [Logs UI] Transmit and render array field values in log entries (elastic#81385)
  Audit Logging: use the original url (elastic#81282)
  [User experience] Fix JS error rate (elastic#81512)
  [UX] Add median/percentile info in titles (elastic#79824)
  Support export for SO with circular refs (elastic#81582)
  Get rid of  global types (elastic#81739)
  [APM] Fix precommit script (elastic#81594)
  skips overview tests (elastic#81877)
  [Security Solution][Case] Fix connector's labeling (elastic#81824)
  Added simple test, which only covers successful case when edit happened right after task was complete previous execution
  [Maps] Fix EMS test (elastic#81856)
  [Security Solutions][Detections] - Fix bug, last response not showing for disabled rules (elastic#81783)
  skip flaky suite (elastic#81853)
  Fixed type checks and unit tests
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:plugin_api_changes Contains a Plugin API changes section for the breaking plugin API changes section. Team:Core Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// v7.11.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for cyclic SO references

4 participants