From 93f137f38e977fe4bf210a59f8213972d52097f4 Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Wed, 12 Mar 2025 17:46:39 -0700 Subject: [PATCH 1/4] fix: add INELIGIBLE state to ConfigErrorState enum --- api/src/graphql/generated/api/types.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/graphql/generated/api/types.ts b/api/src/graphql/generated/api/types.ts index 6989428810..5cc0a6bf8e 100644 --- a/api/src/graphql/generated/api/types.ts +++ b/api/src/graphql/generated/api/types.ts @@ -288,7 +288,8 @@ export enum ConfigErrorState { INVALID = 'INVALID', NO_KEY_SERVER = 'NO_KEY_SERVER', UNKNOWN_ERROR = 'UNKNOWN_ERROR', - WITHDRAWN = 'WITHDRAWN' + WITHDRAWN = 'WITHDRAWN', + INELIGIBLE = 'INELIGIBLE' } export type Connect = Node & { From d0c20cb6a666a143df926d71cfa1970e4e5c5492 Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Wed, 12 Mar 2025 17:59:45 -0700 Subject: [PATCH 2/4] fix: add INELIGIBLE state to ConfigErrorState enum in GraphQL and related files --- api/src/graphql/generated/api/types.ts | 4 ++-- api/src/graphql/schema/types/config/config.graphql | 1 + api/src/graphql/schema/types/vars/vars.graphql | 1 + web/_webGui/testWebComponents.page | 1 + web/composables/gql/graphql.ts | 1 + 5 files changed, 6 insertions(+), 2 deletions(-) diff --git a/api/src/graphql/generated/api/types.ts b/api/src/graphql/generated/api/types.ts index 5cc0a6bf8e..695a0377a7 100644 --- a/api/src/graphql/generated/api/types.ts +++ b/api/src/graphql/generated/api/types.ts @@ -285,11 +285,11 @@ export type Config = Node & { }; export enum ConfigErrorState { + INELIGIBLE = 'INELIGIBLE', INVALID = 'INVALID', NO_KEY_SERVER = 'NO_KEY_SERVER', UNKNOWN_ERROR = 'UNKNOWN_ERROR', - WITHDRAWN = 'WITHDRAWN', - INELIGIBLE = 'INELIGIBLE' + WITHDRAWN = 'WITHDRAWN' } export type Connect = Node & { diff --git a/api/src/graphql/schema/types/config/config.graphql b/api/src/graphql/schema/types/config/config.graphql index 3ff69ac845..3ec01dc8d4 100644 --- a/api/src/graphql/schema/types/config/config.graphql +++ b/api/src/graphql/schema/types/config/config.graphql @@ -1,5 +1,6 @@ enum ConfigErrorState { UNKNOWN_ERROR + INELIGIBLE INVALID NO_KEY_SERVER WITHDRAWN diff --git a/api/src/graphql/schema/types/vars/vars.graphql b/api/src/graphql/schema/types/vars/vars.graphql index 7cbdfe046c..e99c3fc178 100644 --- a/api/src/graphql/schema/types/vars/vars.graphql +++ b/api/src/graphql/schema/types/vars/vars.graphql @@ -8,6 +8,7 @@ type Subscription { enum ConfigErrorState { UNKNOWN_ERROR + INELIGIBLE INVALID NO_KEY_SERVER WITHDRAWN diff --git a/web/_webGui/testWebComponents.page b/web/_webGui/testWebComponents.page index fd7b87af78..929ad4ebf1 100644 --- a/web/_webGui/testWebComponents.page +++ b/web/_webGui/testWebComponents.page @@ -46,6 +46,7 @@ if (!function_exists('ipaddr')) { } $configErrorEnum = [ // used to map $var['configValid'] value to mimic unraid-api's `configError` ENUM "error" => 'UNKNOWN_ERROR', + "ineligible" => 'INELIGIBLE', "invalid" => 'INVALID', "nokeyserver" => 'NO_KEY_SERVER', "withdrawn" => 'WITHDRAWN', diff --git a/web/composables/gql/graphql.ts b/web/composables/gql/graphql.ts index 36164a0744..9220dadf08 100644 --- a/web/composables/gql/graphql.ts +++ b/web/composables/gql/graphql.ts @@ -288,6 +288,7 @@ export type Config = Node & { }; export enum ConfigErrorState { + Ineligible = 'INELIGIBLE', Invalid = 'INVALID', NoKeyServer = 'NO_KEY_SERVER', UnknownError = 'UNKNOWN_ERROR', From 22557165337087a663e0708d67dd95991d23ac4c Mon Sep 17 00:00:00 2001 From: Eli Bosley Date: Thu, 13 Mar 2025 11:59:28 -0400 Subject: [PATCH 3/4] chore: update layouts --- .../__fixtures__/downloaded/.login.php.last-download-time | 2 +- .../__test__/__fixtures__/downloaded/DefaultPageLayout.php | 2 +- .../downloaded/DefaultPageLayout.php.last-download-time | 2 +- .../downloaded/Notifications.page.last-download-time | 2 +- .../__fixtures__/downloaded/auth-request.php.last-download-time | 2 +- .../snapshots/DefaultPageLayout.php.modified.snapshot.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/api/src/unraid-api/unraid-file-modifier/modifications/__test__/__fixtures__/downloaded/.login.php.last-download-time b/api/src/unraid-api/unraid-file-modifier/modifications/__test__/__fixtures__/downloaded/.login.php.last-download-time index 9e339bed1b..bfdd52e50d 100644 --- a/api/src/unraid-api/unraid-file-modifier/modifications/__test__/__fixtures__/downloaded/.login.php.last-download-time +++ b/api/src/unraid-api/unraid-file-modifier/modifications/__test__/__fixtures__/downloaded/.login.php.last-download-time @@ -1 +1 @@ -1740588065597 \ No newline at end of file +1741881521869 \ No newline at end of file diff --git a/api/src/unraid-api/unraid-file-modifier/modifications/__test__/__fixtures__/downloaded/DefaultPageLayout.php b/api/src/unraid-api/unraid-file-modifier/modifications/__test__/__fixtures__/downloaded/DefaultPageLayout.php index b8f39ce4a1..7fbb2469d2 100644 --- a/api/src/unraid-api/unraid-file-modifier/modifications/__test__/__fixtures__/downloaded/DefaultPageLayout.php +++ b/api/src/unraid-api/unraid-file-modifier/modifications/__test__/__fixtures__/downloaded/DefaultPageLayout.php @@ -676,7 +676,7 @@ function flashReport() { echo "