-
Notifications
You must be signed in to change notification settings - Fork 888
chore: track terraform modules in telemetry #15450
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
Changes from all commits
0f713ed
82c8a3c
307a57e
2ae16fc
7f2f155
863235d
993f0ab
e8fbd40
5c542e5
9ec5ee1
119a686
3a5a025
3377d22
422b112
46b9b36
f3f4d5c
93ed136
301a153
212e7d5
e9b7c46
25cba6d
780730f
b47a018
03be52e
00b8131
4187fbf
7e82c3d
42e57ca
368fc25
73b22cf
7b9d70a
ea82313
8564e9a
d11fc82
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
DROP TABLE workspace_modules; | ||
|
||
ALTER TABLE | ||
workspace_resources | ||
DROP COLUMN module_path; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
ALTER TABLE | ||
workspace_resources | ||
ADD | ||
COLUMN module_path TEXT; | ||
|
||
CREATE TABLE workspace_modules ( | ||
id uuid NOT NULL, | ||
job_id uuid NOT NULL REFERENCES provisioner_jobs (id) ON DELETE CASCADE, | ||
transition workspace_transition NOT NULL, | ||
source TEXT NOT NULL, | ||
version TEXT NOT NULL, | ||
key TEXT NOT NULL, | ||
created_at timestamp with time zone NOT NULL | ||
); | ||
|
||
CREATE INDEX workspace_modules_created_at_idx ON workspace_modules (created_at); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
INSERT INTO | ||
public.workspace_modules ( | ||
id, | ||
job_id, | ||
transition, | ||
source, | ||
version, | ||
key, | ||
created_at | ||
) | ||
VALUES | ||
( | ||
'5b1a722c-b8a0-40b0-a3a0-d8078fff9f6c', | ||
'424a58cb-61d6-4627-9907-613c396c4a38', | ||
'start', | ||
'test-source', | ||
'v1.0.0', | ||
'test-key', | ||
'2024-11-08 10:00:00+00' | ||
); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
note:
rbac.ResourceSystem
is fine just for telemetry, but we'll probably want to create a separate RBAC resource in future for some of the other use-cases here. Can you create a follow-up issue for this and add a comment referencing it?