+
Skip to content

Conversation

alongosz
Copy link
Member

@alongosz alongosz commented Jun 9, 2025

🎫 Issue IBX-10137

Description:

For quite some time we've had slug converter transformation rules used by production code residing in tests/lib/Persistence/TransformationProcessor/_fixtures/transformations.
I've moved these files to src/lib/Resources/slug_converter/transformations/ directory. For BC reasons pre-5.0.0 tagging is a good moment.

Note that tr file is a source for a corresponding compiled tr.result file. That's a custom format built by \Ibexa\Core\Persistence\TransformationProcessor\DefinitionBased\Parser and \Ibexa\Core\Persistence\TransformationProcessor\PcreCompiler
Since tr gets compiled into a PHP array as the result, I've renamed tr.result to tr.result.php and applied standard CS.

I've completely refactored SlugConverter test, but for now kept the other test changes to the bare minimum.

For QA:

No QA required. Regression run: ibexa/commerce#1339

@alongosz alongosz force-pushed the ibx-10137-slug-converter-transformation-rules-location branch from 3585918 to 8d96454 Compare June 10, 2025 11:59
Copy link

sonarqubecloud bot commented Jun 10, 2025

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 SonarQube Cloud

@alongosz alongosz requested a review from konradoboza June 10, 2025 12:05
@adamwojs adamwojs merged commit 0963e11 into main Jun 17, 2025
16 checks passed
@adamwojs adamwojs deleted the ibx-10137-slug-converter-transformation-rules-location branch June 17, 2025 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载