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: split internal registries #2818

Merged
merged 2 commits into from
Aug 28, 2023
Merged

Conversation

tbouffard
Copy link
Member

@tbouffard tbouffard commented Aug 24, 2023

In BpmnElementsRegistry, extract the remaining code that is not related to the management of BPMN elements.
The code related to overlays has already been extracted and the new changes proceed in the same way for CSS classes and style update.

  • the code in BpmnElementsRegistry moved to other "registry" files. It is generally glue code : CssClassesRegistry and StyleRegistry
  • the code in GraphCellUpdater, which generally does the real processing, is split into different updaters: CssClassesUpdater and StyleUpdater

StyleManager no longer depends on CssClassesCache to reset styles. This make the "Style" and "CSS" API completely independent and will allow to fully split the registries in the future.

In addition, apply refactoring to OverlaysRegistry for consistency with other registries.

covers #2803
relates to #2800

Additional checks done to verify the implementation

  • API HTML: no new elements
  • exported types: no new elements

Notes

Additional refactoring will follow to complete #2803 (interfaces extraction).

@tbouffard tbouffard added WIP 🚧 Pull request in progress and/or not ready for review. Used in addition to marking it as draft refactoring Code refactoring labels Aug 24, 2023
@github-actions
Copy link

github-actions bot commented Aug 24, 2023

♻️ PR Preview 1f82ffa has been successfully destroyed since this PR has been closed.

🤖 By surge-preview

@github-actions
Copy link

github-actions bot commented Aug 24, 2023

♻️ PR Preview 1f82ffa has been successfully destroyed since this PR has been closed.

🤖 By surge-preview

@tbouffard tbouffard force-pushed the refactor/reorg_registries_code branch from 2adb3f4 to cfb7aa0 Compare August 28, 2023 11:31
@tbouffard tbouffard removed the WIP 🚧 Pull request in progress and/or not ready for review. Used in addition to marking it as draft label Aug 28, 2023
@tbouffard tbouffard marked this pull request as ready for review August 28, 2023 11:43
@tbouffard tbouffard requested a review from csouchet August 28, 2023 12:04
@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 merged commit 3dfc496 into master Aug 28, 2023
@tbouffard tbouffard deleted the refactor/reorg_registries_code branch August 28, 2023 12:41
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