Skip to content

IBX-13142: Moved URL aliases off the language bitmask - #943

Open
Steveb-p wants to merge 12 commits into
feature/language-bitmask-2-legacy-search-6.0from
feature/language-bitmask-3-url-alias-6.0
Open

Steveb-p wants to merge 12 commits into
feature/language-bitmask-2-legacy-search-6.0from
feature/language-bitmask-3-url-alias-6.0

Conversation

@Steveb-p

@Steveb-p Steveb-p commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor
🎫 Issue IBX-13142

Note

Part 3 of 6 of the language bitmask removal. Each part is green on its own; the bitmask keeps being written until #946 removes it.

Related PRs:

The stack that replaces the language bitmask, bottom to top. Each part is green and can be merged on its own, in this order:

  1. IBX-13142: Moved content and version languages from the bitmask to join tables #941: content and version languages in join tables
  2. IBX-13142: Moved the legacy search engine off the language bitmask #942: legacy search engine off the bitmask
  3. this PR: URL aliases off the bitmask
  4. IBX-13142: Moved content types off the language bitmask #944: content types off the bitmask
  5. IBX-13142: Moved object states off MaskGenerator #945: object states off MaskGenerator
  6. IBX-13142: Removed the language bitmask #946: removed the bitmask

ibexa/installer#246 goes first, as the Experience content it provisions has to match each step, and ibexa/installer#250 drops its schema checks after #946. ibexa/data-intelligence-layer#63 goes with #946.

Description:

URL aliases read their languages from ibexa_url_alias_ml_translation (created and filled in #941) instead of lang_mask, and ibexa_url_alias_ml gets an always_available column, which AddUrlAliasAlwaysAvailableColumnMigration fills from bit 0 of the mask. With that, the mask is no longer part of an alias's identity in getOriginalUrlAliases(). The gateway keeps lang_mask in step with the translations and the flag until #946, since canDeleteLanguage() still reads it and #946's migration refuses to drop a mask the join table disagrees with.

cleandata.sql gets the URL aliases' flag and translation rows for the legacy install path.

UrlAlias\Gateway::historizeBeforeSwap() takes language ids instead of a mask.

@konradoboza konradoboza left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is CI fail related?

@Steveb-p Steveb-p changed the title IBX-11939: Moved URL aliases off the language bitmask IBX-13142: Moved URL aliases off the language bitmask Nov 13, 2026
@Steveb-p
Steveb-p force-pushed the feature/language-bitmask-3-url-alias-6.0 branch from 1ebc656 to c139c67 Compare November 13, 2026 09:10
@Steveb-p
Steveb-p force-pushed the feature/language-bitmask-3-url-alias-6.0 branch from c139c67 to 026a680 Compare November 15, 2026 18:49
@Steveb-p

Copy link
Copy Markdown
Contributor Author

Not related. Behat fails compiling ibexa/design-system-twig's assets (escapeHTMLAttribute missing from @ids-core/helpers/escape), and 6.0's own browser tests are green again since today, so it should pass on the next run. SonarCloud trips on 3.1% duplication with 3% allowed, all of it in the test data of UrlAliasMapperTest and the gateway test.

@Steveb-p
Steveb-p force-pushed the feature/language-bitmask-3-url-alias-6.0 branch from 026a680 to 35889e4 Compare November 17, 2026 11:19
@Steveb-p
Steveb-p force-pushed the feature/language-bitmask-3-url-alias-6.0 branch from 35889e4 to d1f5b0a Compare November 18, 2026 11:50

@alongosz alongosz 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.

A couple more findings:

@Steveb-p
Steveb-p force-pushed the feature/language-bitmask-3-url-alias-6.0 branch from d1f5b0a to 78ecb30 Compare November 18, 2026 12:13
@Steveb-p
Steveb-p force-pushed the feature/language-bitmask-3-url-alias-6.0 branch from 78ecb30 to fda7f50 Compare November 18, 2026 13:06
@Steveb-p
Steveb-p force-pushed the feature/language-bitmask-3-url-alias-6.0 branch from fda7f50 to e2df807 Compare November 18, 2026 15:35
ibexa_url_alias_ml gets an is_always_available column, and an alias's
languages come from ibexa_url_alias_ml_translation instead of lang_mask,
in cleandata.sql too. The gateway keeps lang_mask in step with them
until the bitmask is removed.
…_available

Same flag as always_available on ibexa_content and ibexa_content_version.
@Steveb-p
Steveb-p force-pushed the feature/language-bitmask-3-url-alias-6.0 branch from e2df807 to 069aac3 Compare November 21, 2026 16:16
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
D Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants