10000 chore: persist template import terraform plan in postgres by aslilac · Pull Request #17012 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

chore: persist template import terraform plan in postgres #17012

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 22 commits into from
Mar 24, 2025
Merged
Changes from 1 commit
Commits
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 e2e echoing
  • Loading branch information
aslilac committed Mar 20, 2025
commit 13ad6c87cc64fb64f3d45d8524030cce20c774aa
4 changes: 4 additions & 0 deletions site/e2e/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,8 @@ interface EchoProvisionerResponses {
apply?: RecursivePartial<Response>[];
}

const emptyPlan = new TextEncoder().encode("{}");

/**
* createTemplateVersionTar consumes a series of echo provisioner protobufs and
* converts it into an uploadable tar file.
Expand Down Expand Up @@ -581,6 +583,7 @@ const createTemplateVersionTar = async (
externalAuthProviders: response.apply?.externalAuthProviders ?? [],
timings: response.apply?.timings ?? [],
presets: [],
plan: emptyPlan,
},
};
});
Expand Down Expand Up @@ -703,6 +706,7 @@ const createTemplateVersionTar = async (
timings: [],
modules: [],
presets: [],
plan: emptyPlan,
...response.plan,
} as PlanComplete;
response.plan.resources = response.plan.resources?.map(fillResource);
Expand Down
Loading
0