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(modeling): set label color on bpmndi:BPMNLabel#color #1543

Merged
merged 1 commit into from
Dec 3, 2021

Conversation

nikku
Copy link
Member

@nikku nikku commented Dec 3, 2021

Setting colors on external labels would not set the bpmndi:BPMNLabel#color property but rather serialize it illegally as bpmndi:BPMNEdge#background-color. This PR fixes the behavior to adopt the standards compliant serialization.

Note that we already support reading color in the correct way, cf. BpmnRenderer.


Related to camunda/camunda-modeler#2599.

@nikku nikku requested a review from barmac December 3, 2021 12:00
@bpmn-io-tasks bpmn-io-tasks bot added the needs review Review pending label Dec 3, 2021
@nikku nikku requested a review from marstamm December 3, 2021 12:00
@barmac
Copy link
Member

barmac commented Dec 3, 2021

It's probably unrelated but might have been broken in one of recent releases. When I create a new connection, its DI contains empty "waypoints" attribute:

<bpmndi:BPMNEdge id="Flow_0o53f0k_di" bpmnElement="Flow_0o53f0k" waypoints="">
  <di:waypoint x="215" y="97" />
  <di:waypoint x="272" y="97" />
</bpmndi:BPMNEdge>

Copy link
Member

@barmac barmac left a comment

Choose a reason for hiding this comment

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

LGTM

@fake-join fake-join bot merged commit da5520e into develop Dec 3, 2021
@fake-join fake-join bot deleted the fix-label-color-bpmn-di branch December 3, 2021 14:29
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Dec 3, 2021
@barmac
Copy link
Member

barmac commented Dec 3, 2021

Hmm this could be merged to master

@nikku
Copy link
Member Author

nikku commented Dec 3, 2021

My bad (not merging to master). Will likely cherry-pick.

@nikku
Copy link
Member Author

nikku commented Dec 3, 2021

How can I reproduce #1543 (comment)?

This is a serious regression, if reproducible, that we shall look into, too.

@barmac
Copy link
Member

barmac commented Dec 3, 2021

How can I reproduce #1543 (comment)?

This is a serious regression, if reproducible, that we shall look into, too.

I've created an issue which links to a branch with a test case: #1544

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