Skip to content

Commit

Permalink
[BUG] fix redirection url in saved objects management page for notebo…
Browse files Browse the repository at this point in the history
…oks (#1998) (#2000)

* updated release notes



* added fix for redirection url in saved objects



* added release notes



* addressed pr comments



---------


(cherry picked from commit 0fda03c)

Signed-off-by: sumukhswamy <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent a1d9a27 commit c220905
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Compatible with OpenSearch and OpenSearch Dashboards version 2.16.0
* fix minor issues in query assist UI ([#1939](https://github.com/opensearch-project/dashboards-observability/pull/1939))
* Trace analytics scroll bar reset ([#1917](https://github.com/opensearch-project/dashboards-observability/pull/1917))
* #1466 - create observability dashboard after invalid name ([#1730](https://github.com/opensearch-project/dashboards-observability/pull/1730))
* fix redirection url in saved objects management page for notebooks([#1998](https://github.com/opensearch-project/dashboards-observability/pull/1998))

### Maintenance
* updated java version from 11 to 21 ([#1940](https://github.com/opensearch-project/dashboards-observability/pull/1940))
Expand Down
5 changes: 2 additions & 3 deletions server/saved_objects/observability_saved_object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
*/

import { SavedObjectsType } from '../../../../src/core/server';
import { NOTEBOOKS_API_PREFIX } from '../../common/constants/notebooks';
import { observabilityLogsID } from '../../common/constants/shared';
import { observabilityLogsID, observabilityNotebookID } from '../../common/constants/shared';
import {
NOTEBOOK_SAVED_OBJECT,
SEARCH_SAVED_OBJECT,
Expand Down Expand Up @@ -94,7 +93,7 @@ export const notebookSavedObject: SavedObjectsType = {
return obj.attributes.title;
},
getInAppUrl(obj) {
const editUrl = `/app/${NOTEBOOKS_API_PREFIX}#/${obj.id}?view=view_both`;
const editUrl = `/app/${observabilityNotebookID}#/${obj.id}?view=view_both`;
return {
path: editUrl,
uiCapabilitiesPath: 'observability.show',
Expand Down

0 comments on commit c220905

Please sign in to comment.