feat: add force refresh of license entitlements (#9155)

* feat: add force refresh of license entitlements
* send "going away" mesasge on licenses pubsub on close
* Add manual refresh to licenses page
This commit is contained in:
Steven Masley
2023-08-22 09:26:43 -05:00
committed by GitHub
parent 37a3b42c55
commit 262d7692b6
16 changed files with 264 additions and 13 deletions

29
coderd/apidoc/docs.go generated
View File

@ -1024,6 +1024,31 @@ const docTemplate = `{
}
}
},
"/licenses/refresh-entitlements": {
"post": {
"security": [
{
"CoderSessionToken": []
}
],
"produces": [
"application/json"
],
"tags": [
"Organizations"
],
"summary": "Update license entitlements",
"operationId": "update-license-entitlements",
"responses": {
"201": {
"description": "Created",
"schema": {
"$ref": "#/definitions/codersdk.Response"
}
}
}
}
},
"/licenses/{id}": {
"delete": {
"security": [
@ -8068,6 +8093,10 @@ const docTemplate = `{
"has_license": {
"type": "boolean"
},
"refreshed_at": {
"type": "string",
"format": "date-time"
},
"require_telemetry": {
"type": "boolean"
},