Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Conversation

@GeoffCoxMSFT
Copy link
Member

Description

Deleting a form dialog requires deleting form dialog assets which are all contained within a folder under dialogs.

Task Item

#minor
#4505

Screenshots

N/A


const currentProject = await BotProjectService.getProjectById(projectId, user);
if (currentProject !== undefined) {
await currentProject.deleteFormDialog(dialogId);
Copy link
Contributor

Choose a reason for hiding this comment

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

do we want a try catch here with 500 response?

const updatedProject = await BotProjectService.getProjectById(projectId, user);
res.status(200).json({ id: projectId, ...updatedProject.getProject() });
} else {
res.status(404).json({
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: the error for when the caller doesn't provide project id should be different

@hatpick hatpick changed the title Add delete form dialog to Composer server API fix: Add delete form dialog to Composer server API Oct 27, 2020
@coveralls
Copy link

coveralls commented Oct 27, 2020

Coverage Status

Coverage decreased (-0.06%) to 54.937% when pulling c75391f on gcox/delete-form-dialog into 08bb913 on main.

@GeoffCoxMSFT GeoffCoxMSFT merged commit c455369 into main Oct 27, 2020
@GeoffCoxMSFT GeoffCoxMSFT deleted the gcox/delete-form-dialog branch October 27, 2020 23:59
@cwhitten cwhitten mentioned this pull request Nov 13, 2020
lei9444 pushed a commit to lei9444/BotFramework-Composer-1 that referenced this pull request Jun 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants