Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable chat session export/import #182562

Merged
merged 2 commits into from
May 16, 2023
Merged

Enable chat session export/import #182562

merged 2 commits into from
May 16, 2023

Conversation

roblourens
Copy link
Member

No description provided.

@roblourens roblourens enabled auto-merge (squash) May 15, 2023 21:43
@vscodenpa vscodenpa added this to the May 2023 milestone May 15, 2023
Comment on lines 172 to 193
// export interface ISerializableInteractiveSessionData {
// sessionId: string;
// creationDate: number;
// welcomeMessage: (string | IInteractiveSessionReplyFollowup[])[] | undefined;
// requests: ISerializableInteractiveSessionRequestData[];
// requesterUsername: string;
// responderUsername: string;
// requesterAvatarIconUri: UriComponents | undefined;
// responderAvatarIconUri: UriComponents | undefined;
// providerId: string;
// providerState: any;
// }

// export interface ISerializableInteractiveSessionRequestData {
// providerResponseId: string | undefined;
// message: string;
// response: string | undefined;
// responseErrorDetails: IInteractiveResponseErrorDetails | undefined;
// followups: IInteractiveSessionFollowup[] | undefined;
// isCanceled: boolean | undefined;
// vote: InteractiveSessionVoteDirection | undefined;
// }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commented out code

sbatten
sbatten previously approved these changes May 15, 2023
return;
}

const model = interactiveSessionService.getSession(widget.viewModel.sessionId);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this return an object with like... methods and whatnot? Wouldn't it be better to have a concrete export type that is truly just data?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It has an implementation of toJSON so it stringifies nicely, if that's what you mean

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The service also returns an interface which gives you readonly access to the model. Only the service is supposed to mutate the model

TylerLeonhardt
TylerLeonhardt previously approved these changes May 15, 2023
@roblourens roblourens merged commit 3196eb9 into main May 16, 2023
@roblourens roblourens deleted the roblou/uptight-goat branch May 16, 2023 01:15
@github-actions github-actions bot locked and limited conversation to collaborators Jun 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants