Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial prototype: update metadata #7206

Closed
wants to merge 2 commits into from
Closed

Conversation

Shivs11
Copy link
Member

@Shivs11 Shivs11 commented Jan 31, 2025

What changed?

  • Added logic for updating the user-set metadata

Why?

  • versioning-3.1

How did you test it?

  • NO TESTS have been added yet - very soon to follow since this is an initial prototype

Potential risks

Documentation

Is hotfix candidate?

  • No

@@ -7,7 +7,7 @@ retract (
v1.26.0 // Published accidentally.
)

replace go.temporal.io/api => go.temporal.io/api v1.43.2-0.20250130194036-6d83c927eaed
replace go.temporal.io/api => go.temporal.io/api v1.43.2-0.20250131172531-3415eb526334
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pointing to my feature branch on api-go: will change once my API PR gets in

@Shivs11 Shivs11 marked this pull request as ready for review January 31, 2025 21:54
@Shivs11 Shivs11 requested a review from a team as a code owner January 31, 2025 21:54
Comment on lines -330 to -347
request := &historyservice.UpdateActivityOptionsRequest{
UpdateRequest: &workflowservice.UpdateActivityOptionsByIdRequest{
ActivityOptions: &activitypb.ActivityOptions{
TaskQueue: &taskqueuepb.TaskQueue{Name: "task_queue_name"},
},
UpdateMask: &fieldmaskpb.FieldMask{
Paths: []string{
"TaskQueue.Name",
},
},
},
}

s.mockMutableState.EXPECT().IsWorkflowExecutionRunning().Return(true)
s.mockMutableState.EXPECT().GetActivityByActivityID(gomock.Any()).Return(nil, false)
_, err := updateActivityOptions(s.validator, s.mockMutableState, request)
s.Error(err)
s.ErrorAs(err, &consts.ErrActivityNotFound)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed unrelated tests for now since they require a merge from main - for now, ignoring this and shall fix it when we merge this branch into main

cc - @carlydf

@ShahabT
Copy link
Collaborator

ShahabT commented Feb 5, 2025

this is merged in versioning-3.1-merge branch 4f38677

@ShahabT ShahabT closed this Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants