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
38 changes: 0 additions & 38 deletions e2e/admin/helpers/mia-form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,44 +150,6 @@ export async function addMiaParameter(
});
}

/** Ensure Plantilla exposes a child param label for MIA mapping UI. */
export async function putPlantillaParameter(
request: APIRequestContext,
taskId: number,
options: { variable: string; label: string; templateHtml: string },
): Promise<void> {
const get = await request.get(`/backend/api/tasks/${taskId}`, {
headers: { 'X-SITMUN-Client': 'admin' },
});
expect(get.ok(), await get.text()).toBeTruthy();
const task = (await get.json()) as {
name?: string;
properties?: Record<string, unknown>;
};
const put = await request.put(`/backend/api/tasks/${taskId}`, {
headers: {
'X-SITMUN-Client': 'admin',
'Content-Type': 'application/json',
},
data: {
name: task.name,
properties: {
...(task.properties ?? {}),
templateHtml: options.templateHtml,
parameters: [
{
variable: options.variable,
label: options.label,
type: 'string',
required: false,
},
],
},
},
});
expect(put.ok(), `put plantilla params: ${put.status()} ${await put.text()}`).toBeTruthy();
}

export async function gotoMiaDetailsTab(page: Page): Promise<void> {
// common.form.details → "General information" / "Informació general" / …
await page
Expand Down
11 changes: 0 additions & 11 deletions e2e/admin/helpers/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,6 @@ export async function switchTemplateEditorToVisual(page: Page): Promise<void> {
await expect(editor.locator('textarea.template-editor-source')).toHaveCount(0);
}

/** Insert a sibling paragraph at the start of the visual TipTap document (triggers serialize). */
export async function insertVisualSiblingParagraph(page: Page, text: string): Promise<void> {
await switchTemplateEditorToVisual(page);
const host = page.locator('app-template-editor .template-editor-host .ProseMirror').first();
await expect(host).toBeVisible({ timeout: 15_000 });
await host.click();
await page.keyboard.press('ControlOrMeta+Home');
await page.keyboard.type(text);
await page.keyboard.press('Enter');
}

export async function setTemplateHtml(page: Page, html: string): Promise<void> {
await switchTemplateEditorToHtml(page);
const source = page.locator('app-template-editor textarea.template-editor-source');
Expand Down
11 changes: 0 additions & 11 deletions e2e/viewer/layer-catalog.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,17 +111,6 @@ function folderByTitle(page: Page, title: string) {
});
}

async function expandNode(page: Page, nodeId: string): Promise<void> {
const li = page.locator(`#tc-slot-toc li[data-layer-name="${nodeId}"]`);
await expect(li).toBeVisible({ timeout: 30_000 });
const branch = li.locator(':scope > ul').first();
if ((await branch.count()) > 0 && (await branch.isVisible())) {
return;
}
await li.locator('.tc-ctl-lcat-node-title, span').first().click();
await expect(branch).toBeVisible({ timeout: 15_000 });
}

async function patchTreeNodeLoadData(
request: APIRequestContext,
nodeDbId: number,
Expand Down
4 changes: 0 additions & 4 deletions tools/bin/report_schema_drift.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,10 +518,6 @@ def backfill_update_sql(
return f"UPDATE {table} SET {column} = {lit} WHERE {column} IS NULL"


def _yaml_escape(s: str) -> str:
return s.replace('"', '\\"')


def _append_not_null_with_backfill(
lines: list[str],
*,
Expand Down
Loading