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

FOUR-11873: Detach Object - Create a method o helper function, that disconect the object with the source and target flow #1761

Open
wants to merge 6 commits into
base: next
Choose a base branch
from

Conversation

rodriquelca
Copy link
Contributor

@rodriquelca rodriquelca commented Dec 7, 2023

Issue & Reproduction Steps

Expected behavior:
As a developer,
I want to have a helper function .
so I can detach the object from flow automatically
Actual behavior:
n/a

Solution

  • DetachObjectFlows class was added
  • During the shap drag, a validation was added to detach
detach_object_from_flow.webm

How to Test

Test the steps above

Related Tickets & Packages

Code Review Checklist

  • I have pulled this code locally and tested it on my instance, along with any associated packages.
  • This code adheres to ProcessMaker Coding Guidelines.
  • This code includes a unit test or an E2E test that tests its functionality, or is covered by an existing test.
  • This solution fixes the bug reported in the original ticket.
  • This solution does not alter the expected output of a component in a way that would break existing Processes.
  • This solution does not implement any breaking changes that would invalidate documentation or cause existing Processes to fail.
  • This solution has been tested with enterprise packages that rely on its functionality and does not introduce bugs in those packages.
  • This code does not duplicate functionality that already exists in the framework or in ProcessMaker.
  • This ticket conforms to the PRD associated with this part of ProcessMaker.

Copy link

cypress bot commented Dec 7, 2023

Passing run #1001 ↗︎

0 276 83 0 Flakiness 0

Details:

Merge 822b166 into 7023c18...
Project: modeler Commit: fcb023b7eb ℹ️
Status: Passed Duration: 10:50 💡
Started: Dec 13, 2023 6:08 PM Ended: Dec 13, 2023 6:19 PM

Review all test suite changes for PR #1761 ↗︎

Copy link
Contributor

@gproly gproly left a comment

Choose a reason for hiding this comment

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

Next warnings must be reviewed:

  1. Unexpected mutation of "owner" prop
  2. Unexpected mutation of "planeElements" prop
  3. Unexpected mutation of "node" prop
  4. Unexpected mutation of "rootElements" prop
    Or provide a sufficiently valid reason for this issue to be overlooked. But by definition, properties that are passed to a child component as "props" should not be modified directly.

outgoingLink.component.shapeView.targetAnchor.toJSON(),
];
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

check missing space

const outgoingLink = this.modeler.getElementByNodeId(outgoing.id);
return [
incomingLink.component.shapeView.sourceAnchor.toJSON(),
outgoingLink.component.shapeView.targetAnchor.toJSON(),
Copy link
Contributor

Choose a reason for hiding this comment

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

validate if variables (incomingLink, outgoingLink) is not null before return.

Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants