Skip to content

[Canvas] Fixes esdocs fields - #34894

Merged
cqliu1 merged 2 commits into
elastic:masterfrom
cqliu1:fix/esdocs-fields
Apr 12, 2019
Merged

cqliu1 merged 2 commits into
elastic:masterfrom
cqliu1:fix/esdocs-fields

Conversation

@cqliu1

@cqliu1 cqliu1 commented Apr 10, 2019 •

Copy link
Copy Markdown
Contributor

Summary

Closes #34888.

The base path for the Canvas API was changed, but this route was hard coded to /api/canvas. This updates the path to reference the constant variable for the API base path and fixes the field request for esdocs datasource form.

This also changes API_ROUTE back to /api/canvas/. This constant variable is only referenced inside of Canvas, and our API routes should read as /api/canvas/workpad instead of /api/interpreter/workpad.

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

- [ ] This was checked for cross-browser compatibility, including a check against IE11
- [ ] Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support
- [ ] Documentation was added for features that require explanation or tutorials
- [ ] Unit or functional tests were updated or added to match the most common scenarios
- [ ] This was checked for keyboard-only and screenreader accessibility

For maintainers

@cqliu1 cqliu1 added review Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// v8.0.0 v7.2.0 labels Apr 10, 2019
@cqliu1
cqliu1 requested a review from w33ble April 10, 2019 21:02
@cqliu1
cqliu1 requested a review from a team as a code owner April 10, 2019 21:02
@elasticmachine

Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-canvas

@w33ble w33ble left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

I think we can change API_ROUTE back to /api/canvas too. It seems to work and I don't see any interpreter requests that don't just use the library. If you don't want to do that here, please open an issue about it.

@w33ble

w33ble commented Apr 10, 2019

Copy link
Copy Markdown
Contributor

@cqliu1
cqliu1 requested a review from ppisljar April 10, 2019 21:39
@elasticmachine

Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine

Copy link
Copy Markdown
Contributor

💔 Build Failed

@cqliu1
cqliu1 force-pushed the fix/esdocs-fields branch from d8f0688 to c85b0f9 Compare April 10, 2019 22:49
@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@ppisljar ppisljar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@cqliu1
cqliu1 merged commit daf0a88 into elastic:master Apr 12, 2019
@cqliu1
cqliu1 deleted the fix/esdocs-fields branch April 12, 2019 17:26
cqliu1 added a commit to cqliu1/kibana that referenced this pull request Apr 12, 2019
* Fixed api route for esFields

* Changes canvas api route back to /api/canvas
cqliu1 added a commit that referenced this pull request Apr 12, 2019
* Fixed api route for esFields

* Changes canvas api route back to /api/canvas
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
* Fixed api route for esFields

* Changes canvas api route back to /api/canvas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:fix review Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// v7.2.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Canvas] esdocs can't retrieve fields for index patterns

4 participants