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
239 changes: 239 additions & 0 deletions src/ingestion/scripts/create-bronze-placeholders.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ CREATE DATABASE IF NOT EXISTS bronze_bitbucket_cloud;
CREATE DATABASE IF NOT EXISTS bronze_zulip_proxy;
CREATE DATABASE IF NOT EXISTS bronze_claude_team;
CREATE DATABASE IF NOT EXISTS bronze_claude_enterprise;
CREATE DATABASE IF NOT EXISTS bronze_outline;
CREATE DATABASE IF NOT EXISTS bronze_confluence;
SQL

# ---------------------------------------------------------------------------
Expand Down Expand Up @@ -739,6 +741,11 @@ if ! ch_table_exists bronze_jira jira_user; then
CREATE TABLE IF NOT EXISTS bronze_jira.jira_user (
unique_key String,
source_id String,
-- tenant_id is read by confluence__wiki_pages' jira_user join (account_id →
-- email identity resolution). The real Airbyte stream carries it; the
-- placeholder omitted it, which broke that model's compile on a fresh
-- cluster. Nullable so connectors that seed jira_user without it still load.
tenant_id Nullable(String),
account_id String,
email Nullable(String),
display_name Nullable(String),
Expand All @@ -750,6 +757,15 @@ CREATE TABLE IF NOT EXISTS bronze_jira.jira_user (
_airbyte_generation_id UInt32 DEFAULT 0
) ENGINE = ReplacingMergeTree(_airbyte_extracted_at) ORDER BY unique_key;
SQL
else
# Reconcile a pre-existing jira_user (warm cluster, or one already created by
# the Jira connector before this column was added): the create branch above is
# skipped, so add tenant_id in place. confluence__wiki_pages' jira_user join
# reads it and fails to compile otherwise. Idempotent (ADD COLUMN IF NOT EXISTS).
echo " Reconciling placeholder schema: bronze_jira.jira_user (tenant_id)"
run_ch <<'SQL'
ALTER TABLE bronze_jira.jira_user ADD COLUMN IF NOT EXISTS tenant_id Nullable(String);
SQL
fi

# bronze_jira.jira_issue_history — Jira changelog. jira__changelog_items.sql
Expand Down Expand Up @@ -1275,4 +1291,227 @@ CREATE TABLE IF NOT EXISTS bronze_claude_enterprise.claude_enterprise_users (
SQL
fi

# bronze_outline.wiki_pages — Outline document snapshot (author/version/space). Feeds outline__wiki_pages → class_wiki_pages.
if ! ch_table_exists bronze_outline wiki_pages; then
echo " Creating placeholder: bronze_outline.wiki_pages"
run_ch <<'SQL'
CREATE TABLE IF NOT EXISTS bronze_outline.wiki_pages (
unique_key String,
tenant_id Nullable(String),
source_id Nullable(String),
page_id Nullable(String),
space_id Nullable(String),
title Nullable(String),
status Nullable(String),
author_id Nullable(String),
author_email Nullable(String),
last_editor_id Nullable(String),
last_editor_email Nullable(String),
parent_page_id Nullable(String),
version_number Nullable(Int64),
created_at Nullable(String),
updated_at Nullable(String),
collected_at Nullable(String),
_airbyte_raw_id String DEFAULT toString(generateUUIDv4()),
_airbyte_extracted_at DateTime64(3) DEFAULT now64(3),
_airbyte_meta String DEFAULT '{}',
_airbyte_generation_id UInt32 DEFAULT 0
) ENGINE = ReplacingMergeTree(_airbyte_extracted_at) ORDER BY unique_key;
SQL
fi

# bronze_outline.wiki_spaces — collection metadata (LEFT JOIN in outline__wiki_pages).
if ! ch_table_exists bronze_outline wiki_spaces; then
echo " Creating placeholder: bronze_outline.wiki_spaces"
run_ch <<'SQL'
CREATE TABLE IF NOT EXISTS bronze_outline.wiki_spaces (
unique_key String,
tenant_id Nullable(String),
source_id Nullable(String),
space_id Nullable(String),
name Nullable(String),
url Nullable(String),
_airbyte_raw_id String DEFAULT toString(generateUUIDv4()),
_airbyte_extracted_at DateTime64(3) DEFAULT now64(3),
_airbyte_meta String DEFAULT '{}',
_airbyte_generation_id UInt32 DEFAULT 0
) ENGINE = ReplacingMergeTree(_airbyte_extracted_at) ORDER BY unique_key;
SQL
fi

# bronze_outline.wiki_users — user directory (LEFT JOIN for author_email in outline__wiki_pages).
if ! ch_table_exists bronze_outline wiki_users; then
echo " Creating placeholder: bronze_outline.wiki_users"
run_ch <<'SQL'
CREATE TABLE IF NOT EXISTS bronze_outline.wiki_users (
unique_key String,
tenant_id Nullable(String),
source_id Nullable(String),
user_id Nullable(String),
email Nullable(String),
_airbyte_raw_id String DEFAULT toString(generateUUIDv4()),
_airbyte_extracted_at DateTime64(3) DEFAULT now64(3),
_airbyte_meta String DEFAULT '{}',
_airbyte_generation_id UInt32 DEFAULT 0
) ENGINE = ReplacingMergeTree(_airbyte_extracted_at) ORDER BY unique_key;
SQL
fi

# bronze_outline.wiki_comments — page comments. Feeds outline__wiki_engagement → class_wiki_engagement.
if ! ch_table_exists bronze_outline wiki_comments; then
echo " Creating placeholder: bronze_outline.wiki_comments"
run_ch <<'SQL'
CREATE TABLE IF NOT EXISTS bronze_outline.wiki_comments (
unique_key String,
tenant_id Nullable(String),
source_id Nullable(String),
page_id Nullable(String),
comment_id Nullable(String),
author_id Nullable(String),
created_at Nullable(String),
resolution_status Nullable(String),
parent_comment_id Nullable(String),
anchor_text Nullable(String),
_airbyte_raw_id String DEFAULT toString(generateUUIDv4()),
_airbyte_extracted_at DateTime64(3) DEFAULT now64(3),
_airbyte_meta String DEFAULT '{}',
_airbyte_generation_id UInt32 DEFAULT 0
) ENGINE = ReplacingMergeTree(_airbyte_extracted_at) ORDER BY unique_key;
SQL
fi

# bronze_confluence.wiki_pages — page snapshot (author/version/space). Feeds confluence__wiki_pages → class_wiki_pages.
if ! ch_table_exists bronze_confluence wiki_pages; then
echo " Creating placeholder: bronze_confluence.wiki_pages"
run_ch <<'SQL'
CREATE TABLE IF NOT EXISTS bronze_confluence.wiki_pages (
unique_key String,
tenant_id Nullable(String),
source_id Nullable(String),
page_id Nullable(String),
space_id Nullable(String),
title Nullable(String),
status Nullable(String),
author_id Nullable(String),
last_editor_id Nullable(String),
parent_page_id Nullable(String),
version_number Nullable(Int64),
created_at Nullable(String),
updated_at Nullable(String),
collected_at Nullable(String),
_airbyte_raw_id String DEFAULT toString(generateUUIDv4()),
_airbyte_extracted_at DateTime64(3) DEFAULT now64(3),
_airbyte_meta String DEFAULT '{}',
_airbyte_generation_id UInt32 DEFAULT 0
) ENGINE = ReplacingMergeTree(_airbyte_extracted_at) ORDER BY unique_key;
SQL
fi

# bronze_confluence.wiki_spaces — space metadata (LEFT JOIN in confluence__wiki_pages).
if ! ch_table_exists bronze_confluence wiki_spaces; then
echo " Creating placeholder: bronze_confluence.wiki_spaces"
run_ch <<'SQL'
CREATE TABLE IF NOT EXISTS bronze_confluence.wiki_spaces (
unique_key String,
tenant_id Nullable(String),
source_id Nullable(String),
space_id Nullable(String),
name Nullable(String),
url Nullable(String),
_airbyte_raw_id String DEFAULT toString(generateUUIDv4()),
_airbyte_extracted_at DateTime64(3) DEFAULT now64(3),
_airbyte_meta String DEFAULT '{}',
_airbyte_generation_id UInt32 DEFAULT 0
) ENGINE = ReplacingMergeTree(_airbyte_extracted_at) ORDER BY unique_key;
SQL
fi

# bronze_confluence.wiki_footer_comments — footer top-level comments. Feeds confluence__wiki_engagement → class_wiki_engagement.
if ! ch_table_exists bronze_confluence wiki_footer_comments; then
echo " Creating placeholder: bronze_confluence.wiki_footer_comments"
run_ch <<'SQL'
CREATE TABLE IF NOT EXISTS bronze_confluence.wiki_footer_comments (
unique_key String,
tenant_id Nullable(String),
source_id Nullable(String),
page_id Nullable(String),
comment_id Nullable(String),
parent_comment_id Nullable(String),
author_id Nullable(String),
created_at Nullable(String),
resolution_status Nullable(String),
_airbyte_raw_id String DEFAULT toString(generateUUIDv4()),
_airbyte_extracted_at DateTime64(3) DEFAULT now64(3),
_airbyte_meta String DEFAULT '{}',
_airbyte_generation_id UInt32 DEFAULT 0
) ENGINE = ReplacingMergeTree(_airbyte_extracted_at) ORDER BY unique_key;
SQL
fi

# bronze_confluence.wiki_footer_comment_replies — footer replies comments. Feeds confluence__wiki_engagement → class_wiki_engagement.
if ! ch_table_exists bronze_confluence wiki_footer_comment_replies; then
echo " Creating placeholder: bronze_confluence.wiki_footer_comment_replies"
run_ch <<'SQL'
CREATE TABLE IF NOT EXISTS bronze_confluence.wiki_footer_comment_replies (
unique_key String,
tenant_id Nullable(String),
source_id Nullable(String),
page_id Nullable(String),
comment_id Nullable(String),
parent_comment_id Nullable(String),
author_id Nullable(String),
created_at Nullable(String),
resolution_status Nullable(String),
_airbyte_raw_id String DEFAULT toString(generateUUIDv4()),
_airbyte_extracted_at DateTime64(3) DEFAULT now64(3),
_airbyte_meta String DEFAULT '{}',
_airbyte_generation_id UInt32 DEFAULT 0
) ENGINE = ReplacingMergeTree(_airbyte_extracted_at) ORDER BY unique_key;
SQL
fi

# bronze_confluence.wiki_inline_comments — inline top-level comments. Feeds confluence__wiki_engagement → class_wiki_engagement.
if ! ch_table_exists bronze_confluence wiki_inline_comments; then
echo " Creating placeholder: bronze_confluence.wiki_inline_comments"
run_ch <<'SQL'
CREATE TABLE IF NOT EXISTS bronze_confluence.wiki_inline_comments (
unique_key String,
tenant_id Nullable(String),
source_id Nullable(String),
page_id Nullable(String),
comment_id Nullable(String),
parent_comment_id Nullable(String),
author_id Nullable(String),
created_at Nullable(String),
resolution_status Nullable(String),
_airbyte_raw_id String DEFAULT toString(generateUUIDv4()),
_airbyte_extracted_at DateTime64(3) DEFAULT now64(3),
_airbyte_meta String DEFAULT '{}',
_airbyte_generation_id UInt32 DEFAULT 0
) ENGINE = ReplacingMergeTree(_airbyte_extracted_at) ORDER BY unique_key;
SQL
fi

# bronze_confluence.wiki_inline_comment_replies — inline replies comments. Feeds confluence__wiki_engagement → class_wiki_engagement.
if ! ch_table_exists bronze_confluence wiki_inline_comment_replies; then
echo " Creating placeholder: bronze_confluence.wiki_inline_comment_replies"
run_ch <<'SQL'
CREATE TABLE IF NOT EXISTS bronze_confluence.wiki_inline_comment_replies (
unique_key String,
tenant_id Nullable(String),
source_id Nullable(String),
page_id Nullable(String),
comment_id Nullable(String),
parent_comment_id Nullable(String),
author_id Nullable(String),
created_at Nullable(String),
resolution_status Nullable(String),
_airbyte_raw_id String DEFAULT toString(generateUUIDv4()),
_airbyte_extracted_at DateTime64(3) DEFAULT now64(3),
_airbyte_meta String DEFAULT '{}',
_airbyte_generation_id UInt32 DEFAULT 0
) ENGINE = ReplacingMergeTree(_airbyte_extracted_at) ORDER BY unique_key;
SQL
fi

echo "=== Placeholders: done ==="
9 changes: 9 additions & 0 deletions src/ingestion/tests/e2e/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,15 @@ def compose_stack(session_cfg: SessionConfig):
# Session-start reset keeps warm re-runs (reused CH volume, no `./e2e.sh
# down`) from accumulating duplicate keys.
("staging", "claude_enterprise__ai_dev_usage"),
# Wiki: class_wiki_pages / class_wiki_engagement are incremental
# (delete+insert, `_version > max`) and union BOTH outline + confluence. A
# warm re-run with the same seed _version produces no new rows, leaving the
# prior test's data in place → cross-test contamination. Reset at session
# start (max(_version) over the emptied table = 0, so the first test's real
# millis _version reloads fully). CI starts fresh anyway.
("silver", "class_wiki_pages"),
("silver", "class_wiki_engagement"),
("silver", "class_wiki_activity"),
]


Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Auto-generated JSON schema mirroring the connector bronze columns the dbt
# model reads for bronze_confluence.wiki_footer_comments (+ the 4 _airbyte_* CDK columns).
schemas:
bronze_confluence.wiki_footer_comments:
$schema: http://json-schema.org/draft-07/schema#
type: object
additionalProperties: false
properties:
_airbyte_raw_id: { type: string }
_airbyte_extracted_at: { type: string, format: date-time }
_airbyte_meta: { type: string }
_airbyte_generation_id: { type: integer }
unique_key: { type: string }
tenant_id: { type: [string, "null"] }
source_id: { type: [string, "null"] }
page_id: { type: [string, "null"] }
comment_id: { type: [string, "null"] }
parent_comment_id: { type: [string, "null"] }
author_id: { type: [string, "null"] }
created_at: { type: [string, "null"] }
resolution_status: { type: [string, "null"] }
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Auto-generated JSON schema mirroring the connector bronze columns the dbt
# model reads for bronze_confluence.wiki_pages (+ the 4 _airbyte_* CDK columns).
schemas:
bronze_confluence.wiki_pages:
$schema: http://json-schema.org/draft-07/schema#
type: object
additionalProperties: false
properties:
_airbyte_raw_id: { type: string }
_airbyte_extracted_at: { type: string, format: date-time }
_airbyte_meta: { type: string }
_airbyte_generation_id: { type: integer }
unique_key: { type: string }
tenant_id: { type: [string, "null"] }
source_id: { type: [string, "null"] }
page_id: { type: [string, "null"] }
space_id: { type: [string, "null"] }
title: { type: [string, "null"] }
status: { type: [string, "null"] }
author_id: { type: [string, "null"] }
last_editor_id: { type: [string, "null"] }
parent_page_id: { type: [string, "null"] }
version_number: { type: [number, "null"] }
created_at: { type: [string, "null"] }
updated_at: { type: [string, "null"] }
collected_at: { type: [string, "null"] }
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Auto-generated JSON schema mirroring the connector bronze columns the dbt
# model reads for bronze_outline.wiki_comments (+ the 4 _airbyte_* CDK columns).
schemas:
bronze_outline.wiki_comments:
$schema: http://json-schema.org/draft-07/schema#
type: object
additionalProperties: false
properties:
_airbyte_raw_id: { type: string }
_airbyte_extracted_at: { type: string, format: date-time }
_airbyte_meta: { type: string }
_airbyte_generation_id: { type: integer }
unique_key: { type: string }
tenant_id: { type: [string, "null"] }
source_id: { type: [string, "null"] }
page_id: { type: [string, "null"] }
comment_id: { type: [string, "null"] }
author_id: { type: [string, "null"] }
created_at: { type: [string, "null"] }
resolution_status: { type: [string, "null"] }
parent_comment_id: { type: [string, "null"] }
anchor_text: { type: [string, "null"] }
Comment on lines +4 to +22

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Make the schema enforce column presence, not just reject extras.

additionalProperties: false only blocks unknown keys; without a required list, a fixture can still omit page_id, comment_id, author_id, created_at, etc. and pass validation. That weakens this file’s role as the strict bronze contract and can let broken placeholders slip through until the dbt model runs.

Proposed fix
 schemas:
   bronze_outline.wiki_comments:
     $schema: http://json-schema.org/draft-07/schema#
     type: object
     additionalProperties: false
+    required:
+      - _airbyte_raw_id
+      - _airbyte_extracted_at
+      - _airbyte_meta
+      - _airbyte_generation_id
+      - unique_key
+      - tenant_id
+      - source_id
+      - page_id
+      - comment_id
+      - author_id
+      - created_at
+      - resolution_status
+      - parent_comment_id
+      - anchor_text
     properties:
       _airbyte_raw_id: { type: string }
       _airbyte_extracted_at: { type: string, format: date-time }
       _airbyte_meta: { type: string }
       _airbyte_generation_id: { type: integer }
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
bronze_outline.wiki_comments:
$schema: http://json-schema.org/draft-07/schema#
type: object
additionalProperties: false
properties:
_airbyte_raw_id: { type: string }
_airbyte_extracted_at: { type: string, format: date-time }
_airbyte_meta: { type: string }
_airbyte_generation_id: { type: integer }
unique_key: { type: string }
tenant_id: { type: [string, "null"] }
source_id: { type: [string, "null"] }
page_id: { type: [string, "null"] }
comment_id: { type: [string, "null"] }
author_id: { type: [string, "null"] }
created_at: { type: [string, "null"] }
resolution_status: { type: [string, "null"] }
parent_comment_id: { type: [string, "null"] }
anchor_text: { type: [string, "null"] }
bronze_outline.wiki_comments:
$schema: http://json-schema.org/draft-07/schema#
type: object
additionalProperties: false
required:
- _airbyte_raw_id
- _airbyte_extracted_at
- _airbyte_meta
- _airbyte_generation_id
- unique_key
- tenant_id
- source_id
- page_id
- comment_id
- author_id
- created_at
- resolution_status
- parent_comment_id
- anchor_text
properties:
_airbyte_raw_id: { type: string }
_airbyte_extracted_at: { type: string, format: date-time }
_airbyte_meta: { type: string }
_airbyte_generation_id: { type: integer }
unique_key: { type: string }
tenant_id: { type: [string, "null"] }
source_id: { type: [string, "null"] }
page_id: { type: [string, "null"] }
comment_id: { type: [string, "null"] }
author_id: { type: [string, "null"] }
created_at: { type: [string, "null"] }
resolution_status: { type: [string, "null"] }
parent_comment_id: { type: [string, "null"] }
anchor_text: { type: [string, "null"] }
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/ingestion/tests/e2e/metrics/schemas/bronze_outline.wiki_comments.yaml`
around lines 4 - 22, The bronze_outline.wiki_comments schema currently only
blocks unknown fields via additionalProperties, but still allows required
columns to be omitted. Update the wiki_comments schema definition to add a
required list covering the expected bronze contract fields, using the existing
property names in bronze_outline.wiki_comments so fixtures must include them
during validation. Keep additionalProperties: false, and make sure the required
set matches the columns that must always be present (including identifiers and
timestamps such as page_id, comment_id, author_id, and created_at).

Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Auto-generated JSON schema mirroring the connector bronze columns the dbt
# model reads for bronze_outline.wiki_pages (+ the 4 _airbyte_* CDK columns).
schemas:
bronze_outline.wiki_pages:
$schema: http://json-schema.org/draft-07/schema#
type: object
additionalProperties: false
properties:
_airbyte_raw_id: { type: string }
_airbyte_extracted_at: { type: string, format: date-time }
_airbyte_meta: { type: string }
_airbyte_generation_id: { type: integer }
unique_key: { type: string }
tenant_id: { type: [string, "null"] }
source_id: { type: [string, "null"] }
page_id: { type: [string, "null"] }
space_id: { type: [string, "null"] }
title: { type: [string, "null"] }
status: { type: [string, "null"] }
author_id: { type: [string, "null"] }
author_email: { type: [string, "null"] }
last_editor_id: { type: [string, "null"] }
last_editor_email: { type: [string, "null"] }
parent_page_id: { type: [string, "null"] }
version_number: { type: [number, "null"] }
created_at: { type: [string, "null"] }
updated_at: { type: [string, "null"] }
collected_at: { type: [string, "null"] }
Comment on lines +4 to +28

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

This schema has the same missing-required gap.

Right now it rejects unexpected fields but still accepts rows that omit expected ones like page_id, author_id, version_number, or created_at. For a strict bronze contract, that means fixture/schema drift can pass validation and only fail later in downstream models.

Proposed fix
 schemas:
   bronze_outline.wiki_pages:
     $schema: http://json-schema.org/draft-07/schema#
     type: object
     additionalProperties: false
+    required:
+      - _airbyte_raw_id
+      - _airbyte_extracted_at
+      - _airbyte_meta
+      - _airbyte_generation_id
+      - unique_key
+      - tenant_id
+      - source_id
+      - page_id
+      - space_id
+      - title
+      - status
+      - author_id
+      - author_email
+      - last_editor_id
+      - last_editor_email
+      - parent_page_id
+      - version_number
+      - created_at
+      - updated_at
+      - collected_at
     properties:
       _airbyte_raw_id: { type: string }
       _airbyte_extracted_at: { type: string, format: date-time }
       _airbyte_meta: { type: string }
       _airbyte_generation_id: { type: integer }
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
bronze_outline.wiki_pages:
$schema: http://json-schema.org/draft-07/schema#
type: object
additionalProperties: false
properties:
_airbyte_raw_id: { type: string }
_airbyte_extracted_at: { type: string, format: date-time }
_airbyte_meta: { type: string }
_airbyte_generation_id: { type: integer }
unique_key: { type: string }
tenant_id: { type: [string, "null"] }
source_id: { type: [string, "null"] }
page_id: { type: [string, "null"] }
space_id: { type: [string, "null"] }
title: { type: [string, "null"] }
status: { type: [string, "null"] }
author_id: { type: [string, "null"] }
author_email: { type: [string, "null"] }
last_editor_id: { type: [string, "null"] }
last_editor_email: { type: [string, "null"] }
parent_page_id: { type: [string, "null"] }
version_number: { type: [number, "null"] }
created_at: { type: [string, "null"] }
updated_at: { type: [string, "null"] }
collected_at: { type: [string, "null"] }
bronze_outline.wiki_pages:
$schema: http://json-schema.org/draft-07/schema#
type: object
additionalProperties: false
required:
- _airbyte_raw_id
- _airbyte_extracted_at
- _airbyte_meta
- _airbyte_generation_id
- unique_key
- tenant_id
- source_id
- page_id
- space_id
- title
- status
- author_id
- author_email
- last_editor_id
- last_editor_email
- parent_page_id
- version_number
- created_at
- updated_at
- collected_at
properties:
_airbyte_raw_id: { type: string }
_airbyte_extracted_at: { type: string, format: date-time }
_airbyte_meta: { type: string }
_airbyte_generation_id: { type: integer }
unique_key: { type: string }
tenant_id: { type: [string, "null"] }
source_id: { type: [string, "null"] }
page_id: { type: [string, "null"] }
space_id: { type: [string, "null"] }
title: { type: [string, "null"] }
status: { type: [string, "null"] }
author_id: { type: [string, "null"] }
author_email: { type: [string, "null"] }
last_editor_id: { type: [string, "null"] }
last_editor_email: { type: [string, "null"] }
parent_page_id: { type: [string, "null"] }
version_number: { type: [number, "null"] }
created_at: { type: [string, "null"] }
updated_at: { type: [string, "null"] }
collected_at: { type: [string, "null"] }
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/ingestion/tests/e2e/metrics/schemas/bronze_outline.wiki_pages.yaml`
around lines 4 - 28, The bronze_outline.wiki_pages schema is missing a required
list, so it still accepts rows that omit expected fields while blocking only
unknown ones. Update the schema definition in bronze_outline.wiki_pages.yaml to
add a required section for the mandatory columns used by this contract,
especially the core identifiers and timestamps such as page_id, author_id,
version_number, and created_at. Keep the existing properties and
additionalProperties setting unchanged, and ensure the required set matches the
strict bronze expectations for this fixture.

Loading
Loading