-
Notifications
You must be signed in to change notification settings - Fork 283
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
export json data of commments #6119
Conversation
55fe228
to
9ef51a0
Compare
Code looks good, tests need some adjustment:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One remark/question
return []; | ||
$comments = []; | ||
foreach ($this->tmpCards as $sourceCard) { | ||
$commentsOriginal = $sourceCard->comments; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to handle cases where comments is not defined or null here? I could imagine this breaking otherwise if an old json without comments is used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we have to. The next loop in line 113, for my understanding, just gets skipped if $commentsOriginal is not iterable. I tested it without comments in the json and it worked without any errors.
153953d
to
655a922
Compare
Signed-off-by: grnd-alt <[email protected]>
655a922
to
09748ae
Compare
Summary
add comments to json export
Checklist