Skip to content

Commit

Permalink
Last Updated Timestamp for visbuilder saved object is getting Generat…
Browse files Browse the repository at this point in the history
…ed (#2628) (#2742)

Signed-off-by: AbhishekReddy1127 <[email protected]>

Signed-off-by: AbhishekReddy1127 <[email protected]>
Co-authored-by: Ashwin P Chandran <[email protected]>
(cherry picked from commit a16fe40)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 7ab0e60 commit 54d8220
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 @@ -53,6 +53,7 @@ export interface VisualizationsAppExtension {
id: string;
type: string;
attributes: SavedObjectAttributes;
updated_at?: string;
}) => VisualizationListItem;
}

Expand Down
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/wizard/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: updatedAt }) => ({
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: updatedAt,
}),
},
},
Expand Down

0 comments on commit 54d8220

Please sign in to comment.