chaoge ad03e904d0 fix(mds): 修复数据去重bug并添加手动删除权限控制
数据去重Bug修复:
- 修复复合主键查询错误(只使用第一个主键字段)
- 修复existing_map只保留最后一条记录的问题
- 修复内部重复数据未检查数据库已存在记录的问题
- 删除staging_routers.py中重复调用apply_dedup_strategy的代码

手动删除权限控制:
- 新增ManualRemoveMode枚举(never/now/next)
- 根据MDS_MANUAL_REMOVE环境变量控制删除行为
- never: 禁止手动删除,隐藏删除按钮
- now: 立即删除
- next: 标记为removing状态,下次推送时删除
- 清理历史数据接口也受权限控制
- 前端通过模板注入获取配置,无需API请求

修改文件:
- apps/data_opt/mds/utils/duplicate_checker.py
- apps/data_opt/mds/staging_routers.py
- apps/data_opt/mds/_base.py
- core/routes_register.py
- static/mds/js/data-table.js
- static/mds/js/mds-page-controller.js
- static/mds/pages/template.html
2026-05-22 13:58:05 +08:00
2026-05-10 21:43:32 +08:00
2026-05-22 00:23:30 +08:00
2026-05-20 19:37:26 +08:00
2026-05-10 23:26:56 +08:00
2026-05-13 17:16:49 +08:00
2026-05-22 00:23:30 +08:00
2026-05-13 00:23:41 +08:00
2026-05-10 23:26:56 +08:00
2026-05-20 22:26:08 +08:00
2025-10-23 11:15:25 +08:00

MyAPS FastAPI Project

A simple FastAPI project template with a Python virtual environment.

Project Structure

myaps_fastapi/
├── venv/              # Python virtual environment
├── main.py            # Main FastAPI application
├── requirements.txt   # Project dependencies
├── .gitignore         # Git ignore file
└── README.md          # Project documentation

Getting Started

1. Activate the Virtual Environment

Windows:

venv\Scripts\activate

macOS/Linux:

source venv/bin/activate

2. Install Dependencies

pip install -r requirements.txt

3. Run the FastAPI Server

uvicorn main:app --reload

4. Access the API

API Endpoints

  • GET / - Root endpoint with welcome message
  • GET /api/info - Project information

Features

  • FastAPI framework for high-performance API development
  • Automatic interactive API documentation
  • Python virtual environment for dependency isolation
  • Git integration with proper ignore rules

Requirements

  • Python 3.7+","}}}
S
Description
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,到期日0830
Readme 6.2 MiB
Languages
JavaScript 59.5%
Python 33.5%
HTML 3.7%
CSS 1.1%
Shell 0.8%
Other 1.4%