-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Add webhook payload size optimization options #35129
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
base: main
Are you sure you want to change the base?
Add webhook payload size optimization options #35129
Conversation
It should be more flexible to use "limit number" instead of "bool" |
f249f67
to
47c395d
Compare
47c395d
to
5472d66
Compare
Signed-off-by: Kerwin Bryant <kerwin612@qq.com>
|
5e828e9
to
258d8ee
Compare
81f8006
to
f30ad48
Compare
f30ad48
to
b718c54
Compare
b1d8892
to
655bfcd
Compare
@@ -622,7 +627,7 @@ type UpdateAllowEditsForm struct { | |||
// | _// __ \| | _/ __ \\__ \ / ___// __ \ | |||
// | | \ ___/| |_\ ___/ / __ \_\___ \\ ___/ | |||
// |____|_ /\___ >____/\___ >____ /____ >\___ > | |||
// \/ \/ \/ \/ \/ \/ | |||
// \/ \/ \/ \/ \/ \/ |
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.
Unrelated
} | ||
return defaultValue | ||
} | ||
|
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.
These functions have oddly generic names but then retrieve hardcoded strings "enable" and "limit" from the map. They should be renamed to like getEnableInt
and getLimitInt
. Also I wonder if the nolint could be avoided.
field.disabled = !enabled; | ||
} | ||
} | ||
</script> |
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.
Please move this js to web_src/js
. We definitely don't want new inline scripts as they don't work with strict CSP.
This PR adds webhook payload size optimization options to help reduce payload size for large commits or pushes with many commits. This feature is particularly useful for target URLs that restrict payload size or have performance problems handling large JSON parsing.
