-
Notifications
You must be signed in to change notification settings - Fork 33
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!: generate correct CSS class name for adhoc subprocess #3058
Conversation
The CSS class name associated to the adhoc subprocess was incorrect. It was `bpmn-sub-process-ad_hoc` instead of `bpmn-sub-process-adhoc`. The tests checking the CSS class names were incorrectly written. Test inputs used hard coded string instead of the actual value of the various enum entries. So, they were unable to detect the problem. BREAKING CHANGES: - The CSS class name associated to the adhoc subprocess in the DOM have changed. It was `bpmn-sub-process-ad_hoc` and it is now `bpmn-sub-process-adhoc`. CSS rules and selectors must be updated accordingly. - The value of `ShapeBpmnSubProcessKind.AD_HOC` changed. As it is not intended to be used directly, applications should not be impacted.
@@ -132,7 +132,7 @@ export enum ShapeBpmnMarkerKind { | |||
* @category BPMN | |||
*/ | |||
export enum ShapeBpmnSubProcessKind { | |||
AD_HOC = 'ad_hoc', | |||
AD_HOC = 'adHoc', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thought: value could be set to adhoc
without impact if we prefer to only use lower-case values.
For consistency with other enum values, I would prefer to use a lower-case value.
♻️ PR Preview 4fdd8a1 has been successfully destroyed since this PR has been closed. 🤖 By surge-preview |
♻️ PR Preview 4fdd8a1 has been successfully destroyed since this PR has been closed. 🤖 By surge-preview |
Quality Gate passedIssues Measures |
The CSS class name associated to the adhoc subprocess was incorrect. It was
bpmn-sub-process-ad_hoc
instead ofbpmn-sub-process-adhoc
.The tests checking the CSS class names were incorrectly written. Test inputs used hard coded string instead of the actual value of the various enum entries. So, they were unable to detect the problem.
BREAKING CHANGES:
bpmn-sub-process-ad_hoc
and it is nowbpmn-sub-process-adhoc
. CSS rules and selectors must be updated accordingly.ShapeBpmnSubProcessKind.AD_HOC
changed. As it is not intended to be used directly, no one should be impacted.Notes
Detected in #2756