-
Notifications
You must be signed in to change notification settings - Fork 875
feat: persist prebuild definitions on template import #16951
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
88 commits
Select commit
Hold shift + click to select a range
5ecc277
add prebuilds system user database changes and associated changes
SasSwart bc5f4f4
optionally prevent system users from counting to user count
dannykopping 48c5372
appease the linter
dannykopping b16d126
add unit test for system user behaviour
dannykopping 2c25542
reverting RBAC changes; not relevant here
dannykopping 8e491d8
removing unnecessary changes
dannykopping 514fdbf
exclude system user db tests from non-linux OSs
dannykopping 390a1fd
feat: add migrations and queries to support prebuilds
SasSwart 07e9613
Merge remote-tracking branch 'origin/main' into prebuilds-db
SasSwart a07c2b2
feat: persist prebuild definitions on template import
SasSwart 300e80f
add prebuilds system user database changes and associated changes
SasSwart b788237
optionally prevent system users from counting to user count
dannykopping 8122595
appease the linter
dannykopping bfb7c28
add unit test for system user behaviour
dannykopping 6639167
reverting RBAC changes; not relevant here
dannykopping 769ae1d
removing unnecessary changes
dannykopping e7e9c27
exclude system user db tests from non-linux OSs
dannykopping 3936047
Rename prebuild system user reference
SasSwart 8bdcafb
ensure that users.IsSystem is not nullable
SasSwart 412d198
feat: add migrations and queries to support prebuilds
SasSwart 51773ec
Simplify workspace_latest_build view
dannykopping 23773c2
Revert test change
dannykopping bc3ff44
make gen
dannykopping baa3076
refactor: add comments to SQL queries
evgeniy-scherbina ed14fb3
test: added get-presets-backoff test
evgeniy-scherbina 3cc74fb
refactor: add comment to SQL query
evgeniy-scherbina fc32154
refactor: add comments + improve tests
evgeniy-scherbina d7b4ec4
fix: bug in SQL
evgeniy-scherbina e8b53f7
test: minor changes to the test
evgeniy-scherbina 9df6554
refactor: remove job_status from SQL query
evgeniy-scherbina ccc309e
refactor: embed preset_prebuilds table into presets table
evgeniy-scherbina ee1f16a
refactor: rename sql table
evgeniy-scherbina d040ddd
refactor: remove unnecessary JOIN
evgeniy-scherbina 83a6722
refactor: remove unnecessary JOIN
evgeniy-scherbina cd70710
refactor: use INNER JOIN for consistency
evgeniy-scherbina 0f3bda0
Merge remote-tracking branch 'origin/prebuilds-db' into jjs/insert-pr…
SasSwart a7c7cd2
make lint
SasSwart 97cc4ff
refactor: simplify GetPresetsBackoff SQL Query
evgeniy-scherbina 4d59039
Revert "refactor: simplify GetPresetsBackoff SQL Query"
evgeniy-scherbina 205d6af
refactor: improve GetPresetsBackoff query
evgeniy-scherbina e489e1b
Merge remote-tracking branch 'origin/main' into prebuilds-db
evgeniy-scherbina 1b29686
Merge remote-tracking branch 'origin/main' into prebuilds-db
evgeniy-scherbina 20470e4
fix: bump migration numbers
evgeniy-scherbina 6fc1889
Merge remote-tracking branch 'origin/main' into jjs/insert-prebuilds
SasSwart 7b9c8ce
test: remove deprecated test
evgeniy-scherbina e189a0b
fix: fix linter
evgeniy-scherbina 692c0e5
fix: fix 000310_prebuilds.down migration
evgeniy-scherbina f747db0
fix: fix fixture migration
evgeniy-scherbina 3166a42
fix: fix get-presets-backoff test
evgeniy-scherbina aa6b490
fix: fix linter
evgeniy-scherbina bc4e7d2
fix: fix linter
evgeniy-scherbina f167b92
correctly select for the latest built with a preset in latest_prebuil…
SasSwart 8fd34ab
Merge remote-tracking branch 'origin/main' into prebuilds-db
SasSwart 7a8ec49
Properly label and filter metrics for prebuilds
SasSwart a64d661
test: fix db tests
evgeniy-scherbina 865998b
Merge branch 'prebuilds-db' into jjs/insert-prebuilds
SasSwart c787cd2
test: added tests for workspaces with multiple agents
evgeniy-scherbina bd38603
refactor: avoid code duplication
evgeniy-scherbina 097f9c3
clarify query clause
SasSwart 4cfdd6f
tidy up dbauthz_test.go
SasSwart 4a34d52
refactor: remove * usage from prebuilds.sql queries
evgeniy-scherbina 8d9cd45
refactor: remove * usage from prebuilds views
evgeniy-scherbina f870d7e
refactor: join wlb with pj
evgeniy-scherbina 18ad931
refactor: Rename SQL query
evgeniy-scherbina 4667171
Added comments for SQL query
evgeniy-scherbina a26c094
refactor: fix down migration
evgeniy-scherbina bf4ab53
make lint
SasSwart a84b1bb
Merge remote-tracking branch 'origin/main' into jjs/insert-prebuilds
SasSwart 6ed4121
Merge remote-tracking branch 'origin/main' into prebuilds-db
SasSwart e8b1502
Merge branch 'prebuilds-db' into jjs/insert-prebuilds
SasSwart 2312f41
renumber migrations
SasSwart 4540a55
add tests for prebuilds in the provisionerdserver
SasSwart 5c41ba9
Merge branch 'prebuilds-db' into jjs/insert-prebuilds
SasSwart d09b757
fix indent
SasSwart 61e86f6
make more use of dbgen
SasSwart 1419df0
update dbmemt
SasSwart 6589221
Add tests
SasSwart b15b97a
Merge origin/main
SasSwart dd656a7
Merge remote-tracking branch 'origin/main' into jjs/insert-prebuilds
SasSwart 508b244
fix tests
SasSwart e1f585d
remove duplicate migrations fixture
SasSwart 7d4f1b9
clean up go.mod slightly
SasSwart 43f82b9
update dependency on terraform-provider-coder
SasSwart 5d8de71
simplify query
SasSwart a87933a
Correct the prebuilds type
SasSwart 798cfa1
fix prebuild decoding
SasSwart dc87f45
make fmt
SasSwart 7c17fcd
update our dependency on terraform-provider-coder
SasSwart File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Intentional deletion?