Skip to content
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

feat: Update generated schema for provisionerd #121

Merged
merged 1 commit into from
Feb 1, 2022
Merged

Conversation

kylecarbs
Copy link
Member

These changes were part of a bulk change to create provisionerd.
They were ripped out for simpler reviewing.

@codecov
Copy link

codecov bot commented Feb 1, 2022

Codecov Report

Merging #121 (b37edc2) into main (bf90ded) will increase coverage by 0.34%.
The diff coverage is 79.24%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #121      +/-   ##
==========================================
+ Coverage   71.90%   72.24%   +0.34%     
==========================================
  Files          91       91              
  Lines        3670     3751      +81     
  Branches       59       59              
==========================================
+ Hits         2639     2710      +71     
- Misses        814      824      +10     
  Partials      217      217              
Flag Coverage Δ
unittest-go-macos-latest 68.45% <ø> (+0.44%) ⬆️
unittest-go-ubuntu-latest 70.54% <79.24%> (+0.76%) ⬆️
unittest-go-windows-latest 67.86% <ø> (+0.17%) ⬆️
unittest-js 74.72% <ø> (ø)
Impacted Files Coverage Δ
provisioner/terraform/provision.go 73.68% <78.49%> (+16.05%) ⬆️
provisioner/terraform/parse.go 78.18% <84.61%> (+3.18%) ⬆️
peer/channel.go 84.75% <0.00%> (-2.44%) ⬇️
peer/conn.go 79.42% <0.00%> (-0.79%) ⬇️
peerbroker/listen.go 84.80% <0.00%> (+2.39%) ⬆️
peerbroker/dial.go 80.95% <0.00%> (+4.76%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bf90ded...b37edc2. Read the comment docs.

These changes were part of a bulk change to create provisionerd.
They were ripped out for simpler reviewing.
defer reader.Close()
defer writer.Close()
go func() {
decoder := json.NewDecoder(reader)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we're getting really close to being able to stream the terraform logs 🎉

@@ -22,14 +23,16 @@ CREATE TABLE workspace_history (
completed_at timestamptz,
workspace_id uuid NOT NULL REFERENCES workspace (id) ON DELETE CASCADE,
project_history_id uuid NOT NULL REFERENCES project_history (id) ON DELETE CASCADE,
name varchar(64) NOT NULL,
before_id uuid,
after_id uuid,
transition workspace_transition NOT NULL,
initiator varchar(255) NOT NULL,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated to this PR, but it reminded me - what are values for initiator like? Is it supposed to reference the user that initiated the transition, or something else?

@kylecarbs kylecarbs merged commit ac617e1 into main Feb 1, 2022
@kylecarbs kylecarbs deleted the provisionerschema branch February 1, 2022 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants