ferrero-opentext/Python-Version/scripts
nickviljoen 444ac7ac6d Fix: PPR multiple master asset IDs now correctly populate MASTERASSETIDS field
Fixed issue where only 1 of 3 master asset IDs was being added to the
FERRERO.MASTERASSETIDS tabular field. The bug was caused by calling
_add_master_asset_id_field() before _add_master_asset_ids_field(),
which created the field with a single value and blocked the multi-value
method from adding all IDs.

Changes:
- metadata_extractor_mvp.py: Prioritize master_opentext_ids parameter
  using if/elif logic to prevent single-ID method from blocking multi-ID
- a2_to_a3_upload_polling.py: Load multiple master assets in PPR mode
- filename_parser.py: Parse multiple tracking IDs (e.g., ID1+ID2+ID3)
- query_db.py: Fix .env loading path
- Added documentation and test files for multiple master asset IDs

Tested in PPR with 3 tracking IDs (BqB8vo+SfUQ7m+laRJo0) - all 3 master
asset IDs now correctly appear in the metadata structure.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-03 21:02:09 +02:00
..
__pycache__ feat: Add Python project dependencies. 2025-11-20 22:45:04 -05:00
shared Fix: PPR multiple master asset IDs now correctly populate MASTERASSETIDS field 2026-02-03 21:02:09 +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 Fix: PPR multiple master asset IDs now correctly populate MASTERASSETIDS field 2026-02-03 21:02:09 +02: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