ferrero-opentext/Python-Version/scripts
nickviljoen 04eccab9e7 Enhancement: Add environment-specific configurations and metadata improvements
This commit includes critical updates for PPR deployment:

1. Environment-Specific Field Mappings:
   - Created field_mappings_ppr.yaml with agency code "Oliver"
   - Created field_mappings_prod.yaml with agency code "0000221659"
   - Updated config_loader.py to auto-detect environment based on DAM URL
   - Enables seamless deployment between PPR and PROD environments

2. Metadata Extractor Enhancements:
   - Added MetadataTable extraction support for nested fields
   - Enables extraction of "Type of Video & Static Right" multi-value field
   - Added logic to apply defaults to existing but empty fields
   - Fixed agency name display_value handling for domain fields

3. Default Values Added:
   - VIDEO_POST_PROD_COMPANY: "Oliver Marketing Ltd"
   - AUDIO_POST_PROD_COMPANY: "Oliver Marketing Ltd"
   - PROD_COMPANY (Production House): "-"

These changes ensure:
- Correct agency codes per environment (PPR/PROD)
- Proper extraction of nested tabular fields
- Default values for empty production company fields
- Seamless deployment workflow

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-28 20:41:21 +02:00
..
__pycache__ feat: Add Python project dependencies. 2025-11-20 22:45:04 -05:00
shared Enhancement: Add environment-specific configurations and metadata improvements 2026-01-28 20:41:21 +02:00
a1_to_a2_box_uploader.py Fix campaign ID storage - always set local_campaign_id 2025-12-22 11:37:58 -05:00
a1_to_a2_download-old.py feat: Add A1→A3 campaign advance script, introduce systemd service for orchestrator, and ref 2025-11-24 13:50:16 -05:00
a2_to_a3_upload_polling.py Feat: Add subfolder path to A2->A3 email notifications 2026-01-19 10:20:51 -05:00
a3_advance.py PPR Environment: Use SIMPLE metadata structure for tabular fields 2026-01-23 16:52:50 +02:00
a3_advance.py.backup PPR Environment: Use SIMPLE metadata structure for tabular fields 2026-01-23 16:52:50 +02:00
a4_box_uploader.py Update CSV format to combine Campaign Number and Name, add manual regeneration script 2025-12-01 09:22:32 -05:00
a4_webhook_monitor.py Add --auth-pfx-v2 support to A4 Webhook Monitor for production 2025-11-26 15:39:00 -05:00
a5_to_a6_download.py Fix campaign ID storage - always set local_campaign_id 2025-12-22 11:37:58 -05:00
advance_a1_to_a3.py Add interactive campaign status management scripts 2025-11-07 15:23:26 -05:00
b1_to_b2_download.py Add CSV attachment with campaign details to A1 and B1 success emails 2025-12-07 19:27:36 -05:00
creativex-service.service Add systemd service files for Prod Orchestrator and CreativeX Service 2025-12-01 16:09:26 -05:00
creativex_scoring_storing.py PPR Environment: Use SIMPLE metadata structure for tabular fields 2026-01-23 16:52:50 +02:00
creativex_service.py Add CreativeX service runner and fix dam_client indentation 2025-12-01 15:29:27 -05:00
daily_report.py Enhancement: Add timestamps to batch entries in daily report for better identification 2026-01-19 15:16:13 -05:00
debug_b1_pagination.py Add debug script for B1 pagination issue 2025-12-02 09:44:10 -05:00
get_token.py feat: Add systemd services and timers for daily and weekly database backups, introduce a token retrieval script, and update the backup guide documentation. 2025-12-01 22:19:24 -05:00
list_campaigns_by_status.py PPR Environment: Use SIMPLE metadata structure for tabular fields 2026-01-23 16:52:50 +02:00
manual_csv_regenerate.py Update CSV format to combine Campaign Number and Name, add manual regeneration script 2025-12-01 09:22:32 -05:00
orchestrator-prod.py Switch production orchestrator back to mTLS V2 (--auth-pfx-v2) 2025-11-26 16:32:43 -05:00
orchestrator.py Change script intervals from 5 to 3 minutes for faster processing 2025-11-26 14:18:45 -05:00
test-metadata-diagnostic.py PPR Environment: Use SIMPLE metadata structure for tabular fields 2026-01-23 16:52:50 +02:00
test-prod-smoke-test.py Fix smoke test to use prod-auth endpoint instead of test-auth 2025-11-26 10:20:59 -05:00
update_campaign_status.py Add --auth-pfx-v2 and --env options to update_campaign_status.py 2025-11-27 06:58:39 -05:00