@@ -379,12 +379,6 @@ def create_campaign_command(
379379 if platforms_list :
380380 # From --platform CLI option(s)
381381 metadata ['platforms' ] = platforms_list
382- # Also set legacy fields for backward compatibility (first platform)
383- metadata ['platform_id' ] = platforms_list [0 ]['id' ]
384- if 'name' in platforms_list [0 ]:
385- metadata ['platform_name' ] = platforms_list [0 ]['name' ]
386- if 'type' in platforms_list [0 ]:
387- metadata ['platform_type' ] = platforms_list [0 ]['type' ]
388382 elif platform_id :
389383 # From interactive mode - convert to platforms array
390384 platform_dict = {"id" : platform_id }
@@ -393,12 +387,6 @@ def create_campaign_command(
393387 if platform_type :
394388 platform_dict ["type" ] = platform_type
395389 metadata ['platforms' ] = [platform_dict ]
396- # Also set legacy fields
397- metadata ['platform_id' ] = platform_id
398- if platform_name :
399- metadata ['platform_name' ] = platform_name
400- if platform_type :
401- metadata ['platform_type' ] = platform_type
402390
403391 # Remove None values
404392 metadata = {k : v for k , v in metadata .items () if v is not None }
@@ -475,13 +463,6 @@ def show_campaign_command(
475463 typer .echo (f" Type: { p ['type' ]} " )
476464 if 'row_count' in p :
477465 typer .echo (f" Rows: { p ['row_count' ]:,} " )
478- # Legacy single-platform fields (backward compatibility)
479- elif "platform_id" in metadata :
480- typer .echo (f"Platform ID: { metadata ['platform_id' ]} " )
481- if "platform_name" in metadata :
482- typer .echo (f"Platform Name: { metadata ['platform_name' ]} " )
483- if "platform_type" in metadata :
484- typer .echo (f"Platform Type: { metadata ['platform_type' ]} " )
485466
486467 typer .echo ()
487468
@@ -585,15 +566,12 @@ def list_campaigns_command(
585566 campaign_id = campaign .get ("campaign_id" , "unknown" )
586567 typer .echo (f"{ i } . { campaign_id } " )
587568
588- # Show platforms (new format) or legacy platform_id
589569 if "platforms" in campaign and campaign ["platforms" ]:
590570 platforms = campaign ["platforms" ]
591571 if len (platforms ) == 1 :
592572 typer .echo (f" Platform: { platforms [0 ].get ('id' , 'N/A' )} " )
593573 else :
594574 typer .echo (f" Platforms: { len (platforms )} ({ ', ' .join (p .get ('id' , '?' ) for p in platforms )} )" )
595- elif "platform_id" in campaign :
596- typer .echo (f" Platform: { campaign ['platform_id' ]} " )
597575
598576 if "description" in campaign :
599577 desc = campaign ['description' ]
@@ -623,7 +601,7 @@ def list_campaigns_command(
623601 else :
624602 platform_str = f"{ len (platforms )} platforms"
625603 else :
626- platform_str = campaign . get ( "platform_id" , " N/A")
604+ platform_str = " N/A"
627605
628606 description = campaign .get ("description" , "" )
629607
@@ -670,15 +648,12 @@ def delete_campaign_command(
670648 if not yes :
671649 typer .echo (f"[campaign delete] About to delete campaign: { campaign_id } " )
672650
673- # Show platforms (new format) or legacy platform_id
674651 if "platforms" in metadata and metadata ["platforms" ]:
675652 platforms = metadata ["platforms" ]
676653 if len (platforms ) == 1 :
677654 typer .echo (f"[campaign delete] Platform: { platforms [0 ].get ('id' , 'N/A' )} " )
678655 else :
679656 typer .echo (f"[campaign delete] Platforms: { len (platforms )} ({ ', ' .join (p .get ('id' , '?' ) for p in platforms )} )" )
680- elif "platform_id" in metadata :
681- typer .echo (f"[campaign delete] Platform: { metadata ['platform_id' ]} " )
682657
683658 if "description" in metadata :
684659 typer .echo (f"[campaign delete] Description: { metadata ['description' ]} " )
@@ -742,7 +717,6 @@ def inspect_campaign_command(
742717 typer .echo (f"{ '=' * 70 } " )
743718
744719 if metadata :
745- # Show platforms (new format) or legacy platform_id
746720 if "platforms" in metadata and metadata ["platforms" ]:
747721 platforms = metadata ["platforms" ]
748722 if len (platforms ) == 1 :
@@ -752,8 +726,6 @@ def inspect_campaign_command(
752726 for p in platforms :
753727 row_info = f" ({ p ['row_count' ]:,} rows)" if 'row_count' in p else ""
754728 typer .echo (f" - { p .get ('id' , 'unknown' )} { row_info } " )
755- elif "platform_id" in metadata :
756- typer .echo (f"Platform: { metadata ['platform_id' ]} " )
757729 if "description" in metadata :
758730 desc = metadata ['description' ]
759731 if len (desc ) > 60 :
@@ -885,7 +857,6 @@ def convert_command(
885857 help = "Output path for GeoParquet. Local path or cloud URI (az://container/path, s3://bucket/path). Campaign subdirectories are auto-created." ,
886858 ),
887859 provider : str = typer .Option (None , "--provider" , help = "Data provider type (overrides global --provider setting). Available: saildrone, r2r." ),
888- upload : bool = typer .Option (False , "--upload" , help = "(Deprecated) Use --use-cloud-storage instead." ),
889860 use_cloud_storage : bool = typer .Option (False , "--use-cloud-storage" , help = "Write output to configured cloud storage (requires 'oceanstream storage add' first)." ),
890861 verbose : bool = typer .Option (False , "-v" , help = "Emit detailed progress information." ),
891862 list_columns : bool = typer .Option (False , help = "List available columns from the input CSVs and exit." ),
@@ -965,7 +936,6 @@ def convert_command(
965936 print_schema = print_schema ,
966937 provider_metadata = provider_metadata ,
967938 dry_run = dry_run ,
968- upload = upload ,
969939 yes = yes ,
970940 generate_pmtiles = generate_pmtiles ,
971941 pmtiles_minzoom = pmtiles_minzoom ,
@@ -2037,7 +2007,6 @@ def multibeam_command(
20372007 input_dir : Path = typer .Option (Path ("raw_multibeam" ), exists = True , file_okay = False , help = "Directory with raw multibeam backscatter data." ),
20382008 output_dir : Path = typer .Option (Path ("out/multibeam" ), help = "Output directory for processed multibeam products." ),
20392009 verbose : bool = typer .Option (False , "-v" , help = "Emit progress information." ),
2040- upload : bool = typer .Option (False , help = "Upload processed data to cloud storage after conversion (future)." ),
20412010 dry_run : bool = typer .Option (False , "--dry-run" , help = "Show planned actions without executing." ),
20422011 ) -> None :
20432012 global _provider_obj
@@ -2063,7 +2032,6 @@ def adcp_command(
20632032 input_dir : Path = typer .Option (Path ("raw_adcp" ), exists = True , file_okay = False , help = "Directory with raw ADCP data." ),
20642033 output_dir : Path = typer .Option (Path ("out/adcp" ), help = "Output directory for processed ADCP products." ),
20652034 verbose : bool = typer .Option (False , "-v" , help = "Emit progress information." ),
2066- upload : bool = typer .Option (False , help = "Upload processed data to cloud storage after conversion (future)." ),
20672035 dry_run : bool = typer .Option (False , "--dry-run" , help = "Show planned actions without executing." ),
20682036 ) -> None :
20692037 global _provider_obj
0 commit comments