Skip to content

Commit

Permalink
Set new server / SDK metadata to their zero values
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison committed Dec 4, 2023
1 parent a4c6477 commit fbddd4a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/src/internal_flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ impl InternalFlags {
WorkflowTaskCompletedMetadata {
core_used_flags: core_newly_used,
lang_used_flags: lang_newly_used,
sdk_name: "".to_string(),
sdk_version: "".to_string(),
}
}
Self::Disabled => WorkflowTaskCompletedMetadata::default(),
Expand Down Expand Up @@ -182,6 +184,8 @@ mod tests {
sdk_metadata: Some(WorkflowTaskCompletedMetadata {
core_used_flags: vec![1],
lang_used_flags: vec![],
sdk_name: "".to_string(),
sdk_version: "".to_string(),
}),
..Default::default()
});
Expand Down Expand Up @@ -215,6 +219,8 @@ mod tests {
sdk_metadata: Some(WorkflowTaskCompletedMetadata {
core_used_flags: vec![2],
lang_used_flags: vec![2],
sdk_name: "".to_string(),
sdk_version: "".to_string(),
}),
..Default::default()
});
Expand Down
1 change: 1 addition & 0 deletions core/src/worker/client/mocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub(crate) static DEFAULT_TEST_CAPABILITIES: &Capabilities = &Capabilities {
upsert_memo: true,
eager_workflow_start: true,
sdk_metadata: true,
count_group_by_execution_status: false,
};

#[cfg(test)]
Expand Down

0 comments on commit fbddd4a

Please sign in to comment.