-
Notifications
You must be signed in to change notification settings - Fork 639
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
[ISSUE #4243] Optimize Webhook Manufacturer source Hard-coding #4273
Conversation
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.
LGTM
Codecov Report
@@ Coverage Diff @@
## master #4273 +/- ##
============================================
+ Coverage 16.86% 16.88% +0.02%
- Complexity 1427 1428 +1
============================================
Files 593 593
Lines 26062 26066 +4
Branches 2394 2396 +2
============================================
+ Hits 4396 4402 +6
- Misses 21223 21224 +1
+ Partials 443 440 -3
... and 8 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Can you explain why |
@pandaapo Thank you for your attention.
|
@Pil0tXia For this pull request modification, you need to take a look at github webhook usage guide https://eventmesh.apache.org/zh/docs/design-document/webhook, ensuring that the new modification does not affect the normal use of the original function. |
@xwm1992 Yes, I tested. Modifications made in this PR doesn't affect the process logic or the return value of In fact, the master branch has a NPE when querying webhook configs and I have found the cause. The documents will be updated too. |
It's all good. PTAL~ @pandaapo @xwm1992 Synchronised modification of documents is included in NPE bugfix: apache/eventmesh-site#110 |
@pandaapo Merge conflicts resolved. |
Fixes #4243.
Motivation
Some webhook manufacturers' domain names may not follow the
www.example.com
format with awww
subdomain and a.com
TLD.Modifications
Added
manufacturerDomain
field forWebHookConfig
.Validation of this field has been added to the test classes.
Removed redundant
cloudEventSource
field because it shouldn't belong to the WebHook Config entity.Another hardcoding in
WebHookProcessor
is now replaced by constant.Documentation