Commit Graph

5 Commits

Author SHA1 Message Date
f22885599f fix tests 2025-02-07 07:59:49 +00:00
3d4552faaa Fix InsertPresetParameters 2025-02-05 14:03:37 +00:00
bf9e0a4749 feat(site): add presets to workspace creation page
* Add frontend components to pick a preset
* Add api endpoints to list presets and fetch their parameters
* update database queries based on new insights about how the frontend uses presets
2025-02-05 14:03:37 +00:00
45afcc668a Review notes and test fixing 2025-02-05 14:03:37 +00:00
2fca3693fc adds support for workspace presets to the coderd database. Support in the API and web frontend will be added in subsequent pull requests. This is the smallest meaningful contribution that I could get passing tests for.
* Add workspace preset tables to the database in a migration
* Add queries to manipulate workspace presets to the database
* Generate db related code for the newly added queries
* Implement new methods to satisfy the Querier interface in dbauthz, dbmem, dbmock and querymetrics
* Implement the required tests for dbauthz
* Update the audit table to track changes to the new column in workspace builds
2025-02-05 14:03:37 +00:00