-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Fix WebserviceOutputBuilder - handle api categories blank schema #28540
Conversation
Validation of category association id
Hello @angelo983! This is your first pull request on the PrestaShop project. Thank you, and welcome to this Open Source community! |
Fixes #28543 |
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.
Dear @angelo983 thank you for the PR!
Code seems OK, just need to wait for confirmation of bug #28543
Hello @matks, you are welcome! |
if (!empty($value['id'])) { | ||
$fields_assoc = [['id' => $value['id']]]; | ||
} |
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.
Can you please use AND
operator instead a new IF
statement ? (see the line just bellow)
@PululuK I did what you asked for |
Hi @angelo983 Thank you for your PR but, currently, the issue that you want to correct didn't exist on develop and 178x, so they're already corrected, as you can see : on old develop ( 3 month ago I think ) : on new develop ( with an other PR ) : If you take the files from the 1.7.8.4 version, I test it and yes, it correct the issue ! |
Hi @angelo983 , Yes, that's it, the problem does not arise in version 1.7.8.6 I mentioned a PR that I tested near this one, if you want more information it was pr-27755 |
@AureRita in 1.7.8.6 the bug is still present, in my develop branch not because my patch is present. |
Hi @angelo983, I do a video for you on develop without your pr : on.develop.mp4And another on version 1.7.8.6 : on.1786.mp4Can you do a video or anything else to see this problem on 1.7.8.6, it's maybe a problem with some restriction on your computer ? Why do your webservice get blue character ? |
Hey @angelo983, |
@angelo983 friendly reminder :) |
Hello, I have done my part, if someone wants to go deeper could check why and how an empty value can arrive to objectAssoc when renderAssociations function is called. |
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.
Hi everyone I'm lost 😅 what's happening with this pull request?
Hello @AureRita You reproduced the issue before, but later you couldn't, could you please double-check if the issue is not there anymore? We have information from @angelo983 that the bug is still there. |
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.
Hi @angelo983 !
Sorry for that long long time, after many research I see where is the differents to repeat the issue ( we need to disabled the debug mode ). After checking this, I try your PR and it's seems to works !
we can see this without your pr :
Untitled_.Oct.31.2022.2_42.PM.webm
And with your PR :
Untitled_.Oct.31.2022.2_43.PM.webm
Thank you for your Patience and your PR !
QA OK without required approvals !? |
QA approved, well done! Message to the maintainers: do not forget to milestone it before the merge. |
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.
Thanks @angelo983
The PR was tested and approved by QA, but it's missing one review approval (previous approvals were removed after handling a suggestion) Just waiting for the second approval to merge this one |
Thank you @angelo983 :) |
Why this bug is not fixed in PS 1.7.8.8 ? |
Validation of category association id