From 169e00c4269d8f6ee31b11c9430cb71e98cabff6 Mon Sep 17 00:00:00 2001 From: blam Date: Tue, 15 Mar 2022 12:28:25 +0100 Subject: [PATCH] chore: fixing review comments Signed-off-by: blam --- .../src/scaffolder/tasks/StorageTaskBroker.ts | 10 +++++----- plugins/scaffolder-common/src/TaskSpec.ts | 6 +++--- plugins/scaffolder-common/src/TemplateEntityV1beta3.ts | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/plugins/scaffolder-backend/src/scaffolder/tasks/StorageTaskBroker.ts b/plugins/scaffolder-backend/src/scaffolder/tasks/StorageTaskBroker.ts index a4ec429121..a92d6abdb8 100644 --- a/plugins/scaffolder-backend/src/scaffolder/tasks/StorageTaskBroker.ts +++ b/plugins/scaffolder-backend/src/scaffolder/tasks/StorageTaskBroker.ts @@ -145,7 +145,7 @@ export class StorageTaskBroker implements TaskBroker { private deferredDispatch = defer(); /** - * @inheritdoc + * {@inheritdoc TaskBroker.claim} */ async claim(): Promise { for (;;) { @@ -167,7 +167,7 @@ export class StorageTaskBroker implements TaskBroker { } /** - * @inheritdoc + * {@inheritdoc TaskBroker.dispatch} */ async dispatch( options: TaskBrokerDispatchOptions, @@ -180,14 +180,14 @@ export class StorageTaskBroker implements TaskBroker { } /** - * @inheritdoc + * {@inheritdoc TaskBroker.get} */ async get(taskId: string): Promise { return this.storage.getTask(taskId); } /** - * @inheritdoc + * {@inheritdoc TaskBroker.event$} */ event$(options: { taskId: string; @@ -219,7 +219,7 @@ export class StorageTaskBroker implements TaskBroker { } /** - * @inheritdoc + * {@inheritdoc TaskBroker.vacuumTasks} */ async vacuumTasks(options: { timeoutS: number }): Promise { const { tasks } = await this.storage.listStaleTasks(options); diff --git a/plugins/scaffolder-common/src/TaskSpec.ts b/plugins/scaffolder-common/src/TaskSpec.ts index defca83096..e745964ff7 100644 --- a/plugins/scaffolder-common/src/TaskSpec.ts +++ b/plugins/scaffolder-common/src/TaskSpec.ts @@ -48,7 +48,7 @@ export interface TaskStep { */ name: string; /** - * The underlying action ID that will be called part of running this step. + * The underlying action ID that will be called as part of running this step. */ action: string; /** @@ -56,7 +56,7 @@ export interface TaskStep { */ input?: JsonObject; /** - * When this is false, or if the templated value string evaluates to something that is false the step will be skipped. + * When this is false, or if the templated value string evaluates to something that is falsy the step will be skipped. */ if?: string | boolean; } @@ -73,7 +73,7 @@ export interface TaskSpecV1beta3 { */ apiVersion: 'scaffolder.backstage.io/v1beta3'; /** - * This is a JSONSchema or an array of JSONSchema's which is used to render a form in the frontend + * This is a JSONSchema which is used to render a form in the frontend * to collect user input and validate it against that schema. This can then be used in the `steps` part below to template * variables passed from the user into each action in the template. */ diff --git a/plugins/scaffolder-common/src/TemplateEntityV1beta3.ts b/plugins/scaffolder-common/src/TemplateEntityV1beta3.ts index 5e188cb09b..8ded484ee2 100644 --- a/plugins/scaffolder-common/src/TemplateEntityV1beta3.ts +++ b/plugins/scaffolder-common/src/TemplateEntityV1beta3.ts @@ -67,7 +67,7 @@ export interface TemplateEntityV1beta3 extends Entity { */ output?: { [name: string]: string }; /** - * The owner of the TemplateEntity + * The owner entityRef of the TemplateEntity */ owner?: string; };