feat: extend media roles and acceptance coverage
CI / backend-and-migrations (push) Waiting to run
CI / astro-build (push) Waiting to run
CI / dependency-audit (push) Waiting to run
CI / compose-e2e (push) Waiting to run

This commit is contained in:
ik
2026-09-20 18:30:16 +07:00
parent e94d247096
commit a547d09fcd
6 changed files with 42 additions and 7 deletions
+2 -1
View File
@@ -192,6 +192,7 @@ def main(argv: list[str] | None = None) -> int:
parser.add_argument("--decision", choices=("approved", "rejected"))
parser.add_argument("--entity-type", choices=("fish", "waterbody", "tackle", "reference"))
parser.add_argument("--entity-key")
parser.add_argument("--media-role", help="Explicit reviewed role for waterbody/tackle media")
parser.add_argument("--note")
parser.add_argument("--audit", action="store_true", help="Verify manifest metadata, hashes and local files without network access")
parser.add_argument("--coverage", action="store_true", help="Compare candidates and approvals with the catalog baseline")
@@ -232,7 +233,7 @@ def main(argv: list[str] | None = None) -> int:
if args.review_url:
if not args.decision:
parser.error("--decision is required with --review-url")
item = review_asset(args.root / "manifest.json", asset_url=args.review_url, decision=args.decision, entity_type=args.entity_type, entity_key=args.entity_key, note=args.note)
item = review_asset(args.root / "manifest.json", asset_url=args.review_url, decision=args.decision, entity_type=args.entity_type, entity_key=args.entity_key, note=args.note, media_role=args.media_role)
print(f"{item['status']} {item['asset_url']}")
return 0
if args.reclassify: