sartography / cr-connect

0 stars 0 forks source link

Issue deleting Library Workflow Specification #479

Closed calexh-sar closed 2 years ago

calexh-sar commented 3 years ago

When attempting to delete the IDS Email Workflow Specification from the Library Category, I receive the following message:

image.png

I have checked all Workflow Specifications and do not see any that are currently using IDS Email. There were two, _Protocol, Applications & Coversheet" and IDS Approval that were using it.

Work on this ticket includes:

If not a lot of extra effort/time:

calexh-sar commented 3 years ago

I did a hard refresh and tried deleting the IDS Email Workflow Specification again and received this error message:

image.png

Additionally, the same two Sentry errors discussed in ticket #217 were thrown.

cullerton commented 3 years ago

The original error is coming from cr-connect-bpmn. workflow-spec-list.component.ts line 197. if ((wfs.parents.length > 0) && (wfs.library)){

I thought we were trying to move this type of logic to the back end. Either way, it looks like wfs.parents has bad data when the check happens.

It's probably better for someone else to look at this.

calexh-sar commented 2 years ago

Working as designed.