Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
6019903
feat: add prebuild invalidation via last_invalidated_at timestamp
mtojek Oct 30, 2025
90b75e1
fix: correct NullUUID and NullTime types in API call
mtojek Oct 30, 2025
f8a06c6
WIP
mtojek Oct 30, 2025
4eb3598
Revert "WIP"
mtojek Oct 30, 2025
d197762
codersdk
mtojek Oct 30, 2025
1af3e82
make gen
mtojek Oct 30, 2025
8ba1519
fix
mtojek Oct 30, 2025
7642b17
fix
mtojek Oct 30, 2025
1b574f8
fix: simplify UpdatePresetsLastInvalidatedAt query
mtojek Oct 30, 2025
67f73a7
change query
mtojek Oct 31, 2025
ef05f93
make gen
mtojek Oct 31, 2025
7b73191
fix: presets.sql
mtojek Oct 31, 2025
f9d8da2
make gen
mtojek Oct 31, 2025
d9bfb87
fix: api
mtojek Oct 31, 2025
8428e8a
wip
mtojek Oct 31, 2025
4cf9634
fix: no display_name
mtojek Oct 31, 2025
4e1bf2c
make gen
mtojek Oct 31, 2025
6ee1b31
fix: api
mtojek Oct 31, 2025
0c79a38
make gen
mtojek Oct 31, 2025
3e15712
fix: swagger
mtojek Oct 31, 2025
22e9f30
make gen
mtojek Oct 31, 2025
9aa7308
fix: swagger
mtojek Oct 31, 2025
db67c88
make gen
mtojek Oct 31, 2025
27c06d8
fix: dbauthz
mtojek Oct 31, 2025
18e6d85
move endpoint to enterprise
mtojek Oct 31, 2025
d8ecbab
move endpoint to enterprise
mtojek Oct 31, 2025
1d9e9d8
make gen
mtojek Oct 31, 2025
af6a27f
fmt
mtojek Oct 31, 2025
a785723
fix: extract
mtojek Oct 31, 2025
d8cec90
fix: route
mtojek Oct 31, 2025
0b745d6
fix: route
mtojek Oct 31, 2025
1ca2dcd
Merge branch 'main' into 17917-prebuilds-invalidation
mtojek Nov 18, 2025
47afba2
fix: migrations
mtojek Nov 18, 2025
1e7dab9
integration test
mtojek Nov 18, 2025
abaf831
given when then
mtojek Nov 18, 2025
d6e43da
preset tests
mtojek Nov 18, 2025
5e6af50
fmt
mtojek Nov 18, 2025
41204b0
Update coderd/prebuilds/global_snapshot.go
mtojek Nov 19, 2025
4750292
Update codersdk/templates.go
mtojek Nov 19, 2025
ef725e9
Update enterprise/coderd/templates_test.go
mtojek Nov 19, 2025
89b109a
Update enterprise/coderd/templates.go
mtojek Nov 19, 2025
8ff8bdb
renaming to presets
mtojek Nov 19, 2025
d129996
more renaming
mtojek Nov 19, 2025
aebd96c
make gen
mtojek Nov 19, 2025
ace7e96
wip
mtojek Nov 19, 2025
ae73a5b
wip
mtojek Nov 19, 2025
07cb43b
fix: templates_test.go
mtojek Nov 19, 2025
f9304d5
fix
mtojek Nov 19, 2025
3f7b6e2
make gen
mtojek Nov 19, 2025
6942ddc
fix
mtojek Nov 19, 2025
8c27216
fix
mtojek Nov 19, 2025
e8e7829
test: prebuild is newer than invalidated
mtojek Nov 19, 2025
60b7558
add comment
mtojek Nov 19, 2025
52f97cd
Merge branch 'main' into 17917-prebuilds-invalidation
mtojek Nov 20, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: no display_name
  • Loading branch information
mtojek committed Oct 31, 2025
commit 4cf96348265aed970eaa309b7a23425b60d6eb51
7 changes: 1 addition & 6 deletions codersdk/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -509,12 +509,7 @@ func (c *Client) StarterTemplates(ctx context.Context) ([]TemplateExample, error
}

type InvalidatePrebuildsResponse struct {
InvalidatedPresets []InvalidatedPreset `json:"invalidated_presets"`
}

type InvalidatedPreset struct {
Name string `json:"preset_name"`
DisplayName string `json:"display_name,omitempty"`
InvalidatedPresets []string `json:"invalidated_presets"`
}

// InvalidateTemplatePrebuilds invalidates all prebuilt workspaces for the
Expand Down
Loading