Add public archive export command#305
Conversation
New CLI command exports labeled bulletins as denormalized JSON with media files for the Bayanat Document Archive portal. Supports both local filesystem and S3 storage. Usage: flask export public --label "public-archive" --output ./export/
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
flask export publicCLI command that exports labeled bulletins as denormalized JSON for the Bayanat Document Archive (BDA) portalUsage
Produces
documents.json+media/directory consumed by the bayanat-archive portal.Fields exported
Bulletin: id, title, title_ar, description, source_link, publish_date, documentation_date
Relations (denormalized): labels, verified_labels, sources, locations, geo_locations, events, media (with OCR extraction text), related_bulletins, related_actors, related_incidents
Fields excluded
status, assigned_to, user_id, peer reviewers, comments, review, review_action, tags, originid, meta, tsv, sjac_title, sjac_title_ar, roles, reliability_score, dynamic_fields
Test plan