Skip to content

IBX-11493: Added language code validation#736

Open
Steveb-p wants to merge 7 commits intomainfrom
ibx-11493/language-code-validation
Open

IBX-11493: Added language code validation#736
Steveb-p wants to merge 7 commits intomainfrom
ibx-11493/language-code-validation

Conversation

@Steveb-p
Copy link
Contributor

@Steveb-p Steveb-p commented Mar 23, 2026

🎫 Issue IBX-11493

Description:

This PR adds metadata to LanguageCreateStruct, with regex condition for the shape of the language code.

Additionally, it refactors LanguageServiceTest code to use newer integration test setup, since the original one was using DummyValidator service, which prevented the test from performing correctly.

Tested manually against a migration:

-   type: language
    mode: create
    metadata:
        languageCode: .
        name: Polish
        enabled: true

Result:
image

Technically, operations that directly preceed the validator could be moved into validator itself as well (is name empty, is code empty, is code used already?), but I opted not to - since they would introduce more complexity to this PR. Can be done as a follow up if desired.

For QA:

Documentation:

@Steveb-p Steveb-p force-pushed the ibx-11493/language-code-validation branch from 8a5e2cf to 4e03481 Compare March 23, 2026 16:09
@Steveb-p Steveb-p force-pushed the ibx-11493/language-code-validation branch from 4e03481 to 8dac6a5 Compare March 23, 2026 16:26
@Steveb-p Steveb-p changed the base branch from main to fix-phpstan March 23, 2026 16:27
@Steveb-p Steveb-p force-pushed the ibx-11493/language-code-validation branch from 8dac6a5 to 85a616c Compare March 23, 2026 16:35
@Steveb-p Steveb-p changed the base branch from fix-phpstan to main March 23, 2026 17:57
@Steveb-p Steveb-p force-pushed the ibx-11493/language-code-validation branch from 90267e6 to 4f830d7 Compare March 23, 2026 17:58
@Steveb-p Steveb-p requested a review from a team March 23, 2026 18:00
@Steveb-p Steveb-p added Bug Something isn't working Ready for review labels Mar 23, 2026
@ibexa-workflow-automation-1 ibexa-workflow-automation-1 bot requested review from ViniTou, alongosz, barw4, ciastektk, konradoboza, mikadamczyk, tbialcz and wiewiurdp and removed request for a team March 23, 2026 18:00
…Kernel` and added `CoreSolrTestKernel` implementation
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working Ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants