@@ -93,7 +93,10 @@ pub struct ConnectorStats {
9393pub struct PipelineInfo {
9494 pub id : PipelineId ,
9595 pub name : String ,
96+ /// Deprecated: use `metadata` instead.
97+ #[ schema( deprecated) ]
9698 pub description : String ,
99+ pub metadata : String ,
97100 pub created_at : DateTime < Utc > ,
98101 pub version : Version ,
99102 pub platform_version : String ,
@@ -143,6 +146,7 @@ pub struct PipelineInfoInternal {
143146 pub id : PipelineId ,
144147 pub name : String ,
145148 pub description : String ,
149+ pub metadata : String ,
146150 pub created_at : DateTime < Utc > ,
147151 pub version : Version ,
148152 pub platform_version : String ,
@@ -184,6 +188,7 @@ impl PipelineInfoInternal {
184188 id : extended_pipeline. id ,
185189 name : extended_pipeline. name ,
186190 description : extended_pipeline. description ,
191+ metadata : extended_pipeline. metadata ,
187192 created_at : extended_pipeline. created_at ,
188193 version : extended_pipeline. version ,
189194 platform_version : extended_pipeline. platform_version ,
@@ -245,7 +250,10 @@ impl PipelineInfoInternal {
245250pub struct PipelineSelectedInfo {
246251 pub id : PipelineId ,
247252 pub name : String ,
253+ /// Deprecated: use `metadata` instead.
254+ #[ schema( deprecated) ]
248255 pub description : String ,
256+ pub metadata : String ,
249257 pub created_at : DateTime < Utc > ,
250258 pub version : Version ,
251259 pub platform_version : String ,
@@ -303,6 +311,7 @@ pub struct PipelineSelectedInfoInternal {
303311 pub id : PipelineId ,
304312 pub name : String ,
305313 pub description : String ,
314+ pub metadata : String ,
306315 pub created_at : DateTime < Utc > ,
307316 pub version : Version ,
308317 pub platform_version : String ,
@@ -355,6 +364,7 @@ impl PipelineSelectedInfoInternal {
355364 id : extended_pipeline. id ,
356365 name : extended_pipeline. name ,
357366 description : extended_pipeline. description ,
367+ metadata : extended_pipeline. metadata ,
358368 created_at : extended_pipeline. created_at ,
359369 version : extended_pipeline. version ,
360370 platform_version : extended_pipeline. platform_version ,
@@ -418,6 +428,7 @@ impl PipelineSelectedInfoInternal {
418428 id : extended_pipeline. id ,
419429 name : extended_pipeline. name ,
420430 description : extended_pipeline. description ,
431+ metadata : extended_pipeline. metadata ,
421432 created_at : extended_pipeline. created_at ,
422433 version : extended_pipeline. version ,
423434 platform_version : extended_pipeline. platform_version ,
@@ -490,7 +501,8 @@ pub enum PipelineFieldSelector {
490501 /// The selection includes the following fields:
491502 /// - `id`
492503 /// - `name`
493- /// - `description`
504+ /// - `description` (deprecated, use `metadata`)
505+ /// - `metadata`
494506 /// - `created_at`
495507 /// - `version`
496508 /// - `platform_version`
@@ -530,7 +542,8 @@ pub enum PipelineFieldSelector {
530542 /// The selection includes the following fields:
531543 /// - `id`
532544 /// - `name`
533- /// - `description`
545+ /// - `description` (deprecated, use `metadata`)
546+ /// - `metadata`
534547 /// - `created_at`
535548 /// - `version`
536549 /// - `platform_version`
@@ -591,7 +604,10 @@ pub struct GetPipelineParameters {
591604#[ derive( Debug , Serialize , Deserialize , ToSchema ) ]
592605pub struct PostPutPipeline {
593606 pub name : String ,
607+ /// Deprecated: use `metadata` instead.
608+ #[ schema( deprecated) ]
594609 pub description : Option < String > ,
610+ pub metadata : Option < String > ,
595611 pub runtime_config : Option < RuntimeConfig > ,
596612 pub program_code : String ,
597613 pub udf_rust : Option < String > ,
@@ -609,6 +625,7 @@ pub struct PostPutPipeline {
609625pub struct PostPutPipelineInternal {
610626 pub name : String ,
611627 pub description : Option < String > ,
628+ pub metadata : Option < String > ,
612629 pub runtime_config : Option < serde_json:: Value > ,
613630 pub program_code : String ,
614631 pub udf_rust : Option < String > ,
@@ -623,6 +640,7 @@ impl From<PostPutPipelineInternal> for PipelineDescr {
623640 PipelineDescr {
624641 name : value. name . clone ( ) ,
625642 description : value. description . clone ( ) . unwrap_or ( "" . to_string ( ) ) ,
643+ metadata : value. metadata . clone ( ) . unwrap_or ( "" . to_string ( ) ) ,
626644 runtime_config : value. runtime_config . clone ( ) . unwrap_or ( json ! ( { } ) ) ,
627645 program_code : value. program_code . clone ( ) ,
628646 udf_rust : value. udf_rust . clone ( ) . unwrap_or ( "" . to_string ( ) ) ,
@@ -641,7 +659,13 @@ impl From<PostPutPipelineInternal> for PipelineDescr {
641659#[ derive( Debug , Serialize , Deserialize , ToSchema ) ]
642660pub struct PatchPipeline {
643661 pub name : Option < String > ,
662+ /// Deprecated: use `metadata` instead.
663+ #[ schema( deprecated) ]
644664 pub description : Option < String > ,
665+ /// Free-form client-side annotation. Unlike the other fields, `metadata`
666+ /// can be patched at any time — including while the pipeline is running —
667+ /// because it has no effect on the deployed pipeline.
668+ pub metadata : Option < String > ,
645669 pub runtime_config : Option < RuntimeConfig > ,
646670 pub program_code : Option < String > ,
647671 pub udf_rust : Option < String > ,
@@ -658,6 +682,7 @@ pub struct PatchPipeline {
658682pub struct PatchPipelineInternal {
659683 pub name : Option < String > ,
660684 pub description : Option < String > ,
685+ pub metadata : Option < String > ,
661686 pub runtime_config : Option < serde_json:: Value > ,
662687 pub program_code : Option < String > ,
663688 pub udf_rust : Option < String > ,
@@ -1151,6 +1176,7 @@ pub(crate) async fn patch_pipeline(
11511176 & pipeline_name,
11521177 & body. name ,
11531178 & body. description ,
1179+ & body. metadata ,
11541180 & state. common_config . platform_version ,
11551181 false ,
11561182 & body. runtime_config ,
@@ -1240,6 +1266,7 @@ pub(crate) async fn post_update_runtime(
12401266 & pipeline_name,
12411267 & None ,
12421268 & None ,
1269+ & None ,
12431270 & state. common_config . platform_version ,
12441271 true , // bump platform version.
12451272 & None ,
0 commit comments