Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Migrate all Kibana server side APIs to call ES-reporting APIs #177

Merged

Conversation

zhongnansu
Copy link
Member

@zhongnansu zhongnansu commented Nov 10, 2020

Issue #, if available:

Description of changes:

Major Change

  • Add converters between ES(backend) model and UI model
  • Refactor every API call related to reports and report definition
    • create/get/delete/update/list...

Minor

  • Fix in-context menu csv wrong time range parameters
  • remove origin from delivery in UI schema, Add to "core_params" in UI schema

TODO:

  • remove deprecated reports-scheduler related code in kibana-reports plugin
  • apply fromIndex parameter for getAll APIs

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@zhongnansu zhongnansu requested review from davidcui1225, akbhatta, joshuali925, anirudha and abbashus and removed request for abbashus November 10, 2020 00:11
@zhongnansu zhongnansu marked this pull request as ready for review November 10, 2020 00:13
@@ -74,6 +81,7 @@ export const createReport = async (
);
} else {
// report source can only be one of [saved search, visualization, dashboard]
// Check if security is enabled. TODO: is there a better way to check?
Copy link
Contributor

Choose a reason for hiding this comment

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

Whats the current check for if security is enabled? the if block with the request.headers.cookie object?

Copy link
Member Author

Choose a reason for hiding this comment

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

From my test, if security is not enabled, request.header.cookie will be undefined

Copy link
Contributor

@davidcui1225 davidcui1225 left a comment

Choose a reason for hiding this comment

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

Please address comments before merging

@zhongnansu zhongnansu merged commit 2d234d5 into opendistro-for-elasticsearch:dev Nov 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants