Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 3 additions & 3 deletions bun.lock

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
Expand Up @@ -574,7 +574,6 @@ export const workspacesRouter = router({
let worktreePath: string;
let alreadyExists = false;
let workspaceRow: CloudWorkspace;
const warnings: string[] = [];

if (input.pr !== undefined) {
const releaseCreateLock = await acquireWorkspaceCreateLock(
Expand Down Expand Up @@ -614,7 +613,6 @@ export const workspacesRouter = router({
) => {
if (materialized.warning) {
console.warn(`[workspaces.create] ${materialized.warning}`);
warnings.push(materialized.warning);
}
};
const normalizeExistingPrBranch = async () => {
Expand Down Expand Up @@ -1015,7 +1013,6 @@ export const workspacesRouter = router({
});
if (warning) {
console.warn(`[workspaces.create] setup warning: ${warning}`);
warnings.push(warning);
}
if (terminal) {
terminalsResult.push({
Expand All @@ -1036,7 +1033,6 @@ export const workspacesRouter = router({
terminals: terminalsResult,
agents: agentsResult,
alreadyExists,
warnings,
txid: extractCreateTxid(workspaceRow),
};
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ describe("workspaces.create PR checkout integration", () => {
).toBe("HEAD:refs/heads/feature/pr-lockfile");
const dryRunOutput = await worktreeGit.raw(["push", "--dry-run"]);
expect(typeof dryRunOutput).toBe("string");
expect(result.warnings).toEqual([]);

const lockStatus = (
await worktreeGit.raw([
Expand Down Expand Up @@ -531,7 +530,6 @@ describe("workspaces.create PR checkout integration", () => {
expect(worktreePath).toBeTruthy();
if (!worktreePath) throw new Error("expected worktree path");
expect(result.workspace.branch).toBe("feature/same-repo");
expect(result.warnings).toEqual([]);
expect(
(
await scenario.repo.git.raw([
Expand All @@ -553,7 +551,7 @@ describe("workspaces.create PR checkout integration", () => {
).toBe(prHeadOid);
});

test("same-repo PR falls back to synthetic ref with a user-visible warning when the head branch is gone", async () => {
test("same-repo PR falls back to synthetic ref when the head branch is gone", async () => {
const prNumber = 8081;
let prHeadOid = "";

Expand Down Expand Up @@ -616,8 +614,7 @@ describe("workspaces.create PR checkout integration", () => {
)?.worktreePath;
expect(worktreePath).toBeTruthy();
if (!worktreePath) throw new Error("expected worktree path");
expect(result.warnings).toHaveLength(1);
expect(result.warnings[0]).toContain("was unavailable from origin");
expect(result.workspace.branch).toBe("feature/deleted-head");
expect(
(
await scenario.repo.git.raw([
Expand Down
1 change: 0 additions & 1 deletion packages/mcp-v2/src/tools/workspaces/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ export function register(server: McpServer): void {
| { ok: false; error: string }
>;
alreadyExists: boolean;
warnings: string[];
}>(
{
relayUrl: ctx.relayUrl,
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@superset/sdk",
"version": "0.0.1-alpha.10",
"version": "0.0.1-alpha.11",
"description": "TypeScript SDK for the Superset API",
"private": true,
"type": "module",
Expand Down
1 change: 0 additions & 1 deletion packages/sdk/src/resources/workspaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ export interface WorkspaceCreateResult {
terminals: Array<{ terminalId: string; label?: string }>;
agents: WorkspaceCreateAgentResult[];
alreadyExists: boolean;
warnings: string[];
}

export interface WorkspaceUpdateParams {
Expand Down
Loading