Connector-centric registry: one place to add an integration
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- リファクタリング
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- python, typescript
調査の方向性
Read docs/architecture-review.md first, then inspect the existing dispatch in src/dapier/engine/init.py, validation in src/dapier/triggers/email_triggers.py, and the designer catalog in designer/src/catalog.ts. A first incremental milestone is the registry wrapper described in migration step 1; run make test and consider it done when dispatch uses the registry while the existing tests still pass.
索引モデルが issue の本文から書いたものです。
説明
Full analysis in docs/architecture-review.md. The trigger→action engine is sound; what doesn't scale is that connector knowledge lives in four hand-maintained registries across two languages.
Problem
Adding one action today touches:
src/dapier/engine/actions/<x>.py- the
run_ximport + if/elif dispatch insrc/dapier/engine/__init__.py ACTION_SPECSvalidation insrc/dapier/triggers/email_triggers.py- the hand-mirrored
designer/src/catalog.ts(comment says "Mirrors the run_* dispatch")
Adding one trigger source touches:
worker.normalize_payloadbranchestemplate.yaml(per-source queue/table/env)api/router.pyhook routing- a
load_workflows()hook inmatching.all_workflows
Nothing links these copies; they drift silently. Related structural limits: no data flow between steps (blocks #6, #7, #12), O(all-workflows) resolution per event (published-table scan capped at 200, silently), and per-action auth folklore (credential_id vs connection_id vs auth_secret_id).
Proposal
src/dapier/connectors/<name>/— one package per integration: a manifest (label, events, actions + field schema),normalize(raw) -> eventper ingress it owns, andrun(action, ctx)per action. Aconnectors/registry.pyreplaces the dispatch chain,ACTION_SPECS, and the trigger-load hooks.GET /api/catalog— serve the manifests as JSON; the designer renders palette/inspector from it (keepcatalog.tsas a dev fallback). One registry, three consumers: engine dispatch, validation, UI.ActionContext—ctx.connection(name)→ live token (auto-refreshed), plus event, workflow, run id, and astepsnamespace so later steps can template earlier outputs (first enabler for #6).- One workflows table with a
connector#eventGSI — merge the published/email/hook/schedule stores; matching becomes a query per event instead of four scans + a linear pass. Instant-publish semantics unchanged. - Generic ingress — a route/queue/source → connector mapping with one ingress handler; per-connector queues become declared resources instead of
template.yamlsurgery.
Migration order (incremental, no big bang)
- Registry wrapping the existing
run_*functions; dispatch reads the registry. Tests keep passing. - Move
normalize_payloadbranches into connectors; keep the SQS contract. /api/catalog; designer consumes it; delete the TS mirror andACTION_SPECSduplication.ActionContext+steps+ unifiedconnection_id(keepcredential_id/auth_secret_idas deprecated aliases).- Single workflows table + trigger GSI.
- Then #6/#7/#10 become small changes on top instead of structural ones.
The 23 src/*.py back-compat shims are already removed (2026-09-25); make test was 426 passing at filing time.
- 主要言語
- Python
- スター
- 0
- フォーク
- 0
- 平均マージ
- 6分
- マージ済み PR(30日)
- 10
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DataTalksClub/dapier のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
DataTalksClub/dapier#25 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
DataTalksClub/dapier#9 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
DataTalksClub/dapier の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
FinanceFlash/unvibecode#577 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area/test type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Clodmony/starship-coop#70 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
punitarani/fli#270 ·
-
🐛 Bug 🔔 Pending processing
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
jumpserver/jumpserver#17980 ·
メンテナーはふだん 1 日以内に返信
-
community enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信