Skip to content

WIP: Data Model / Config management#3

Open
TSheyd wants to merge 32 commits intomasterfrom
vedana/config-plane
Open

WIP: Data Model / Config management#3
TSheyd wants to merge 32 commits intomasterfrom
vedana/config-plane

Conversation

@TSheyd
Copy link
Collaborator

@TSheyd TSheyd commented Jan 23, 2026

  • Config (data model + prompts) management via config-plane
  • Corresponding Backoffice updates - Data Model page, view and compare diffs in Chat, JIMS pages
  • Some UI updates for Chat page
  • fixed envs declaration: DB_CONN_URI for ETL, JIMS_DB_CONN_URI for chat, CONFIG_PLANE_DB_CONN_URI for config-plane.

@andrei-kh andrei-kh force-pushed the vedana/config-plane branch from cbe4130 to f169ca2 Compare January 28, 2026 11:46
@TSheyd TSheyd requested a review from elephantum as a code owner February 5, 2026 11:01
@@ -0,0 +1,77 @@
"""add config plane
Copy link
Contributor

Choose a reason for hiding this comment

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

Я вот не думаю, что это тут должно быть. Потому что в общем случае БД config-plane - это другая БД, чем БД дева или прода. А тут у нас все миграции относятся к деву или проду.

Скорее всего config-plane мог бы просто лениво инициализировать базу при подключении

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Да, точно в отдельной БД из-за связи дев<->прод, отсюда уберу

Скорее всего config-plane мог бы просто лениво инициализировать базу при подключении

может делать Base.metadata.create_all в create_sql_config_repo?

def create_sql_config_repo(
    session_maker: Callable[[], Session],
    stage_snapshot_id: int | None = None,
    branch: str = "master",
) -> SqlConfigRepo:
    with session_maker() as session:
        Base.metadata.create_all(bind=session.get_bind())
    return SqlConfigRepo(session_maker, stage_snapshot_id, branch=branch)

if raw is None:
exists = await asyncio.to_thread(
self._config_repo.snapshot_exists, str(snapshot_id)
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Надо config-plane переделать на async что-то я не подумал

andrei-kh added a commit that referenced this pull request Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants