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

Fix connector normalisation function #39

Merged

Conversation

ddvlanck
Copy link
Collaborator

@ddvlanck ddvlanck commented Feb 7, 2024

Only process connectors that appear on the target diagram. Connectors that do not appear on the target diagram are not processed. Mistakes in these connectors are not discovered by the converter.

@ddvlanck ddvlanck requested a review from KristofVDB1 February 7, 2024 10:16
Copy link
Contributor

@KristofVDB1 KristofVDB1 left a comment

Choose a reason for hiding this comment

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

Clean! In theory you can rewrite it to a .map function if you want to be fancy

const tasks: Promise<NormalizedConnector[]>[] = model.connectors
    .filter(x => model.targetDiagram.connectorsIds.includes(x.id))
    .map(connector => this.connectorNormalisationService.normalise(connector, model));

@ddvlanck ddvlanck requested a review from KristofVDB1 February 8, 2024 10:43
Copy link
Contributor

@KristofVDB1 KristofVDB1 left a comment

Choose a reason for hiding this comment

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

Nice!!

@ddvlanck ddvlanck merged commit 9128d4f into main Feb 8, 2024
0 of 18 checks passed
@KristofVDB1 KristofVDB1 deleted the SDTT-267-Converter-processing-all-connectors-results-in-error branch March 20, 2024 08:58
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.

2 participants