mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
webhook queue items panel
This commit is contained in:
@@ -31,11 +31,10 @@ namespace Espo\Controllers;
|
||||
|
||||
use Espo\Core\Api\Request;
|
||||
use Espo\Core\Api\Response;
|
||||
use Espo\Core\Controllers\RecordBase;
|
||||
|
||||
use Espo\Core\Controllers\Record;
|
||||
use stdClass;
|
||||
|
||||
class Webhook extends RecordBase
|
||||
class Webhook extends Record
|
||||
{
|
||||
protected function checkAccess(): bool
|
||||
{
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
"secretKey": "Secret Key"
|
||||
},
|
||||
"links": {
|
||||
"user": "User"
|
||||
"user": "User",
|
||||
"queueItems": "Queue Items"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
[
|
||||
"queueItems"
|
||||
]
|
||||
@@ -0,0 +1,17 @@
|
||||
[
|
||||
{
|
||||
"name": "target"
|
||||
},
|
||||
{
|
||||
"name": "status",
|
||||
"width": 20
|
||||
},
|
||||
{
|
||||
"name": "createdAt",
|
||||
"width": 20
|
||||
},
|
||||
{
|
||||
"name": "processedAt",
|
||||
"width": 20
|
||||
}
|
||||
]
|
||||
@@ -14,5 +14,13 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"relationshipPanels": {
|
||||
"queueItems": {
|
||||
"unlinkDisabled": true,
|
||||
"createDisabled": true,
|
||||
"selectDisabled": true,
|
||||
"layout": "listForWebhook"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -69,6 +69,12 @@
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"queueItems": {
|
||||
"type": "hasMany",
|
||||
"entity": "WebhookQueueItem",
|
||||
"foreign": "webhook",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
|
||||
@@ -51,7 +51,8 @@
|
||||
"webhook": {
|
||||
"type": "belongsTo",
|
||||
"entity": "Webhook",
|
||||
"foreignName": "id"
|
||||
"foreignName": "id",
|
||||
"foreign": "queueItems"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
|
||||
Reference in New Issue
Block a user