From b9cab0967e8a0c6216494d3eea63674ab2f9934d Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 23 Sep 2022 07:05:39 +0000 Subject: [PATCH] Bug 30982: (QA follow-up) Spelling [1] Correct: BackgrounJob [2] If should filter out not current jobs => Had a hard time reading that one until I replaced if by it. => Decided to rephrase it in a more positive way. Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi --- Koha/BackgroundJob.pm | 6 +++--- Koha/REST/V1/BackgroundJobs.pm | 2 +- api/v1/swagger/paths/jobs.yaml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Koha/BackgroundJob.pm b/Koha/BackgroundJob.pm index df3643a0ec..cb0f9adcea 100644 --- a/Koha/BackgroundJob.pm +++ b/Koha/BackgroundJob.pm @@ -47,7 +47,7 @@ my $job_id = Koha::BackgroundJob->enqueue( ); Consumer: -Koha::BackgrounJobs->find($job_id)->process; +Koha::BackgroundJobs->find($job_id)->process; See also C for a full example =head1 API @@ -386,7 +386,7 @@ sub _derived_class { =head3 type_to_class_mapping - my $mapping = Koha::BackgrounJob->new->type_to_class_mapping; + my $mapping = Koha::BackgroundJob->new->type_to_class_mapping; Returns the available types to class mappings. @@ -404,7 +404,7 @@ sub type_to_class_mapping { =head3 core_types_to_classes - my $mappings = Koha::BackgrounJob->new->core_types_to_classes + my $mappings = Koha::BackgroundJob->new->core_types_to_classes Returns the core background jobs types to class mappings. diff --git a/Koha/REST/V1/BackgroundJobs.pm b/Koha/REST/V1/BackgroundJobs.pm index cb1543d0fe..4db1ea3f3f 100644 --- a/Koha/REST/V1/BackgroundJobs.pm +++ b/Koha/REST/V1/BackgroundJobs.pm @@ -29,7 +29,7 @@ use Try::Tiny; =head3 list -Controller function that handles listing Koha::BackgrounJob objects +Controller function that handles listing Koha::BackgroundJob objects =cut diff --git a/api/v1/swagger/paths/jobs.yaml b/api/v1/swagger/paths/jobs.yaml index c7f0f98904..62ae157dc0 100644 --- a/api/v1/swagger/paths/jobs.yaml +++ b/api/v1/swagger/paths/jobs.yaml @@ -13,7 +13,7 @@ in: query required: false type: boolean - description: If should filter out not current jobs + description: Only include current jobs - $ref: "../swagger.yaml#/parameters/match" - $ref: "../swagger.yaml#/parameters/order_by" - $ref: "../swagger.yaml#/parameters/page" -- 2.39.5