Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdcc6619

Browse files
committed
chore: increment proto.CurrentMinor & add database schema comment
1 parentd042031 commitdcc6619

File tree

6 files changed

+26
-4
lines changed

6 files changed

+26
-4
lines changed

‎cli/testdata/coder_provisioner_list_--output_json.golden‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"last_seen_at": "====[timestamp]=====",
88
"name": "test-daemon",
99
"version": "v0.0.0-devel",
10-
"api_version": "1.7",
10+
"api_version": "1.8",
1111
"provisioners": [
1212
"echo"
1313
],

‎coderd/database/dump.sql‎

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
ALTERTABLE template_version_presets
22
ADD COLUMN IF NOT EXISTS descriptionVARCHAR(128)NOT NULL DEFAULT'',
33
ADD COLUMN IF NOT EXISTS iconVARCHAR(256)NOT NULL DEFAULT'';
4+
5+
COMMENT ON COLUMN template_version_presets.description IS'Short text describing the preset (max 128 characters).';
6+
COMMENT ON COLUMN template_version_presets.icon IS'URL or path to an icon representing the preset (max 256 characters).';

‎coderd/database/models.go‎

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎provisionerd/proto/version.go‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,12 @@ import "github.com/coder/coder/v2/apiversion"
4444
// -> `has_ai_tasks` in `CompleteJob.TemplateImport`
4545
// -> `has_ai_tasks` and `ai_tasks` in `PlanComplete`
4646
// -> new message types `AITaskSidebarApp` and `AITask`
47+
//
48+
// API v1.8:
49+
// - Add new fields `description` and `icon` to `Preset`.
4750
const (
4851
CurrentMajor=1
49-
CurrentMinor=7
52+
CurrentMinor=8
5053
)
5154

5255
// CurrentVersion is the current provisionerd API version.

‎site/src/pages/CreateWorkspacePage/CreateWorkspacePageView.stories.tsx‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ export const PresetsButNoneSelected: Story = {
126126
{
127127
ID:"preset-1",
128128
Name:"Preset 1",
129+
Description:"",
130+
Icon:"",
129131
Default:false,
130132
Parameters:[
131133
{
@@ -138,6 +140,9 @@ export const PresetsButNoneSelected: Story = {
138140
{
139141
ID:"preset-2",
140142
Name:"Preset 2",
143+
Description:
144+
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse imperdiet ultricies massa, eu dapibus ex fermentum ac.",
145+
Icon:"/emojis/1f60e.png",
141146
Default:false,
142147
Parameters:[
143148
{
@@ -252,6 +257,8 @@ export const PresetsWithDefault: Story = {
252257
{
253258
ID:"preset-1",
254259
Name:"Preset 1",
260+
Icon:"",
261+
Description:"",
255262
Default:false,
256263
Parameters:[
257264
{
@@ -264,6 +271,9 @@ export const PresetsWithDefault: Story = {
264271
{
265272
ID:"preset-2",
266273
Name:"Preset 2",
274+
Icon:"/emojis/1f60e.png",
275+
Description:
276+
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse imperdiet ultricies massa, eu dapibus ex fermentum ac.",
267277
Default:true,
268278
Parameters:[
269279
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp