mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-12 20:45:20 +02:00
feat(podcasts): publish podcasts to zero
This commit is contained in:
parent
5d956e8d03
commit
1ebb57e1df
1 changed files with 20 additions and 1 deletions
|
|
@ -55,6 +55,22 @@ AUTOMATION_RUN_COLS = [
|
|||
"created_at",
|
||||
]
|
||||
|
||||
# Enough to drive the lifecycle UI by push: status, the reviewable brief, and
|
||||
# its version. The bulky source_content and transcript are deliberately excluded
|
||||
# and fetched over REST when a gate opens.
|
||||
PODCAST_COLS = [
|
||||
"id",
|
||||
"title",
|
||||
"status",
|
||||
"spec",
|
||||
"spec_version",
|
||||
"duration_seconds",
|
||||
"error",
|
||||
"search_space_id",
|
||||
"thread_id",
|
||||
"created_at",
|
||||
]
|
||||
|
||||
ZERO_PUBLICATION: Mapping[str, Sequence[str] | None] = {
|
||||
"notifications": None,
|
||||
"documents": DOCUMENT_COLS,
|
||||
|
|
@ -65,6 +81,7 @@ ZERO_PUBLICATION: Mapping[str, Sequence[str] | None] = {
|
|||
"chat_session_state": None,
|
||||
"user": USER_COLS,
|
||||
"automation_runs": AUTOMATION_RUN_COLS,
|
||||
"podcasts": PODCAST_COLS,
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -92,7 +109,9 @@ def _expected_columns(conn: Connection, table: str) -> list[str] | None:
|
|||
return None
|
||||
|
||||
expected = list(columns)
|
||||
if table in {"documents", "user"} and _column_exists(conn, table, "_0_version"):
|
||||
if table in {"documents", "user", "podcasts"} and _column_exists(
|
||||
conn, table, "_0_version"
|
||||
):
|
||||
expected.append("_0_version")
|
||||
return expected
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue