From 552e4ecc7a892b6489bf196be285ba026ce0e564 Mon Sep 17 00:00:00 2001 From: gearnode Date: Wed, 5 Mar 2025 10:32:30 +0100 Subject: [PATCH] Fix record version not uptodate in the store Signed-off-by: gearnode --- apps/console/src/pages/UpdatePolicyPage.tsx | 1 + .../UpdatePolicyPageMutation.graphql.ts | 16 ++++++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/apps/console/src/pages/UpdatePolicyPage.tsx b/apps/console/src/pages/UpdatePolicyPage.tsx index 98d473fc8..e1dfd6ece 100644 --- a/apps/console/src/pages/UpdatePolicyPage.tsx +++ b/apps/console/src/pages/UpdatePolicyPage.tsx @@ -42,6 +42,7 @@ const UpdatePolicyMutation = graphql` name content status + version } } } diff --git a/apps/console/src/pages/__generated__/UpdatePolicyPageMutation.graphql.ts b/apps/console/src/pages/__generated__/UpdatePolicyPageMutation.graphql.ts index 36a49233b..11e5f87b1 100644 --- a/apps/console/src/pages/__generated__/UpdatePolicyPageMutation.graphql.ts +++ b/apps/console/src/pages/__generated__/UpdatePolicyPageMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -27,6 +27,7 @@ export type UpdatePolicyPageMutation$data = { readonly id: string; readonly name: string; readonly status: PolicyStatus; + readonly version: number; }; }; }; @@ -93,6 +94,13 @@ v1 = [ "kind": "ScalarField", "name": "status", "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "version", + "storageKey": null } ], "storageKey": null @@ -119,16 +127,16 @@ return { "selections": (v1/*: any*/) }, "params": { - "cacheID": "712914b4586e7c5f722f908c8d64bbc1", + "cacheID": "ca013100ee6a0bf7c4e572474f1ba088", "id": null, "metadata": {}, "name": "UpdatePolicyPageMutation", "operationKind": "mutation", - "text": "mutation UpdatePolicyPageMutation(\n $input: UpdatePolicyInput!\n) {\n updatePolicy(input: $input) {\n policy {\n id\n name\n content\n status\n }\n }\n}\n" + "text": "mutation UpdatePolicyPageMutation(\n $input: UpdatePolicyInput!\n) {\n updatePolicy(input: $input) {\n policy {\n id\n name\n content\n status\n version\n }\n }\n}\n" } }; })(); -(node as any).hash = "25a2ddb0078d821584c5497227a6d364"; +(node as any).hash = "c17a1ff9bf786b0e251374a14fff0086"; export default node;