From 5df50bbde0b5777f44e8a9763bbb71c438b473e8 Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Thu, 27 Jun 2024 23:02:44 +0800 Subject: [PATCH] fix(webserver): correct job name of web crawler --- ee/tabby-schema/src/schema/mod.rs | 10 ++++++---- ee/tabby-ui/app/(dashboard)/(logs)/jobs/utils.ts | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ee/tabby-schema/src/schema/mod.rs b/ee/tabby-schema/src/schema/mod.rs index 0925982c0..25e76b9e1 100644 --- a/ee/tabby-schema/src/schema/mod.rs +++ b/ee/tabby-schema/src/schema/mod.rs @@ -350,10 +350,12 @@ impl Query { // FIXME(meng): This is a temporary solution to expose the list of jobs, we should consider switching to a enum based approach. async fn jobs() -> Result> { - Ok(vec!["scheduler_git", "scheduler_github_gitlab", "web"] - .into_iter() - .map(Into::into) - .collect()) + Ok( + vec!["scheduler_git", "scheduler_github_gitlab", "web_crawler"] + .into_iter() + .map(Into::into) + .collect(), + ) } async fn daily_stats_in_past_year( diff --git a/ee/tabby-ui/app/(dashboard)/(logs)/jobs/utils.ts b/ee/tabby-ui/app/(dashboard)/(logs)/jobs/utils.ts index 6ff8642dc..afb6fb190 100644 --- a/ee/tabby-ui/app/(dashboard)/(logs)/jobs/utils.ts +++ b/ee/tabby-ui/app/(dashboard)/(logs)/jobs/utils.ts @@ -5,7 +5,7 @@ import { JobRun } from '@/lib/gql/generates/graphql' const JOB_DISPLAY_NAME_MAPPINGS = { scheduler_git: 'Git', scheduler_github_gitlab: 'Github / Gitlab', - web: 'Web' + web_crawler: 'Web' } export function getJobDisplayName(name: string): string {