[MM-60689] Add Webhook ID in the logs (#28846)

* add webhook id to logs

* Move hook_id context to api level from app level.

* pass errCtx to other references of same app-error-id

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Vishal
2024-11-21 13:53:10 +05:30
коммит произвёл GitHub
родитель c98f2e75fb
Коммит 746eb70e01
10 изменённых файлов: 88 добавлений и 69 удалений

Просмотреть файл

@@ -4382,10 +4382,6 @@
"id": "api.webhook.create_outgoing.triggers.app_error",
"translation": "Either trigger_words or channel_id must be set."
},
{
"id": "api.webhook.incoming.error",
"translation": "Could not decode the multipart payload of incoming webhook."
},
{
"id": "api.webhook.team_mismatch.app_error",
"translation": "Unable to update webhook across teams."
@@ -4580,11 +4576,11 @@
},
{
"id": "app.channel.get.existing.app_error",
"translation": "Unable to find the existing channel."
"translation": "Unable to find the existing channel {{.channel_id}}."
},
{
"id": "app.channel.get.find.app_error",
"translation": "We encountered an error finding the channel."
"translation": "We encountered an error finding the channel {{.channel_id}}."
},
{
"id": "app.channel.get_all.app_error",
@@ -10270,11 +10266,15 @@
},
{
"id": "web.command_webhook.command.app_error",
"translation": "Couldn't find the command."
"translation": "Couldn't find the command {{.command_id}}."
},
{
"id": "web.command_webhook.general.app_error",
"translation": "Failed to handle command webhook {{.hook_id}}."
},
{
"id": "web.command_webhook.parse.app_error",
"translation": "Unable to parse incoming data."
"translation": "Unable to parse incoming data for webhook {{.hook_id}}."
},
{
"id": "web.error.unsupported_browser.browser_get_latest.chrome",
@@ -10382,23 +10382,35 @@
},
{
"id": "web.incoming_webhook.channel_locked.app_error",
"translation": "This webhook is not permitted to post to the requested channel."
"translation": "This webhook is not permitted to post to the requested channel {{.channel_id}}"
},
{
"id": "web.incoming_webhook.decode.app_error",
"translation": "Failed to decode the payload of media type {{.media_type}} for incoming webhook {{.hook_id}}."
},
{
"id": "web.incoming_webhook.disabled.app_error",
"translation": "Incoming webhooks have been disabled by the system admin."
},
{
"id": "web.incoming_webhook.general.app_error",
"translation": "Failed to handle the payload of media type {{.media_type}} for incoming webhook {{.hook_id}}."
},
{
"id": "web.incoming_webhook.invalid.app_error",
"translation": "Invalid webhook."
},
{
"id": "web.incoming_webhook.media_type.app_error",
"translation": "Failed to parse media incoming webhook {{.hook_id}}."
},
{
"id": "web.incoming_webhook.parse.app_error",
"translation": "Unable to parse incoming data."
},
{
"id": "web.incoming_webhook.permissions.app_error",
"translation": "Inappropriate channel permissions."
"translation": "User {{.user}} does not have appropriate permissions to channel {{.channel}}"
},
{
"id": "web.incoming_webhook.split_props_length.app_error",
@@ -10410,6 +10422,6 @@
},
{
"id": "web.incoming_webhook.user.app_error",
"translation": "Couldn't find the user."
"translation": "Couldn't find the user {{.user}}"
}
]