Commit Graph

32 Commits

Author SHA1 Message Date
wren a2c2bf1969 feat: 完善模板对比持久化与附件版本处理 2026-05-20 10:55:28 +08:00
wren 7c6f134808 feat: 支持合同模板上传与地区隔离 2026-05-19 22:59:11 +08:00
wren ebcfe4281a Merge remote-tracking branch 'gitea/main' into wren-dev 2026-05-19 20:43:58 +08:00
wren 16e8668150 feat: add contract template v3 api and legacy oss migration 2026-05-19 18:38:17 +08:00
wren 5cd6b218e0 merge: rag chat stabilization from wren-dev 2026-05-19 15:59:20 +08:00
wren afaba4dd99 feat: stabilize rag chat conversations and auto title sync 2026-05-19 15:52:05 +08:00
wren 1bacfe41b7 feat: integrate govdoc platform updates 2026-05-18 14:35:25 +08:00
wren a73826dc1d feat: integrate govdoc module into leaudit platform 2026-05-17 19:24:16 +08:00
wren ed60a1f8da feat: add review_scope field to distinguish cross-review vs standard documents 2026-05-13 17:46:17 +08:00
wren d739caa2ed fix: add document:document:update permission for edit document save button 2026-05-13 16:57:10 +08:00
wren 5d777599bf feat(govdoc): 新增内部公文模块全链路(后端58+前端11文件) 2026-05-13 14:37:12 +08:00
wren 99699e20e1 fix: add proposal create/vote/delete and document complete permissions to common role 2026-05-13 12:34:37 +08:00
wren d47f499e57 Optimize RBAC org tree loading 2026-05-12 16:53:22 +08:00
wren 3823c9a2e4 fix: harden cross-review task state handling 2026-05-12 11:30:56 +08:00
wren f753b8c6c3 chore: add local dev helper scripts 2026-05-11 02:06:23 +08:00
wren 601811f957 docs: refine sql operations handbook 2026-05-10 20:14:05 +08:00
wren ae89eec3b9 docs(scripts): organize sql files under 创建sql 2026-05-10 19:56:31 +08:00
wren be41863099 feat(rbac): seed usage stats permissions and schema 2026-05-09 20:08:22 +08:00
wren 9c86bf59e5 feat: add rag backend and review access fixes 2026-05-08 10:58:24 +08:00
wren 1c84209f38 feat: migrate cross review to v3 leaudit flow 2026-05-07 18:18:59 +08:00
wren e1adcf30d2 chore: add legacy binding fallback audit logs 2026-05-07 17:52:01 +08:00
wren f9de903acc feat: add rule draft permission flow 2026-05-06 20:06:41 +08:00
wren c4694e11f0 feat: add document type root management 2026-05-06 14:20:28 +08:00
wren 76ba7e65ed feat: add backend rule group and permission support 2026-05-06 09:40:37 +08:00
wren b3ad4a6f33 feat: bootstrap user rbac foundation 2026-04-29 15:23:19 +08:00
wren b45d61fa97 feat: add document versioning and list API 2026-04-29 11:48:50 +08:00
wren f3b83c9979 feat: add async worker queues and retry controls 2026-04-29 11:48:09 +08:00
wren e80e8febd8 feat: multi-region rule isolation — region column + config + queries
- DB: add region column to leaudit_rule_sets + leaudit_rule_type_bindings
- DB: change UNIQUE constraint from (rule_type) to (rule_type, region)
- Config: add APP_REGION to app.toml + AppSettings + __init__.pyi
- AuditServiceImpl: filter bindings by APP_REGION
- RuleServiceImpl: ListBindings/CreateBinding use APP_REGION
- Seed script: accept --region arg, tag rules by region
- OssPathUtils: BuildRuleYamlKey already accepts Region parameter

Each region can now have its own independent copy of the same rule_type,
stored in separate OSS paths and DB rows, keyed by region.
2026-04-28 13:15:26 +08:00
wren 4e706f0d19 chore: drop leaudit_evaluation_points and leaudit_evaluation_point_groups tables
No code references these tables — they were from an earlier design
superseded by DSL YAML rule evaluation via leaudit_rule_results.
2026-04-28 12:44:56 +08:00
wren 2d108c8381 feat: M4 seed — upload & publish 20 rule sets, fix config/schema column names
- Fix _export_settings for pydantic v2 compatibility (model_fields)
- Fix delete_time→deleted_at, update_time→updated_at in RuleServiceImpl
- Add OssClient.EnsureBucket method
- Replace contract_lease/sale/tech rules.yaml from new-rules
- Seed script: batch upload 20 rule YAMLs to OSS + write DB + publish
- Config: fix OSS import chain
2026-04-28 12:13:46 +08:00
wren 246c0e5ded feat: complete M1-M3 infrastructure — OSS client, native execution chain, rule lifecycle API, system docs
- M1: unified OSS client (upload/download/presign) + path utils + config
- M2: rule service with validate/create/publish/rollback + binding CRUD endpoints
- M3: native AuditCtx runner, file/rule resolvers, storage adapter with full persistence
- docs: SYSTEM_OVERVIEW.md as comprehensive architecture reference
- fix: double finalize — terminal state now written once by finalize_run
2026-04-28 11:49:55 +08:00
wren 535d97a70c chore: initial commit — leaudit-platform project skeleton
17-table PostgreSQL schema with full Chinese column comments,
FastAPI project structure (admin/common/modules),
DSL rule files, and schema migration scripts.
2026-04-27 16:48:22 +08:00