chore: add "user_configs" db table (#16564)

This commit is contained in:
ケイラ
2025-03-05 10:46:03 -07:00
committed by GitHub
parent cc946f199d
commit 9041646b81
47 changed files with 786 additions and 394 deletions
+44 -1
View File
@@ -6395,6 +6395,38 @@ const docTemplate = `{
}
},
"/users/{user}/appearance": {
"get": {
"security": [
{
"CoderSessionToken": []
}
],
"produces": [
"application/json"
],
"tags": [
"Users"
],
"summary": "Get user appearance settings",
"operationId": "get-user-appearance-settings",
"parameters": [
{
"type": "string",
"description": "User ID, name, or me",
"name": "user",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/codersdk.UserAppearanceSettings"
}
}
}
},
"put": {
"security": [
{
@@ -6434,7 +6466,7 @@ const docTemplate = `{
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/codersdk.User"
"$ref": "#/definitions/codersdk.UserAppearanceSettings"
}
}
}
@@ -13857,6 +13889,7 @@ const docTemplate = `{
]
},
"theme_preference": {
"description": "Deprecated: this value should be retrieved from\n` + "`" + `codersdk.UserPreferenceSettings` + "`" + ` instead.",
"type": "string"
},
"updated_at": {
@@ -14724,6 +14757,7 @@ const docTemplate = `{
]
},
"theme_preference": {
"description": "Deprecated: this value should be retrieved from\n` + "`" + `codersdk.UserPreferenceSettings` + "`" + ` instead.",
"type": "string"
},
"updated_at": {
@@ -15334,6 +15368,7 @@ const docTemplate = `{
]
},
"theme_preference": {
"description": "Deprecated: this value should be retrieved from\n` + "`" + `codersdk.UserPreferenceSettings` + "`" + ` instead.",
"type": "string"
},
"updated_at": {
@@ -15406,6 +15441,14 @@ const docTemplate = `{
}
}
},
"codersdk.UserAppearanceSettings": {
"type": "object",
"properties": {
"theme_preference": {
"type": "string"
}
}
},
"codersdk.UserLatency": {
"type": "object",
"properties": {
+40 -1
View File
@@ -5647,6 +5647,34 @@
}
},
"/users/{user}/appearance": {
"get": {
"security": [
{
"CoderSessionToken": []
}
],
"produces": ["application/json"],
"tags": ["Users"],
"summary": "Get user appearance settings",
"operationId": "get-user-appearance-settings",
"parameters": [
{
"type": "string",
"description": "User ID, name, or me",
"name": "user",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/codersdk.UserAppearanceSettings"
}
}
}
},
"put": {
"security": [
{
@@ -5680,7 +5708,7 @@
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/codersdk.User"
"$ref": "#/definitions/codersdk.UserAppearanceSettings"
}
}
}
@@ -12538,6 +12566,7 @@
]
},
"theme_preference": {
"description": "Deprecated: this value should be retrieved from\n`codersdk.UserPreferenceSettings` instead.",
"type": "string"
},
"updated_at": {
@@ -13380,6 +13409,7 @@
]
},
"theme_preference": {
"description": "Deprecated: this value should be retrieved from\n`codersdk.UserPreferenceSettings` instead.",
"type": "string"
},
"updated_at": {
@@ -13942,6 +13972,7 @@
]
},
"theme_preference": {
"description": "Deprecated: this value should be retrieved from\n`codersdk.UserPreferenceSettings` instead.",
"type": "string"
},
"updated_at": {
@@ -14014,6 +14045,14 @@
}
}
},
"codersdk.UserAppearanceSettings": {
"type": "object",
"properties": {
"theme_preference": {
"type": "string"
}
}
},
"codersdk.UserLatency": {
"type": "object",
"properties": {