Fix number of control

Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
gearnode
2025-03-13 17:58:47 +01:00
parent 01e81fb000
commit d0acd8b5a1
4 changed files with 21 additions and 14 deletions

View File

@@ -62,7 +62,7 @@ const FrameworkListPageImportFrameworkMutation = graphql`
id id
name name
description description
controls { controls(first: 100) {
edges { edges {
node { node {
id id

View File

@@ -20,7 +20,8 @@ const FrameworkOverviewPageQuery = graphql`
... on Framework { ... on Framework {
name name
description description
controls(first: 90) @connection(key: "FrameworkOverviewPage_controls") { controls(first: 100)
@connection(key: "FrameworkOverviewPage_controls") {
edges { edges {
node { node {
id id

View File

@@ -1,5 +1,5 @@
/** /**
* @generated SignedSource<<886db9744d1d937174d0138601e644a5>> * @generated SignedSource<<92f143ac22d00fc2373928c607a105fa>>
* @lightSyntaxTransform * @lightSyntaxTransform
* @nogrep * @nogrep
*/ */
@@ -106,7 +106,13 @@ v2 = [
}, },
{ {
"alias": null, "alias": null,
"args": null, "args": [
{
"kind": "Literal",
"name": "first",
"value": 100
}
],
"concreteType": "ControlConnection", "concreteType": "ControlConnection",
"kind": "LinkedField", "kind": "LinkedField",
"name": "controls", "name": "controls",
@@ -143,7 +149,7 @@ v2 = [
"storageKey": null "storageKey": null
} }
], ],
"storageKey": null "storageKey": "controls(first:100)"
}, },
{ {
"alias": null, "alias": null,
@@ -187,16 +193,16 @@ return {
"selections": (v2/*: any*/) "selections": (v2/*: any*/)
}, },
"params": { "params": {
"cacheID": "2ea6f840625bd25b0469103c8f98d3f2", "cacheID": "946e840d5f7bb3a33e7ee1d0e2180bb5",
"id": null, "id": null,
"metadata": {}, "metadata": {},
"name": "FrameworkListPageImportFrameworkMutation", "name": "FrameworkListPageImportFrameworkMutation",
"operationKind": "mutation", "operationKind": "mutation",
"text": "mutation FrameworkListPageImportFrameworkMutation(\n $input: ImportFrameworkInput!\n) {\n importFramework(input: $input) {\n frameworkEdge {\n node {\n id\n name\n description\n controls {\n edges {\n node {\n id\n state\n }\n }\n }\n createdAt\n updatedAt\n }\n }\n }\n}\n" "text": "mutation FrameworkListPageImportFrameworkMutation(\n $input: ImportFrameworkInput!\n) {\n importFramework(input: $input) {\n frameworkEdge {\n node {\n id\n name\n description\n controls(first: 100) {\n edges {\n node {\n id\n state\n }\n }\n }\n createdAt\n updatedAt\n }\n }\n }\n}\n"
} }
}; };
})(); })();
(node as any).hash = "cb68b53c21e128e59354c51048f347cc"; (node as any).hash = "715a97d6fde9a26f202e8281b9211b1f";
export default node; export default node;

View File

@@ -1,5 +1,5 @@
/** /**
* @generated SignedSource<<f5c15295df1bbb71ef99c60ec2417464>> * @generated SignedSource<<d673a8265dbda865ed008ca8d8d91c38>>
* @lightSyntaxTransform * @lightSyntaxTransform
* @nogrep * @nogrep
*/ */
@@ -166,7 +166,7 @@ v7 = [
{ {
"kind": "Literal", "kind": "Literal",
"name": "first", "name": "first",
"value": 90 "value": 100
} }
]; ];
return { return {
@@ -240,7 +240,7 @@ return {
"name": "controls", "name": "controls",
"plural": false, "plural": false,
"selections": (v6/*: any*/), "selections": (v6/*: any*/),
"storageKey": "controls(first:90)" "storageKey": "controls(first:100)"
}, },
{ {
"alias": null, "alias": null,
@@ -261,7 +261,7 @@ return {
] ]
}, },
"params": { "params": {
"cacheID": "6a4fc22ad7657a6861027975b620b08e", "cacheID": "d1033e296ed81f7dd74c61e04dbc7d1f",
"id": null, "id": null,
"metadata": { "metadata": {
"connection": [ "connection": [
@@ -278,11 +278,11 @@ return {
}, },
"name": "FrameworkOverviewPageQuery", "name": "FrameworkOverviewPageQuery",
"operationKind": "query", "operationKind": "query",
"text": "query FrameworkOverviewPageQuery(\n $frameworkId: ID!\n) {\n node(id: $frameworkId) {\n __typename\n id\n ... on Framework {\n name\n description\n controls(first: 90) {\n edges {\n node {\n id\n name\n description\n state\n category\n importance\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n }\n}\n" "text": "query FrameworkOverviewPageQuery(\n $frameworkId: ID!\n) {\n node(id: $frameworkId) {\n __typename\n id\n ... on Framework {\n name\n description\n controls(first: 100) {\n edges {\n node {\n id\n name\n description\n state\n category\n importance\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n }\n}\n"
} }
}; };
})(); })();
(node as any).hash = "0a7d8e6c782dae1777ee687c768d0ad6"; (node as any).hash = "0f64849d3b9455a880811d65870243e0";
export default node; export default node;