feat: 成片 duplicate_rate 百分比 + 素材高频使用自动排除 (#1573)
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (push) Successful in 1s
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 3s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 4m51s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 5m35s
CI/CD Pipeline / Validate - Migration (alembic) (push) Successful in 5m34s
CI/CD Pipeline / Validate - Type Check (mypy) (push) Successful in 6m15s
AI Code Review / AI Code Review (pull_request) Failing after 6m40s
CI/CD Pipeline / Check push changed paths (push) Successful in 7m8s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 8m31s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 1m54s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 1m46s
CI/CD Pipeline / Build Staging API Image (push) Successful in 1m46s
CI/CD Pipeline / CI Gate (pull_request) Successful in 30s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 1m36s
CI/CD Pipeline / Retag skipped Staging Web Image (push) Successful in 34s
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 10m14s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 1m14s
CI/CD Pipeline / Validate - Code Quality (push) Successful in 12m59s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 2m31s
CI/CD Pipeline / Staging API Integration Tests (push) Successful in 4m14s
CI/CD Pipeline / Staging E2E Tests (push) Successful in 6m14s
CI/CD Pipeline / Integration Tests (push) Successful in 5m41s
CI/CD Pipeline / Unit Tests (push) Successful in 19m12s
CI/CD Pipeline / Production Browser E2E (push) Failing after 382h9m8s
CI/CD Pipeline / Deploy Production (push) Failing after 382h9m9s
CI/CD Pipeline / CI Gate (push) Failing after 382h9m10s
CI/CD Pipeline / Build Production API Image (push) Failing after 382h9m10s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 382h9m10s
CI/CD Pipeline / Retag skipped Staging Worker Image (push) Failing after 382h17m52s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 382h18m18s
CI/CD Pipeline / Retag skipped Staging API Image (push) Failing after 382h17m53s
CI/CD Pipeline / Canary Release to Production (pull_request) Failing after 382h18m26s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 382h19m12s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 382h18m28s
CI/CD Pipeline / Build Staging Web Image (push) Failing after 382h19m32s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 382h19m46s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 382h19m14s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 382h19m50s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 382h19m16s
CI/CD Pipeline / PR Build Web Image (pull_request) Failing after 382h20m18s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 382h20m39s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 382h20m45s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 382h20m41s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 382h21m40s
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Failing after 382h25m18s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Failing after 382h25m22s
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Failing after 382h25m52s
CI/CD Pipeline / Validate - Code Quality (pull_request) Failing after 382h25m56s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 382h25m58s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 382h26m4s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 382h26m0s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 382h26m2s
CI/CD Pipeline / PR Build Web Image (push) Failing after 382h26m6s
CI/CD Pipeline / Frontend Lint (push) Failing after 382h27m31s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Failing after 382h28m27s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 382h28m28s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 382h28m29s
CI/CD Pipeline / Canary Release to Production (push) Failing after 382h43m22s
CI/CD Pipeline / Build Production Web Image (push) Failing after 382h43m22s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 382h54m0s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 382h54m55s
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Failing after 382h59m32s
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Failing after 383h0m6s
CI/CD Pipeline / PR Build API Image (push) Failing after 383h0m20s
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (push) Successful in 1s
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 3s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 4m51s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 5m35s
CI/CD Pipeline / Validate - Migration (alembic) (push) Successful in 5m34s
CI/CD Pipeline / Validate - Type Check (mypy) (push) Successful in 6m15s
AI Code Review / AI Code Review (pull_request) Failing after 6m40s
CI/CD Pipeline / Check push changed paths (push) Successful in 7m8s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 8m31s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 1m54s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 1m46s
CI/CD Pipeline / Build Staging API Image (push) Successful in 1m46s
CI/CD Pipeline / CI Gate (pull_request) Successful in 30s
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 1m36s
CI/CD Pipeline / Retag skipped Staging Web Image (push) Successful in 34s
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 10m14s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Successful in 1m14s
CI/CD Pipeline / Validate - Code Quality (push) Successful in 12m59s
CI/CD Pipeline / ACR Image Cleanup (push) Successful in 2m31s
CI/CD Pipeline / Staging API Integration Tests (push) Successful in 4m14s
CI/CD Pipeline / Staging E2E Tests (push) Successful in 6m14s
CI/CD Pipeline / Integration Tests (push) Successful in 5m41s
CI/CD Pipeline / Unit Tests (push) Successful in 19m12s
CI/CD Pipeline / Production Browser E2E (push) Failing after 382h9m8s
CI/CD Pipeline / Deploy Production (push) Failing after 382h9m9s
CI/CD Pipeline / CI Gate (push) Failing after 382h9m10s
CI/CD Pipeline / Build Production API Image (push) Failing after 382h9m10s
CI/CD Pipeline / Build Production Worker Image (push) Failing after 382h9m10s
CI/CD Pipeline / Retag skipped Staging Worker Image (push) Failing after 382h17m52s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 382h18m18s
CI/CD Pipeline / Retag skipped Staging API Image (push) Failing after 382h17m53s
CI/CD Pipeline / Canary Release to Production (pull_request) Failing after 382h18m26s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 382h19m12s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 382h18m28s
CI/CD Pipeline / Build Staging Web Image (push) Failing after 382h19m32s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 382h19m46s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 382h19m14s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 382h19m50s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 382h19m16s
CI/CD Pipeline / PR Build Web Image (pull_request) Failing after 382h20m18s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 382h20m39s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 382h20m45s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 382h20m41s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 382h21m40s
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Failing after 382h25m18s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Failing after 382h25m22s
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Failing after 382h25m52s
CI/CD Pipeline / Validate - Code Quality (pull_request) Failing after 382h25m56s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 382h25m58s
CI/CD Pipeline / PR Build Worker Image (push) Failing after 382h26m4s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 382h26m0s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 382h26m2s
CI/CD Pipeline / PR Build Web Image (push) Failing after 382h26m6s
CI/CD Pipeline / Frontend Lint (push) Failing after 382h27m31s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Failing after 382h28m27s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 382h28m28s
CI/CD Pipeline / Check if frontend-only change (push) Failing after 382h28m29s
CI/CD Pipeline / Canary Release to Production (push) Failing after 382h43m22s
CI/CD Pipeline / Build Production Web Image (push) Failing after 382h43m22s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 382h54m0s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 382h54m55s
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Failing after 382h59m32s
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Failing after 383h0m6s
CI/CD Pipeline / PR Build API Image (push) Failing after 383h0m20s
Co-authored-by: xiaoxia <dev@xiaoxiajianji.com> Co-committed-by: xiaoxia <dev@xiaoxiajianji.com>
This commit was merged in pull request #1573.
This commit is contained in:
@@ -30,6 +30,7 @@ class SQLAlchemyGeneratedVideoRepository:
|
||||
video_fingerprint=json.dumps(video.video_fingerprint) if video.video_fingerprint else None,
|
||||
is_duplicate=video.is_duplicate,
|
||||
duplicate_of=video.duplicate_of,
|
||||
duplicate_rate=video.duplicate_rate,
|
||||
generated_at=video.generated_at,
|
||||
created_at=video.created_at,
|
||||
)
|
||||
@@ -60,6 +61,7 @@ class SQLAlchemyGeneratedVideoRepository:
|
||||
video_fingerprint=json.loads(getattr(model, "video_fingerprint", "null") or "null"),
|
||||
is_duplicate=getattr(model, "is_duplicate", False),
|
||||
duplicate_of=getattr(model, "duplicate_of", None),
|
||||
duplicate_rate=getattr(model, "duplicate_rate", None),
|
||||
generated_at=model.generated_at,
|
||||
created_at=model.created_at,
|
||||
)
|
||||
@@ -74,6 +76,7 @@ class SQLAlchemyGeneratedVideoRepository:
|
||||
model.video_fingerprint = json.dumps(video.video_fingerprint) if video.video_fingerprint else None
|
||||
model.is_duplicate = video.is_duplicate
|
||||
model.duplicate_of = video.duplicate_of
|
||||
model.duplicate_rate = video.duplicate_rate
|
||||
self.session.add(model)
|
||||
self.session.commit()
|
||||
return video
|
||||
@@ -204,6 +207,7 @@ class SQLAlchemyGeneratedVideoRepository:
|
||||
video_fingerprint=json.loads(getattr(model, "video_fingerprint", "null") or "null"),
|
||||
is_duplicate=getattr(model, "is_duplicate", False),
|
||||
duplicate_of=getattr(model, "duplicate_of", None),
|
||||
duplicate_rate=getattr(model, "duplicate_rate", None),
|
||||
generated_at=model.generated_at,
|
||||
created_at=model.created_at,
|
||||
)
|
||||
|
||||
@@ -338,6 +338,7 @@ class GeneratedVideoModel(Base):
|
||||
video_fingerprint = Column(Text, nullable=True)
|
||||
is_duplicate = Column(Boolean, nullable=False, default=False)
|
||||
duplicate_of = Column(String(36), nullable=True)
|
||||
duplicate_rate = Column(Float, nullable=True)
|
||||
|
||||
|
||||
class TitleLibraryModel(Base):
|
||||
|
||||
Reference in New Issue
Block a user