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

IBX-6260: Fixed preview voter taking language priority into consideration #865

Merged
merged 1 commit into from
Aug 21, 2023

Conversation

ViniTou
Copy link
Contributor

@ViniTou ViniTou commented Aug 8, 2023

Question Answer
Tickets https://issues.ibexa.co/browse/IBX-6260
Bug fix? yes
New feature? no
BC breaks? no
Tests pass? yes
Doc needed? no
License GPL-2.0

Possible siteAccesses to display given content should not take language order into consideration. It should be matter of selector, to pick the most proper one out of those.

This same issue came up, when having identical siteAccess configuration (as in ticket), you tried to just translate any other content into other language and you get Preview unavailable information, when there clearly was one to do it.

Same issue goes up in 3.3 version, but as there, page-builder logic is separated from this one, it would require different approach (and it is possible to translate landing page there, it is only issue of the preview, so it is not as severe there).

For usage & tests:
https://github.com/ibexa/page-builder/pull/237

Checklist:

  • Coding standards ($ composer fix-cs)
  • Ready for Code Review

@sonarcloud
Copy link

sonarcloud bot commented Aug 8, 2023

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

No Coverage information No Coverage information
0.0% 0.0% Duplication

@ViniTou ViniTou requested a review from a team August 8, 2023 14:28
@webhdx webhdx requested a review from a team August 16, 2023 09:35
@konradoboza konradoboza requested a review from a team August 16, 2023 09:42
@micszo micszo self-assigned this Aug 21, 2023
Copy link
Contributor

@micszo micszo left a comment

Choose a reason for hiding this comment

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

Reproduced and retested.
Sanities OK.

QA Approved on Ibexa Commerce 4.5.2-dev.

@micszo micszo removed their assignment Aug 21, 2023
@ViniTou ViniTou merged commit 4523e6b into 4.5 Aug 21, 2023
17 checks passed
@ViniTou ViniTou deleted the ibx-6260-siteAccess-translation branch August 21, 2023 09:43
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.

7 participants