+
Skip to content

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.

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载