Skip to content

Commit

Permalink
addressed pr comments
Browse files Browse the repository at this point in the history
Signed-off-by: sumukhswamy <[email protected]>
  • Loading branch information
sumukhswamy committed Jul 25, 2024
1 parent adc838c commit 5549094
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion common/types/observability_saved_object_attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { SavedQuery, SavedVisualization } from './explorer';
export const VISUALIZATION_SAVED_OBJECT = 'observability-visualization';
export const SEARCH_SAVED_OBJECT = 'observability-search';
export const NOTEBOOK_SAVED_OBJECT = 'observability-notebook';
export const NOTEBOOK_SAVED_OBJECT_PATH = 'observability-notebooks';
export const OBSERVABILTY_SAVED_OBJECTS = [
VISUALIZATION_SAVED_OBJECT,
SEARCH_SAVED_OBJECT,
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,10 +4,9 @@
*/

import { SavedObjectsType } from '../../../../src/core/server';
import { observabilityLogsID } from '../../common/constants/shared';
import { observabilityLogsID, observabilityNotebookID } from '../../common/constants/shared';
import {
NOTEBOOK_SAVED_OBJECT,
NOTEBOOK_SAVED_OBJECT_PATH,
SEARCH_SAVED_OBJECT,
VISUALIZATION_SAVED_OBJECT,
} from '../../common/types/observability_saved_object_attributes';
Expand Down Expand Up @@ -94,7 +93,7 @@ export const notebookSavedObject: SavedObjectsType = {
return obj.attributes.title;
},
getInAppUrl(obj) {
const editUrl = `/app/${NOTEBOOK_SAVED_OBJECT_PATH}#/${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 5549094

Please sign in to comment.