Skip to content

IBX-9262: Fixed Relation::Asset not being cleaned up on content deletion #523

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

Merged
merged 3 commits into from
Apr 24, 2025

Conversation

ViniTou
Copy link
Contributor

@ViniTou ViniTou commented Apr 8, 2025

🎫 Issue IBX-9262

Description:

We were missing image asset cleanup when asset content was deleted.

For QA:

Check also if that change did not affect normal relation field type cleanup in any way.

Documentation:

@ViniTou ViniTou requested a review from a team April 9, 2025 05:24
Comment on lines +1230 to +1276
* id: int|string,
* version: int|string,
Copy link
Contributor

Choose a reason for hiding this comment

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

Are there any situations in which these values are integers?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it strictly depends on database driver.

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.

Apart from missing import.


$assetContent = $this->contentService->loadContentByContentInfo($assetContent->getContentInfo());

/** @var \Ibexa\Core\FieldType\ImageAsset\Value $value */
Copy link
Contributor

Choose a reason for hiding this comment

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

You can make an assertion instead.

@tomaszszopinski tomaszszopinski force-pushed the ibx-9262-fixed-removing-asset-relation branch from 8572170 to e661250 Compare April 23, 2025 10:47
Copy link

@tomaszszopinski tomaszszopinski self-assigned this Apr 24, 2025
Copy link

@tomaszszopinski tomaszszopinski left a comment

Choose a reason for hiding this comment

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

QA approved on Ibexa DXP 4.6 exp

@alongosz alongosz merged commit 222f62c into 4.6 Apr 24, 2025
22 checks passed
@alongosz alongosz deleted the ibx-9262-fixed-removing-asset-relation branch April 24, 2025 09:28
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.

None yet