Files
gristlabs_grist-core/app/client/ui
Jakub Serafin f7fdfab6bf (core) GET endpoint for webhooks returns now data in format {webhooks:[...]}
Summary:
Rework of endpoint GET  for webhooks to make it coherent with other endpoints. Now data should be return in {webhooks:[{id:"...",fields:{"..."}]} format

```
{
    "webhooks": [
        {
            "id": ...
            "fields": {
                "url": ...
                "unsubscribeKey": ...
                "eventTypes": [
                    "add",
                    "update"
                ],
                "isReadyColumn": null,
                "tableId": "...",
                "enabled": false,
                "name": "...",
                "memo": "..."
            },
            "usage": {
                "status": "idle",
                "numWaiting": 0,
                "lastEventBatch": null
            }
        },
        {
            "id": "...",
            "fields": {
                "url": "...",
                "unsubscribeKey": "...",
                "eventTypes": [
                    "add",
                    "update"
                ],
                "isReadyColumn": null,
                "tableId": "...",
                "enabled": true,
                "name": "...",
                "memo": "..."
            },
            "usage": {
                "status": "error",
                "numWaiting": 0,
                "updatedTime": 1689076978098,
                "lastEventBatch": {
                    "status": "rejected",
                    "httpStatus": 404,
                    "errorMessage": "{\"success\":false,\"error\":{\"message\":\"Alias 5a9bf6a8-4865-403a-bec6-b4ko not found\",\"id\":null}}",
                    "size": 49,
                    "attempts": 5
                },
                "lastSuccessTime": null,
                "lastFailureTime": 1689076978097,
                "lastErrorMessage": "{\"success\":false,\"error\":{\"message\":\"Alias 5a9bf6a8-4865-403a-bec6-b4ko not found\",\"id\":null}}",
                "lastHttpStatus": 404
            }
        }
    ]
}
```

Test Plan: new test added to check if GET data fromat is correct. Other tests fixed to handle changed endpoint.

Reviewers: paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D3966
2023-07-26 11:36:24 +02:00
..
2023-04-20 12:20:03 -04:00
2020-10-02 13:24:21 -04:00
2023-05-15 12:01:19 -04:00
2023-03-28 19:57:52 +02:00
2023-01-03 17:45:14 +01:00
2022-07-04 10:42:40 -04:00
2023-06-06 11:34:49 -04:00
2023-06-02 17:59:22 +02:00
2023-01-03 17:22:58 +01:00
2022-09-30 09:11:46 -07:00
2023-01-03 17:22:58 +01:00
2022-09-29 18:02:09 +02:00
2023-01-03 16:01:45 +01:00
2023-06-02 17:59:22 +02:00
2023-01-03 12:33:34 +01:00
2022-09-21 10:30:54 -04:00
2023-03-16 17:37:24 -04:00
2023-03-02 11:22:49 +01:00
2020-10-02 13:24:21 -04:00
2023-04-06 12:34:54 -04:00