Skip to content

Commit

Permalink
Last Updated Timestamp for visbuilder savedobject is getting Generated
Browse files Browse the repository at this point in the history
Signed-off-by: AbhishekReddy1127 <nallamsa@amazon.com>
  • Loading branch information
AbhishekReddy1127 committed Oct 19, 2022
1 parent 33aed0a commit 9dc8436
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/plugins/saved_objects/public/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export interface SavedObjectConfig {
path?: string;
searchSource?: ISearchSource | boolean;
type?: string;
updated_at?: string;
}

export type OpenSearchResponse = Record<string, any>;
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export interface WizardSavedObjectAttributes extends SavedObjectAttributes {
title: string;
description?: string;
visualizationState?: string;
updated_at?: string;
styleState?: string;
version: number;
searchSourceFields?: {
Expand Down
3 changes: 2 additions & 1 deletion src/plugins/vis_builder/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export class WizardPlugin
appExtensions: {
visualizations: {
docTypes: [PLUGIN_ID],
toListItem: ({ id, attributes }) => ({
toListItem: ({ id, attributes, updated_at }) => ({
description: attributes?.description,
editApp: PLUGIN_ID,
editUrl: `${EDIT_PATH}/${encodeURIComponent(id)}`,
Expand All @@ -130,6 +130,7 @@ export class WizardPlugin
stage: 'experimental',
title: attributes?.title,
typeTitle: PLUGIN_NAME,
updated_at,
}),
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export interface VisualizationsAppExtension {
id: string;
type: string;
attributes: SavedObjectAttributes;
updated_at?: string;
}) => VisualizationListItem;
}

Expand Down

0 comments on commit 9dc8436

Please sign in to comment.