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
Pass metadata from processPublishCommand to isPublishAllowed #4969
Conversation
a3d02b8
to
4f7325e
Compare
Hi @lastpeony , |
4d3296e
to
6c8e6d1
Compare
6c8e6d1
to
0957b50
Compare
SonarCloud Quality Gate failed. |
SonarCloud is reporting a low coverage error for a file that may not be related to the code changes. Can you please review and confirm if the file in question is indeed not related? |
This is a refactor for this issue #4829 |
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.
Thank you for your work @lastpeony.
Just a reminder, changing interfaces has consequences so it should be changed everywhere. Providing backward compatibility is important. If you had provided it, there would be fewer changes in the codebase.
If we expose these APIs to the app developers, providing backward compatibility will be much more important than ever.
Thank you
Kudos, SonarCloud Quality Gate passed! |
processPublishCommand function on enterprise takes metaData but it doesnt pass it to isPublishAllowed.
In previous PR metadata was retrieved through broadcast object to pass it webhook. In some cases(especially web conf) broadcast object is not created(null) thus eventhough client sends metadata it was not retrieved.