IBX-11818: added fallback to null value when key 'timestamp' not exists in $value->data array#757
Open
papcio122 wants to merge 7 commits into
Open
IBX-11818: added fallback to null value when key 'timestamp' not exists in $value->data array#757papcio122 wants to merge 7 commits into
papcio122 wants to merge 7 commits into
Conversation
…ts in $value->data array
konradoboza
requested changes
Jun 3, 2026
22e8d03 to
f08a3f5
Compare
konradoboza
reviewed
Jun 9, 2026
| * @group fieldType | ||
| * @group dateTime | ||
| */ | ||
| public function testToStorageValueNoTimestampKey(): void |
Contributor
There was a problem hiding this comment.
We should also test if dataInt is properly populated with the timestamp if it exists.
Contributor
Author
There was a problem hiding this comment.
There is such a test a few lines earlier on line 47
Contributor
There was a problem hiding this comment.
I referred to the actual usage of timestamp key which is in the condition in question. How is it covered?
ViniTou
approved these changes
Jun 9, 2026
barw4
approved these changes
Jun 9, 2026
alongosz
reviewed
Jun 9, 2026
konradoboza
reviewed
Jun 9, 2026
b96fb48 to
b95c1c6
Compare
bnowak
approved these changes
Jun 10, 2026
bnowak
left a comment
Contributor
There was a problem hiding this comment.
approved assuming that failing CI will be fixed and left comments resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description:
\Ibexa\Core\Persistence\Legacy\Content\FieldValue\Converter\DateAndTimeConverter:toStorageValue()
throws an error of a missing array key when the content was created before the field was added to the content type.
Added fallback to null when the data array has no 'timestamp' key