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

refactor: move overlay management out of BpmnElementsRegistry #2800

Merged
merged 2 commits into from
Aug 21, 2023

Conversation

tbouffard
Copy link
Member

BpmnElementsRegistry has too many responsibilities. It currently manages overlays, style and CSS classes.
To improve the situation, it is possible to start by dividing your code into specific classes.

The changes here extract of the code responsible for overlays. In addition:

  • extract the overlays code from GraphCellUpdater to better separate responsibilities
  • rename converter.ts file for consistency

`BpmnElementsRegistry` has too many responsibilities. It currently manages overlays, style and CSS classes.
As a first step to improve the situation, it is possible to start by internally splitting the code into dedicated
classes.

The changes here begins by extracting the code in charge of the overlays.
In addition:
  - extract the overlays code from GraphCellUpdater to better separate responsibilities
  - rename converter.ts file for consistency
@tbouffard tbouffard added the refactoring Code refactoring label Aug 21, 2023
@github-actions
Copy link

github-actions bot commented Aug 21, 2023

♻️ PR Preview 40c95b8 has been successfully destroyed since this PR has been closed.

🤖 By surge-preview

@github-actions
Copy link

github-actions bot commented Aug 21, 2023

♻️ PR Preview 40c95b8 has been successfully destroyed since this PR has been closed.

🤖 By surge-preview

@tbouffard tbouffard marked this pull request as ready for review August 21, 2023 14:30
@tbouffard tbouffard requested a review from csouchet August 21, 2023 14:30
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@tbouffard tbouffard changed the title refactor: extract the management of overlays out of BpmnElementsRegistry refactor: move overlay management out of BpmnElementsRegistry Aug 21, 2023
@tbouffard tbouffard merged commit 7dfece3 into master Aug 21, 2023
@tbouffard tbouffard deleted the refactor/reorg_registries_code_overlays branch August 21, 2023 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Code refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants