Skip to content

refactor: Refactor business column classes#2284

Merged
blizzz merged 1 commit into
mainfrom
feature/refactor-business-classes
Feb 24, 2026
Merged

refactor: Refactor business column classes#2284
blizzz merged 1 commit into
mainfrom
feature/refactor-business-classes

Conversation

@Koc

@Koc Koc commented Jan 25, 2026

Copy link
Copy Markdown
Contributor
  1. instanciate a column business in a single place ColumnsHelper::getColumnBusiness() instead of duplication:
    • ImportService::parseValueByColumnType()
    • RowService::getColumnBusiness()
  2. memoize column business instance per column type in a factory and per column id in a import to speedup performance a bit
  3. SuperBusiness now implements IColumnTypeBusiness
  4. make $column non-nullable in a column business classes and remove redundant checks. I can't find any use-case when it can be nullable

@Koc Koc force-pushed the feature/refactor-business-classes branch from e4b7806 to b7d99fc Compare January 25, 2026 16:12
@Koc Koc marked this pull request as ready for review January 25, 2026 16:15
@Koc Koc requested review from blizzz and enjeck as code owners January 25, 2026 16:15
@Koc Koc force-pushed the feature/refactor-business-classes branch from b7d99fc to 01cde46 Compare February 12, 2026 17:46

@blizzz blizzz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks! Good PR! 🙂
Two minor remarks, and two nitpicks that would not be blocking.

Comment thread lib/Helper/ColumnsHelper.php Outdated
Comment thread lib/Service/ImportService.php Outdated
Comment thread lib/Service/RowService.php Outdated
Comment thread lib/Service/RowService.php Outdated
@blizzz blizzz added technical debt Technical issue 2. developing Work in progress labels Feb 24, 2026
Signed-off-by: Kostiantyn Miakshyn <molodchick@gmail.com>
@Koc Koc force-pushed the feature/refactor-business-classes branch from 01cde46 to 45e4920 Compare February 24, 2026 17:45
@Koc

Koc commented Feb 24, 2026

Copy link
Copy Markdown
Contributor Author

@blizzz fixed all your comments 😇

@blizzz

blizzz commented Feb 24, 2026

Copy link
Copy Markdown
Member

@blizzz fixed all your comments 😇

Thank you 😊

@blizzz blizzz added 4. to release Ready to be released and/or waiting for tests to finish and removed 2. developing Work in progress labels Feb 24, 2026
@blizzz blizzz merged commit a5ffc89 into main Feb 24, 2026
62 of 66 checks passed
@blizzz blizzz deleted the feature/refactor-business-classes branch February 24, 2026 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish technical debt Technical issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants