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
+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,