Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -718,8 +718,57 @@
},
"properties": [
{
"id": "custom.hidden",
"value": true
"id": "actions",
"value": [
{
"type": "fetch",
"title": "Delete reservation ${__value.raw}",
"fetch": {
"method": "POST",
"url": "${realm_server}_grafana-complete-job",
"queryParams": [
[
"reservation_id",
"${__value.raw}"
]
],
"headers": [
[
"Authorization",
"Bearer ${grafana_secret}"
]
],
"body": ""
},
"confirmation": "Cancel running reservation ${__value.raw}? The worker will stop processing it.",
"oneClick": false
}
]
},
{
"id": "mappings",
"value": [
{
"options": {
"from": 0,
"result": {
"color": "red",
"index": 0,
"text": "Delete"
},
"to": 9999999999999
},
"type": "range"
}
]
},
{
"id": "displayName",
"value": "Action"
},
{
"id": "custom.filterable",
"value": false
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion packages/realm-server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ export class RealmServer {
cors({
origin: '*',
allowHeaders:
'Authorization, Content-Type, If-Match, If-None-Match, X-Requested-With, X-Boxel-Client-Request-Id, X-Boxel-Assume-User, X-HTTP-Method-Override, X-Boxel-Disable-Module-Cache, X-Filename, X-Boxel-During-Prerender, X-Boxel-Consuming-Realm, X-Boxel-Job-Id, X-Grafana-Device-Id',
'Authorization, Content-Type, If-Match, If-None-Match, X-Requested-With, X-Boxel-Client-Request-Id, X-Boxel-Assume-User, X-HTTP-Method-Override, X-Boxel-Disable-Module-Cache, X-Filename, X-Boxel-During-Prerender, X-Boxel-Consuming-Realm, X-Boxel-Job-Id, X-Grafana-Device-Id, X-Grafana-Action',
allowMethods: 'GET,HEAD,PUT,POST,DELETE,PATCH,OPTIONS,QUERY',
// Cache the preflight response for 24 h. Without this @koa/cors
// omits Access-Control-Max-Age and Chrome falls back to its
Expand Down
Loading