Skip to content

Commit 0c3a6b5

Browse files
Remove workflow description for memo
1 parent eabbe0b commit 0c3a6b5

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

packages/test/src/test-integration-workflows.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -263,20 +263,6 @@ test('Query workflow metadata returns handler descriptions', async (t) => {
263263
});
264264
});
265265

266-
test('Query workflow metadata returns workflow description', async (t) => {
267-
const { createWorker, startWorkflow } = helpers(t);
268-
269-
const worker = await createWorker();
270-
271-
await worker.runUntil(async () => {
272-
const handle = await startWorkflow(queryWorkflowMetadata, {
273-
memo: { __temporal_workflow_description: 'my workflow' },
274-
});
275-
const meta = await handle.query(workflow.workflowMetadataQuery);
276-
t.is(meta.definition?.description, 'my workflow');
277-
});
278-
});
279-
280266
export async function executeEagerActivity(): Promise<void> {
281267
const scheduleActivity = () =>
282268
workflow

packages/workflow/src/internals.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ export class Activator implements ActivationHandler {
201201
{
202202
handler: (): temporal.api.sdk.v1.IWorkflowMetadata => {
203203
const workflowType = this.info.workflowType;
204-
const description = this.info?.memo?.__temporal_workflow_description;
205204
const queryDefinitions = Array.from(this.queryHandlers.entries()).map(([name, value]) => ({
206205
name,
207206
description: value.description,
@@ -217,15 +216,14 @@ export class Activator implements ActivationHandler {
217216
return {
218217
definition: {
219218
type: workflowType,
220-
description: typeof description === 'string' ? description : null,
219+
description: null, // For now, do not set the workflow description in the TS SDK.
221220
queryDefinitions,
222221
signalDefinitions,
223222
updateDefinitions,
224223
},
225224
};
226225
},
227-
description:
228-
'Returns metadata associated with this workflow. Use `memo.__temporal_workflow_description` to add a workflow description.',
226+
description: 'Returns metadata associated with this workflow.',
229227
},
230228
],
231229
]);

0 commit comments

Comments
 (0)