feat: add 'display_name' column to 'workspace_agent_scripts' (#14747)

* feat: add 'display_name' column to 'workspace_agent_scripts'

* fix: backfill from workspace_agent_log_sources

* fix: run 'make gen'
This commit is contained in:
Danielle Maywood
2024-09-20 14:26:13 +01:00
committed by GitHub
parent db7b411094
commit 86f68b220e
22 changed files with 420 additions and 349 deletions
+1
View File
@@ -487,6 +487,7 @@ curl -X GET http://coder-server:8080/api/v2/workspaceagents/{workspaceagent} \
"scripts": [
{
"cron": "string",
"display_name": "string",
"log_path": "string",
"log_source_id": "4197ab25-95cf-4b91-9c78-f7f2af5d353a",
"run_on_start": true,
+8
View File
@@ -128,6 +128,7 @@ curl -X GET http://coder-server:8080/api/v2/users/{user}/workspace/{workspacenam
"scripts": [
{
"cron": "string",
"display_name": "string",
"log_path": "string",
"log_source_id": "4197ab25-95cf-4b91-9c78-f7f2af5d353a",
"run_on_start": true,
@@ -311,6 +312,7 @@ curl -X GET http://coder-server:8080/api/v2/workspacebuilds/{workspacebuild} \
"scripts": [
{
"cron": "string",
"display_name": "string",
"log_path": "string",
"log_source_id": "4197ab25-95cf-4b91-9c78-f7f2af5d353a",
"run_on_start": true,
@@ -633,6 +635,7 @@ curl -X GET http://coder-server:8080/api/v2/workspacebuilds/{workspacebuild}/res
"scripts": [
{
"cron": "string",
"display_name": "string",
"log_path": "string",
"log_source_id": "4197ab25-95cf-4b91-9c78-f7f2af5d353a",
"run_on_start": true,
@@ -738,6 +741,7 @@ Status Code **200**
| `»» resource_id` | string(uuid) | false | | |
| `»» scripts` | array | false | | |
| `»»» cron` | string | false | | |
| `»»» display_name` | string | false | | |
| `»»» log_path` | string | false | | |
| `»»» log_source_id` | string(uuid) | false | | |
| `»»» run_on_start` | boolean | false | | |
@@ -924,6 +928,7 @@ curl -X GET http://coder-server:8080/api/v2/workspacebuilds/{workspacebuild}/sta
"scripts": [
{
"cron": "string",
"display_name": "string",
"log_path": "string",
"log_source_id": "4197ab25-95cf-4b91-9c78-f7f2af5d353a",
"run_on_start": true,
@@ -1112,6 +1117,7 @@ curl -X GET http://coder-server:8080/api/v2/workspaces/{workspace}/builds \
"scripts": [
{
"cron": "string",
"display_name": "string",
"log_path": "string",
"log_source_id": "4197ab25-95cf-4b91-9c78-f7f2af5d353a",
"run_on_start": true,
@@ -1254,6 +1260,7 @@ Status Code **200**
| `»»» resource_id` | string(uuid) | false | | |
| `»»» scripts` | array | false | | |
| `»»»» cron` | string | false | | |
| `»»»» display_name` | string | false | | |
| `»»»» log_path` | string | false | | |
| `»»»» log_source_id` | string(uuid) | false | | |
| `»»»» run_on_start` | boolean | false | | |
@@ -1494,6 +1501,7 @@ curl -X POST http://coder-server:8080/api/v2/workspaces/{workspace}/builds \
"scripts": [
{
"cron": "string",
"display_name": "string",
"log_path": "string",
"log_source_id": "4197ab25-95cf-4b91-9c78-f7f2af5d353a",
"run_on_start": true,
+7
View File
@@ -6454,6 +6454,7 @@ If the schedule is empty, the user will be updated to use the default schedule.|
"scripts": [
{
"cron": "string",
"display_name": "string",
"log_path": "string",
"log_source_id": "4197ab25-95cf-4b91-9c78-f7f2af5d353a",
"run_on_start": true,
@@ -6633,6 +6634,7 @@ If the schedule is empty, the user will be updated to use the default schedule.|
"scripts": [
{
"cron": "string",
"display_name": "string",
"log_path": "string",
"log_source_id": "4197ab25-95cf-4b91-9c78-f7f2af5d353a",
"run_on_start": true,
@@ -6901,6 +6903,7 @@ If the schedule is empty, the user will be updated to use the default schedule.|
```json
{
"cron": "string",
"display_name": "string",
"log_path": "string",
"log_source_id": "4197ab25-95cf-4b91-9c78-f7f2af5d353a",
"run_on_start": true,
@@ -6916,6 +6919,7 @@ If the schedule is empty, the user will be updated to use the default schedule.|
| Name | Type | Required | Restrictions | Description |
| -------------------- | ------- | -------- | ------------ | ----------- |
| `cron` | string | false | | |
| `display_name` | string | false | | |
| `log_path` | string | false | | |
| `log_source_id` | string | false | | |
| `run_on_start` | boolean | false | | |
@@ -7144,6 +7148,7 @@ If the schedule is empty, the user will be updated to use the default schedule.|
"scripts": [
{
"cron": "string",
"display_name": "string",
"log_path": "string",
"log_source_id": "4197ab25-95cf-4b91-9c78-f7f2af5d353a",
"run_on_start": true,
@@ -7479,6 +7484,7 @@ If the schedule is empty, the user will be updated to use the default schedule.|
"scripts": [
{
"cron": "string",
"display_name": "string",
"log_path": "string",
"log_source_id": "4197ab25-95cf-4b91-9c78-f7f2af5d353a",
"run_on_start": true,
@@ -7739,6 +7745,7 @@ If the schedule is empty, the user will be updated to use the default schedule.|
"scripts": [
{
"cron": "string",
"display_name": "string",
"log_path": "string",
"log_source_id": "4197ab25-95cf-4b91-9c78-f7f2af5d353a",
"run_on_start": true,
+4
View File
@@ -2000,6 +2000,7 @@ curl -X GET http://coder-server:8080/api/v2/templateversions/{templateversion}/d
"scripts": [
{
"cron": "string",
"display_name": "string",
"log_path": "string",
"log_source_id": "4197ab25-95cf-4b91-9c78-f7f2af5d353a",
"run_on_start": true,
@@ -2105,6 +2106,7 @@ Status Code **200**
| `»» resource_id` | string(uuid) | false | | |
| `»» scripts` | array | false | | |
| `»»» cron` | string | false | | |
| `»»» display_name` | string | false | | |
| `»»» log_path` | string | false | | |
| `»»» log_source_id` | string(uuid) | false | | |
| `»»» run_on_start` | boolean | false | | |
@@ -2422,6 +2424,7 @@ curl -X GET http://coder-server:8080/api/v2/templateversions/{templateversion}/r
"scripts": [
{
"cron": "string",
"display_name": "string",
"log_path": "string",
"log_source_id": "4197ab25-95cf-4b91-9c78-f7f2af5d353a",
"run_on_start": true,
@@ -2527,6 +2530,7 @@ Status Code **200**
| `»» resource_id` | string(uuid) | false | | |
| `»» scripts` | array | false | | |
| `»»» cron` | string | false | | |
| `»»» display_name` | string | false | | |
| `»»» log_path` | string | false | | |
| `»»» log_source_id` | string(uuid) | false | | |
| `»»» run_on_start` | boolean | false | | |
+6
View File
@@ -167,6 +167,7 @@ of the template will be used.
"scripts": [
{
"cron": "string",
"display_name": "string",
"log_path": "string",
"log_source_id": "4197ab25-95cf-4b91-9c78-f7f2af5d353a",
"run_on_start": true,
@@ -383,6 +384,7 @@ curl -X GET http://coder-server:8080/api/v2/users/{user}/workspace/{workspacenam
"scripts": [
{
"cron": "string",
"display_name": "string",
"log_path": "string",
"log_source_id": "4197ab25-95cf-4b91-9c78-f7f2af5d353a",
"run_on_start": true,
@@ -623,6 +625,7 @@ of the template will be used.
"scripts": [
{
"cron": "string",
"display_name": "string",
"log_path": "string",
"log_source_id": "4197ab25-95cf-4b91-9c78-f7f2af5d353a",
"run_on_start": true,
@@ -838,6 +841,7 @@ curl -X GET http://coder-server:8080/api/v2/workspaces \
"scripts": [
{
"cron": "string",
"display_name": "string",
"log_path": "string",
"log_source_id": "4197ab25-95cf-4b91-9c78-f7f2af5d353a",
"run_on_start": true,
@@ -1055,6 +1059,7 @@ curl -X GET http://coder-server:8080/api/v2/workspaces/{workspace} \
"scripts": [
{
"cron": "string",
"display_name": "string",
"log_path": "string",
"log_source_id": "4197ab25-95cf-4b91-9c78-f7f2af5d353a",
"run_on_start": true,
@@ -1387,6 +1392,7 @@ curl -X PUT http://coder-server:8080/api/v2/workspaces/{workspace}/dormant \
"scripts": [
{
"cron": "string",
"display_name": "string",
"log_path": "string",
"log_source_id": "4197ab25-95cf-4b91-9c78-f7f2af5d353a",
"run_on_start": true,