Skip to content

Conversation

@tbialcz
Copy link
Contributor

@tbialcz tbialcz commented Jul 8, 2025

🎫 Issue IBX-10221

Description:

Fix 500 error when attempting to trash root-level or contextual root locations

  • Fixed a 500 error that occurred when attempting to send a Site skeleton to trash, caused by incorrect handling of contextual root locations.
  • Introduced the IsInContextualTreeRootIds specification, which checks whether a location belongs to the configured contextual root locations via the
  • The "Send to Trash" menu item is now hidden when the selected location is either the root or a contextual root location.

For QA:

Documentation:

@tbialcz tbialcz requested a review from a team July 8, 2025 09:50
@ezrobot ezrobot requested review from Steveb-p, ViniTou, adamwojs, alongosz, barw4, ciastektk, konradoboza, mikadamczyk and wiewiurdp and removed request for a team July 8, 2025 09:50
@tbialcz tbialcz requested a review from mikadamczyk July 8, 2025 14:20
@konradoboza
Copy link
Contributor

@tbialcz could you please add ibexa/phpstan first to check if accessing config resolver parameters in constructor is caught? This is pretty simple, please look at https://github.com/ibexa/storefront/pull/180/files.

@tbialcz
Copy link
Contributor Author

tbialcz commented Jul 9, 2025

@tbialcz could you please add ibexa/phpstan first to check if accessing config resolver parameters in constructor is caught? This is pretty simple, please look at https://github.com/ibexa/storefront/pull/180/files.

Confirmed it works:
Line src/lib/Specification/Location/IsContentStructureRoot.php


20 Referring to ConfigResolver parameters in constructor is not allowed due to potential scope change.

@tbialcz tbialcz requested a review from konradoboza July 9, 2025 06:33
Copy link
Contributor

@konradoboza konradoboza left a comment

Choose a reason for hiding this comment

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

Thanks @tbialcz, looks better now!

Copy link
Contributor

@katarzynazawada katarzynazawada left a comment

Choose a reason for hiding this comment

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

Site skeletons folder looks fine - cannot remove it via UI. But with this change, the possibility of deletion for non-root items has disappeared - the Send to trash button is no longer available in the context menu. Move button is disabled.
Regression fails: https://github.com/ibexa/commerce/actions/runs/16166287562/job/45628876549?pr=1387#step:18:187
Screenshot 2025-07-09 at 12 15 25

@tbialcz
Copy link
Contributor Author

tbialcz commented Jul 11, 2025

Site skeletons folder looks fine - cannot remove it via UI. But with this change, the possibility of deletion for non-root items has disappeared - the Send to trash button is no longer available in the context menu. Move button is disabled. Regression fails: https://github.com/ibexa/commerce/actions/runs/16166287562/job/45628876549?pr=1387#step:18:187 Screenshot 2025-07-09 at 12 15 25

Fixed

@sonarqubecloud
Copy link

@adamwojs adamwojs merged commit a80c7d8 into 4.6 Jul 15, 2025
28 checks passed
@adamwojs adamwojs deleted the ibx_10221 branch July 15, 2025 12:16
@adamwojs
Copy link
Member

@tbialcz Could you please merge up changes ?

@tbialcz
Copy link
Contributor Author

tbialcz commented Jul 15, 2025

@tbialcz Could you please merge up changes ?

Done

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.

8 participants