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!: generate correct CSS class name for adhoc subprocess #3058

Merged
merged 4 commits into from
Mar 25, 2024

Conversation

tbouffard
Copy link
Member

@tbouffard tbouffard commented Mar 22, 2024

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, no one should be impacted.

Notes

Detected in #2756

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.
@tbouffard tbouffard added the bug Something isn't working label Mar 22, 2024
@@ -132,7 +132,7 @@ export enum ShapeBpmnMarkerKind {
* @category BPMN
*/
export enum ShapeBpmnSubProcessKind {
AD_HOC = 'ad_hoc',
AD_HOC = 'adHoc',
Copy link
Member Author

@tbouffard tbouffard Mar 22, 2024

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.

Copy link

github-actions bot commented Mar 22, 2024

♻️ PR Preview 4fdd8a1 has been successfully destroyed since this PR has been closed.

🤖 By surge-preview

Copy link

github-actions bot commented Mar 22, 2024

♻️ PR Preview 4fdd8a1 has been successfully destroyed since this PR has been closed.

🤖 By surge-preview

@tbouffard tbouffard marked this pull request as ready for review March 22, 2024 10:30
@tbouffard tbouffard requested a review from csouchet March 22, 2024 10:30
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@tbouffard tbouffard merged commit f608382 into master Mar 25, 2024
23 checks passed
@tbouffard tbouffard deleted the fix/subprocess_adhoc_css_classname branch March 25, 2024 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants