Skip to content

Commit

Permalink
Remove dependency on dashboards version for requests (opensearch-proj…
Browse files Browse the repository at this point in the history
…ect#48)

* Remove dependency on dashboards version

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Update release notes

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Fix data schema

Signed-off-by: Joshua Li <joshuali925@gmail.com>
  • Loading branch information
joshuali925 authored Jul 6, 2021
1 parent 81b1789 commit 86ab59a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ export const generateInContextReport = (
},
},
delivery: {
delivery_type: 'OpenSearch Dashboards user',
delivery_params: {
opensearch_dashboards_recipients: [],
},
configIds: [],
title: '',
textDescription: '',
htmlDescription: '',
},
trigger: {
trigger_type: 'On demand',
Expand All @@ -113,7 +113,7 @@ export const generateInContextReport = (
{
headers: {
'Content-Type': 'application/json',
'osd-version': '1.0.0',
'osd-xsrf': 'true',
accept: '*/*',
'accept-language': 'en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7,zh-TW;q=0.6',
pragma: 'no-cache',
Expand Down Expand Up @@ -175,4 +175,4 @@ export const contextMenuCreateReportDefinition = (baseURI: string) => {
};

export const contextMenuViewReports = () =>
window.location.assign('reports-dashboards#/');
window.location.assign('reports-dashboards#/');
2 changes: 1 addition & 1 deletion dashboards-notebooks/public/components/notebook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ export class Notebook extends Component<NotebookProps, NotebookState> {
{
headers: {
'Content-Type': 'application/json',
'osd-version': '1.0.0',
'osd-xsrf': 'true',
'accept-language': 'en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7,zh-TW;q=0.6',
pragma: 'no-cache',
'sec-fetch-dest': 'empty',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Compatible with OpenSearch 1.0.0
* Add Query Parameter for Selected View ([#17](https://github.com/opensearch-project/dashboards-notebooks/pull/17))

### Bug Fixes
* Remove dependency on dashboards version for requests ([#48](https://github.com/opensearch-project/dashboards-notebooks/pull/48))
* Bump prismjs from 1.23.0 to 1.24.0 in /dashboards-notebooks ([#44](https://github.com/opensearch-project/dashboards-notebooks/pull/44))
* Fix error message when paragraph exceeds max_payload ([#40](https://github.com/opensearch-project/dashboards-notebooks/pull/40))
* Update glob-parent dependency ([#35](https://github.com/opensearch-project/dashboards-notebooks/pull/35))
Expand Down

0 comments on commit 86ab59a

Please sign in to comment.