编写四个内置种子模板包

Aperta
#19 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@linuxsuren-fs ci sta già lavorando.

Dal 14/11/2026.

  • #22 di @linuxsuren-fs — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
yaml
Ambito
backend

Direzione di ricerca

Read #4 for the frozen schema definitions and #12 for the importer and validator. Create the four named YAML fixtures in seed/, each with the listed form, workflow, SLA, assignment, and view configuration; keep approval at the P0 single level and note the P2 workflow extension in its file header. Done when the fixtures pass the validator tests and each template can be submitted through the #17 flow.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

good first issue help wanted P0

Background

四个内置场景模板包是 TickFlow 的开箱体验,也是 schema / workflow / 渲染器的共享测试 fixtures。结构定义见 #4,导入机制见 #12。

Technical requirement

在 seed/ 目录编写四个 YAML(结构对齐 #4 的各 JSONB 定义):

  1. IT 报障(it-support):字段含故障分类(select:硬件 / 软件 / 账号权限 / 其他)、影响范围(select:单人 / 部门 / 全员)、紧急程度、描述;workflow:待受理 → 处理中 → 已解决 → 已关闭;
  2. 客户售后(customer-care):字段含产品(select)、订单号、问题类型、是否在保修期(boolean)、附件;workflow:待受理 → 处理中 → 待客户确认 → 已关闭;
  3. 设备维修(device-repair):字段含设备编号、设备位置、故障分类、发生时间、现场照片(attachments);workflow:待受理 → 待上门 → 维修中 → 待验收 → 已关闭;
  4. 行政审批(approval):字段含申请类型(select:请假 / 报销 / 物品领用)、开始 / 结束时间、事由;P0 用单级审批状态机(待审批 → 审批中 → 已通过 / 已驳回),完整审批链是 P2 的 workflow 节点扩展,本包先跑通单级并在文件头注释注明。

每个包包含:form_schema、workflow、sla_policy、assignment、view_config(含门户标题 / 描述 / 成功文案、list_columns、detail_groups)。

写作要求:

  • 字段 key 英文蛇形、label 中文;状态 key 英文蛇形、name 中文;
  • YAML 通过 #12 校验器的测试加载(fixtures 即用例);
  • 文案口语自然,无后置括号补充解释。

Expect

  • 四个 YAML 通过校验器单测;
  • 本地启动后新租户自动获得四个可用类型,可按 #17 的端到端流程各提交一单。

Potential TODO list

  • it-support.yaml
  • customer-care.yaml
  • device-repair.yaml
  • approval.yaml
  • 接入校验器测试

依赖

#4 评审通过(结构冻结后即可编写,与 #12 并行,联调需 #12)。

Lingua principale
Nessun dato sulla lingua
Stelle
0
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di LinuxSuRen/tick-flow

Tutte le issue di LinuxSuRen/tick-flow

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.