Change vendor and people default order

Close #35

Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
gearnode
2025-03-19 08:13:36 +01:00
parent 8d23435806
commit c66974733a
12 changed files with 228 additions and 115 deletions

View File

@@ -12,7 +12,7 @@ import { PeopleSelector_organization$key } from "./__generated__/PeopleSelector_
const peopleSelectorFragment = graphql` const peopleSelectorFragment = graphql`
fragment PeopleSelector_organization on Organization { fragment PeopleSelector_organization on Organization {
id id
peoples(first: 100) peoples(first: 100, orderBy: { direction: ASC, field: FULL_NAME })
@connection(key: "PeopleSelector_organization_peoples") { @connection(key: "PeopleSelector_organization_peoples") {
edges { edges {
node { node {

View File

@@ -1,5 +1,5 @@
/** /**
* @generated SignedSource<<78caa409132a5db72b83629bdcd023d5>> * @generated SignedSource<<a048edd52203c53c6736b800456816b0>>
* @lightSyntaxTransform * @lightSyntaxTransform
* @nogrep * @nogrep
*/ */
@@ -56,7 +56,16 @@ return {
(v0/*: any*/), (v0/*: any*/),
{ {
"alias": "peoples", "alias": "peoples",
"args": null, "args": [
{
"kind": "Literal",
"name": "orderBy",
"value": {
"direction": "ASC",
"field": "FULL_NAME"
}
}
],
"concreteType": "PeopleConnection", "concreteType": "PeopleConnection",
"kind": "LinkedField", "kind": "LinkedField",
"name": "__PeopleSelector_organization_peoples_connection", "name": "__PeopleSelector_organization_peoples_connection",
@@ -139,7 +148,7 @@ return {
"storageKey": null "storageKey": null
} }
], ],
"storageKey": null "storageKey": "__PeopleSelector_organization_peoples_connection(orderBy:{\"direction\":\"ASC\",\"field\":\"FULL_NAME\"})"
} }
], ],
"type": "Organization", "type": "Organization",
@@ -147,6 +156,6 @@ return {
}; };
})(); })();
(node as any).hash = "ed86f67795b049ec359cb7e5e55500a0"; (node as any).hash = "77094e387ff3e5dca822fc2360094744";
export default node; export default node;

View File

@@ -303,7 +303,8 @@ const organizationQuery = graphql`
organization: node(id: $organizationId) { organization: node(id: $organizationId) {
id id
... on Organization { ... on Organization {
peoples(first: 100) @connection(key: "ControlOverviewPage_peoples") { peoples(first: 100, orderBy: { direction: ASC, field: FULL_NAME })
@connection(key: "ControlOverviewPage_peoples") {
edges { edges {
node { node {
id id

View File

@@ -93,15 +93,33 @@ function CreatePeoplePageContent() {
connections: [ connections: [
ConnectionHandler.getConnectionID( ConnectionHandler.getConnectionID(
organizationId!, organizationId!,
"PeopleListPage_peoples" "PeopleListPage_peoples",
{
orderBy: {
direction: "ASC",
field: "FULL_NAME",
},
}
), ),
ConnectionHandler.getConnectionID( ConnectionHandler.getConnectionID(
organizationId!, organizationId!,
"PeopleSelector_organization_peoples" "PeopleSelector_organization_peoples",
{
orderBy: {
direction: "ASC",
field: "FULL_NAME",
},
}
), ),
ConnectionHandler.getConnectionID( ConnectionHandler.getConnectionID(
organizationId!, organizationId!,
"ControlOverviewPage_peoples" "ControlOverviewPage_peoples",
{
orderBy: {
direction: "ASC",
field: "FULL_NAME",
},
}
), ),
], ],
input: { input: {

View File

@@ -47,8 +47,13 @@ const peopleListFragment = graphql`
before: { type: "CursorKey" } before: { type: "CursorKey" }
) { ) {
id id
peoples(first: $first, after: $after, last: $last, before: $before) peoples(
@connection(key: "PeopleListPage_peoples") { first: $first
after: $after
last: $last
before: $before
orderBy: { direction: ASC, field: FULL_NAME }
) @connection(key: "PeopleListPage_peoples") {
__id __id
edges { edges {
node { node {

View File

@@ -1,5 +1,5 @@
/** /**
* @generated SignedSource<<50244c085e737eefef310f74fe8808a3>> * @generated SignedSource<<b005acefd80f6091d29b4e095f4d271c>>
* @lightSyntaxTransform * @lightSyntaxTransform
* @nogrep * @nogrep
*/ */
@@ -54,13 +54,21 @@ v2 = {
"storageKey": null "storageKey": null
}, },
v3 = { v3 = {
"kind": "Literal",
"name": "orderBy",
"value": {
"direction": "ASC",
"field": "FULL_NAME"
}
},
v4 = {
"alias": null, "alias": null,
"args": null, "args": null,
"kind": "ScalarField", "kind": "ScalarField",
"name": "__typename", "name": "__typename",
"storageKey": null "storageKey": null
}, },
v4 = [ v5 = [
{ {
"alias": null, "alias": null,
"args": null, "args": null,
@@ -92,7 +100,7 @@ v4 = [
"name": "primaryEmailAddress", "name": "primaryEmailAddress",
"storageKey": null "storageKey": null
}, },
(v3/*: any*/) (v4/*: any*/)
], ],
"storageKey": null "storageKey": null
}, },
@@ -132,12 +140,13 @@ v4 = [
"storageKey": null "storageKey": null
} }
], ],
v5 = [ v6 = [
{ {
"kind": "Literal", "kind": "Literal",
"name": "first", "name": "first",
"value": 100 "value": 100
} },
(v3/*: any*/)
]; ];
return { return {
"fragment": { "fragment": {
@@ -160,13 +169,15 @@ return {
"selections": [ "selections": [
{ {
"alias": "peoples", "alias": "peoples",
"args": null, "args": [
(v3/*: any*/)
],
"concreteType": "PeopleConnection", "concreteType": "PeopleConnection",
"kind": "LinkedField", "kind": "LinkedField",
"name": "__ControlOverviewPage_peoples_connection", "name": "__ControlOverviewPage_peoples_connection",
"plural": false, "plural": false,
"selections": (v4/*: any*/), "selections": (v5/*: any*/),
"storageKey": null "storageKey": "__ControlOverviewPage_peoples_connection(orderBy:{\"direction\":\"ASC\",\"field\":\"FULL_NAME\"})"
} }
], ],
"type": "Organization", "type": "Organization",
@@ -193,25 +204,27 @@ return {
"name": "node", "name": "node",
"plural": false, "plural": false,
"selections": [ "selections": [
(v3/*: any*/), (v4/*: any*/),
(v2/*: any*/), (v2/*: any*/),
{ {
"kind": "InlineFragment", "kind": "InlineFragment",
"selections": [ "selections": [
{ {
"alias": null, "alias": null,
"args": (v5/*: any*/), "args": (v6/*: any*/),
"concreteType": "PeopleConnection", "concreteType": "PeopleConnection",
"kind": "LinkedField", "kind": "LinkedField",
"name": "peoples", "name": "peoples",
"plural": false, "plural": false,
"selections": (v4/*: any*/), "selections": (v5/*: any*/),
"storageKey": "peoples(first:100)" "storageKey": "peoples(first:100,orderBy:{\"direction\":\"ASC\",\"field\":\"FULL_NAME\"})"
}, },
{ {
"alias": null, "alias": null,
"args": (v5/*: any*/), "args": (v6/*: any*/),
"filters": null, "filters": [
"orderBy"
],
"handle": "connection", "handle": "connection",
"key": "ControlOverviewPage_peoples", "key": "ControlOverviewPage_peoples",
"kind": "LinkedHandle", "kind": "LinkedHandle",
@@ -227,7 +240,7 @@ return {
] ]
}, },
"params": { "params": {
"cacheID": "2a407ffb628c6c0465efe741ba990440", "cacheID": "b92e9c3fbb4dcdb62652d4f9dd9f3712",
"id": null, "id": null,
"metadata": { "metadata": {
"connection": [ "connection": [
@@ -244,11 +257,11 @@ return {
}, },
"name": "ControlOverviewPageOrganizationQuery", "name": "ControlOverviewPageOrganizationQuery",
"operationKind": "query", "operationKind": "query",
"text": "query ControlOverviewPageOrganizationQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n id\n ... on Organization {\n peoples(first: 100) {\n edges {\n node {\n id\n fullName\n primaryEmailAddress\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n }\n}\n" "text": "query ControlOverviewPageOrganizationQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n id\n ... on Organization {\n peoples(first: 100, orderBy: {direction: ASC, field: FULL_NAME}) {\n edges {\n node {\n id\n fullName\n primaryEmailAddress\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n }\n}\n"
} }
}; };
})(); })();
(node as any).hash = "ba314af121e5a3d44f9001a7ada7a89a"; (node as any).hash = "215186695662d7c8344e35b1f053ee5f";
export default node; export default node;

View File

@@ -1,5 +1,5 @@
/** /**
* @generated SignedSource<<8bfccae4e1629a74d3651300b7f45768>> * @generated SignedSource<<21831aed35a902922b54a96fcb5c8272>>
* @lightSyntaxTransform * @lightSyntaxTransform
* @nogrep * @nogrep
*/ */
@@ -57,6 +57,14 @@ v4 = [
"kind": "Literal", "kind": "Literal",
"name": "first", "name": "first",
"value": 100 "value": 100
},
{
"kind": "Literal",
"name": "orderBy",
"value": {
"direction": "ASC",
"field": "FULL_NAME"
}
} }
]; ];
return { return {
@@ -184,12 +192,14 @@ return {
"storageKey": null "storageKey": null
} }
], ],
"storageKey": "peoples(first:100)" "storageKey": "peoples(first:100,orderBy:{\"direction\":\"ASC\",\"field\":\"FULL_NAME\"})"
}, },
{ {
"alias": null, "alias": null,
"args": (v4/*: any*/), "args": (v4/*: any*/),
"filters": null, "filters": [
"orderBy"
],
"handle": "connection", "handle": "connection",
"key": "PeopleSelector_organization_peoples", "key": "PeopleSelector_organization_peoples",
"kind": "LinkedHandle", "kind": "LinkedHandle",
@@ -205,12 +215,12 @@ return {
] ]
}, },
"params": { "params": {
"cacheID": "cb5621c91f5548cd81c31d40b51ac894", "cacheID": "e9d10cdbee082ff5e5f311b547bbc73d",
"id": null, "id": null,
"metadata": {}, "metadata": {},
"name": "CreatePolicyPageQuery", "name": "CreatePolicyPageQuery",
"operationKind": "query", "operationKind": "query",
"text": "query CreatePolicyPageQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ...PeopleSelector_organization\n id\n }\n}\n\nfragment PeopleSelector_organization on Organization {\n id\n peoples(first: 100) {\n edges {\n node {\n id\n fullName\n primaryEmailAddress\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}\n" "text": "query CreatePolicyPageQuery(\n $organizationId: ID!\n) {\n organization: node(id: $organizationId) {\n __typename\n ...PeopleSelector_organization\n id\n }\n}\n\nfragment PeopleSelector_organization on Organization {\n id\n peoples(first: 100, orderBy: {direction: ASC, field: FULL_NAME}) {\n edges {\n node {\n id\n fullName\n primaryEmailAddress\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}\n"
} }
}; };
})(); })();

View File

@@ -1,5 +1,5 @@
/** /**
* @generated SignedSource<<ef6ba4dba570cb33d84ec05b27ea18c7>> * @generated SignedSource<<7976ca2ca06bb48d6dd6a30b1182ed02>>
* @lightSyntaxTransform * @lightSyntaxTransform
* @nogrep * @nogrep
*/ */
@@ -60,42 +60,54 @@ v5 = [
"variableName": "id" "variableName": "id"
} }
], ],
v6 = [ v6 = {
{ "kind": "Variable",
"kind": "Variable", "name": "after",
"name": "after", "variableName": "after"
"variableName": "after" },
},
{
"kind": "Variable",
"name": "before",
"variableName": "before"
},
{
"kind": "Variable",
"name": "first",
"variableName": "first"
},
{
"kind": "Variable",
"name": "last",
"variableName": "last"
}
],
v7 = { v7 = {
"kind": "Variable",
"name": "before",
"variableName": "before"
},
v8 = {
"kind": "Variable",
"name": "first",
"variableName": "first"
},
v9 = {
"kind": "Variable",
"name": "last",
"variableName": "last"
},
v10 = {
"alias": null, "alias": null,
"args": null, "args": null,
"kind": "ScalarField", "kind": "ScalarField",
"name": "__typename", "name": "__typename",
"storageKey": null "storageKey": null
}, },
v8 = { v11 = {
"alias": null, "alias": null,
"args": null, "args": null,
"kind": "ScalarField", "kind": "ScalarField",
"name": "id", "name": "id",
"storageKey": null "storageKey": null
}; },
v12 = [
(v6/*: any*/),
(v7/*: any*/),
(v8/*: any*/),
(v9/*: any*/),
{
"kind": "Literal",
"name": "orderBy",
"value": {
"direction": "ASC",
"field": "FULL_NAME"
}
}
];
return { return {
"fragment": { "fragment": {
"argumentDefinitions": [ "argumentDefinitions": [
@@ -118,7 +130,12 @@ return {
"plural": false, "plural": false,
"selections": [ "selections": [
{ {
"args": (v6/*: any*/), "args": [
(v6/*: any*/),
(v7/*: any*/),
(v8/*: any*/),
(v9/*: any*/)
],
"kind": "FragmentSpread", "kind": "FragmentSpread",
"name": "PeopleListPage_peoples" "name": "PeopleListPage_peoples"
} }
@@ -149,14 +166,14 @@ return {
"name": "node", "name": "node",
"plural": false, "plural": false,
"selections": [ "selections": [
(v7/*: any*/), (v10/*: any*/),
(v8/*: any*/), (v11/*: any*/),
{ {
"kind": "InlineFragment", "kind": "InlineFragment",
"selections": [ "selections": [
{ {
"alias": null, "alias": null,
"args": (v6/*: any*/), "args": (v12/*: any*/),
"concreteType": "PeopleConnection", "concreteType": "PeopleConnection",
"kind": "LinkedField", "kind": "LinkedField",
"name": "peoples", "name": "peoples",
@@ -178,7 +195,7 @@ return {
"name": "node", "name": "node",
"plural": false, "plural": false,
"selections": [ "selections": [
(v8/*: any*/), (v11/*: any*/),
{ {
"alias": null, "alias": null,
"args": null, "args": null,
@@ -221,7 +238,7 @@ return {
"name": "updatedAt", "name": "updatedAt",
"storageKey": null "storageKey": null
}, },
(v7/*: any*/) (v10/*: any*/)
], ],
"storageKey": null "storageKey": null
}, },
@@ -291,8 +308,10 @@ return {
}, },
{ {
"alias": null, "alias": null,
"args": (v6/*: any*/), "args": (v12/*: any*/),
"filters": null, "filters": [
"orderBy"
],
"handle": "connection", "handle": "connection",
"key": "PeopleListPage_peoples", "key": "PeopleListPage_peoples",
"kind": "LinkedHandle", "kind": "LinkedHandle",
@@ -308,16 +327,16 @@ return {
] ]
}, },
"params": { "params": {
"cacheID": "f20190ee884fd80e3f9157895667cb9e", "cacheID": "8a0df2b5a4b762e4b549f018a28add57",
"id": null, "id": null,
"metadata": {}, "metadata": {},
"name": "PeopleListPagePaginationQuery", "name": "PeopleListPagePaginationQuery",
"operationKind": "query", "operationKind": "query",
"text": "query PeopleListPagePaginationQuery(\n $after: CursorKey\n $before: CursorKey\n $first: Int\n $last: Int\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...PeopleListPage_peoples_pbnwq\n id\n }\n}\n\nfragment PeopleListPage_peoples_pbnwq on Organization {\n id\n peoples(first: $first, after: $after, last: $last, before: $before) {\n edges {\n node {\n id\n fullName\n primaryEmailAddress\n additionalEmailAddresses\n kind\n createdAt\n updatedAt\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n}\n" "text": "query PeopleListPagePaginationQuery(\n $after: CursorKey\n $before: CursorKey\n $first: Int\n $last: Int\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...PeopleListPage_peoples_pbnwq\n id\n }\n}\n\nfragment PeopleListPage_peoples_pbnwq on Organization {\n id\n peoples(first: $first, after: $after, last: $last, before: $before, orderBy: {direction: ASC, field: FULL_NAME}) {\n edges {\n node {\n id\n fullName\n primaryEmailAddress\n additionalEmailAddresses\n kind\n createdAt\n updatedAt\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n}\n"
} }
}; };
})(); })();
(node as any).hash = "3d7335649a48a459415be45828b7e265"; (node as any).hash = "8346075f50aa8845dded3a6bfa292c2b";
export default node; export default node;

View File

@@ -1,5 +1,5 @@
/** /**
* @generated SignedSource<<3ec4010fd3555afec49db0fa22557dd8>> * @generated SignedSource<<0e769620c683a087fc071d47649f3ed3>>
* @lightSyntaxTransform * @lightSyntaxTransform
* @nogrep * @nogrep
*/ */
@@ -60,42 +60,54 @@ v5 = [
"variableName": "organizationId" "variableName": "organizationId"
} }
], ],
v6 = [ v6 = {
{ "kind": "Variable",
"kind": "Variable", "name": "after",
"name": "after", "variableName": "after"
"variableName": "after" },
},
{
"kind": "Variable",
"name": "before",
"variableName": "before"
},
{
"kind": "Variable",
"name": "first",
"variableName": "first"
},
{
"kind": "Variable",
"name": "last",
"variableName": "last"
}
],
v7 = { v7 = {
"kind": "Variable",
"name": "before",
"variableName": "before"
},
v8 = {
"kind": "Variable",
"name": "first",
"variableName": "first"
},
v9 = {
"kind": "Variable",
"name": "last",
"variableName": "last"
},
v10 = {
"alias": null, "alias": null,
"args": null, "args": null,
"kind": "ScalarField", "kind": "ScalarField",
"name": "__typename", "name": "__typename",
"storageKey": null "storageKey": null
}, },
v8 = { v11 = {
"alias": null, "alias": null,
"args": null, "args": null,
"kind": "ScalarField", "kind": "ScalarField",
"name": "id", "name": "id",
"storageKey": null "storageKey": null
}; },
v12 = [
(v6/*: any*/),
(v7/*: any*/),
(v8/*: any*/),
(v9/*: any*/),
{
"kind": "Literal",
"name": "orderBy",
"value": {
"direction": "ASC",
"field": "FULL_NAME"
}
}
];
return { return {
"fragment": { "fragment": {
"argumentDefinitions": [ "argumentDefinitions": [
@@ -118,7 +130,12 @@ return {
"plural": false, "plural": false,
"selections": [ "selections": [
{ {
"args": (v6/*: any*/), "args": [
(v6/*: any*/),
(v7/*: any*/),
(v8/*: any*/),
(v9/*: any*/)
],
"kind": "FragmentSpread", "kind": "FragmentSpread",
"name": "PeopleListPage_peoples" "name": "PeopleListPage_peoples"
} }
@@ -149,14 +166,14 @@ return {
"name": "node", "name": "node",
"plural": false, "plural": false,
"selections": [ "selections": [
(v7/*: any*/), (v10/*: any*/),
(v8/*: any*/), (v11/*: any*/),
{ {
"kind": "InlineFragment", "kind": "InlineFragment",
"selections": [ "selections": [
{ {
"alias": null, "alias": null,
"args": (v6/*: any*/), "args": (v12/*: any*/),
"concreteType": "PeopleConnection", "concreteType": "PeopleConnection",
"kind": "LinkedField", "kind": "LinkedField",
"name": "peoples", "name": "peoples",
@@ -178,7 +195,7 @@ return {
"name": "node", "name": "node",
"plural": false, "plural": false,
"selections": [ "selections": [
(v8/*: any*/), (v11/*: any*/),
{ {
"alias": null, "alias": null,
"args": null, "args": null,
@@ -221,7 +238,7 @@ return {
"name": "updatedAt", "name": "updatedAt",
"storageKey": null "storageKey": null
}, },
(v7/*: any*/) (v10/*: any*/)
], ],
"storageKey": null "storageKey": null
}, },
@@ -291,8 +308,10 @@ return {
}, },
{ {
"alias": null, "alias": null,
"args": (v6/*: any*/), "args": (v12/*: any*/),
"filters": null, "filters": [
"orderBy"
],
"handle": "connection", "handle": "connection",
"key": "PeopleListPage_peoples", "key": "PeopleListPage_peoples",
"kind": "LinkedHandle", "kind": "LinkedHandle",
@@ -308,12 +327,12 @@ return {
] ]
}, },
"params": { "params": {
"cacheID": "ceb15735cc88f1993e35ac9a539a7ad0", "cacheID": "b289901944c533975a18564d5af6cd02",
"id": null, "id": null,
"metadata": {}, "metadata": {},
"name": "PeopleListPageQuery", "name": "PeopleListPageQuery",
"operationKind": "query", "operationKind": "query",
"text": "query PeopleListPageQuery(\n $organizationId: ID!\n $first: Int\n $after: CursorKey\n $last: Int\n $before: CursorKey\n) {\n organization: node(id: $organizationId) {\n __typename\n ...PeopleListPage_peoples_pbnwq\n id\n }\n}\n\nfragment PeopleListPage_peoples_pbnwq on Organization {\n id\n peoples(first: $first, after: $after, last: $last, before: $before) {\n edges {\n node {\n id\n fullName\n primaryEmailAddress\n additionalEmailAddresses\n kind\n createdAt\n updatedAt\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n}\n" "text": "query PeopleListPageQuery(\n $organizationId: ID!\n $first: Int\n $after: CursorKey\n $last: Int\n $before: CursorKey\n) {\n organization: node(id: $organizationId) {\n __typename\n ...PeopleListPage_peoples_pbnwq\n id\n }\n}\n\nfragment PeopleListPage_peoples_pbnwq on Organization {\n id\n peoples(first: $first, after: $after, last: $last, before: $before, orderBy: {direction: ASC, field: FULL_NAME}) {\n edges {\n node {\n id\n fullName\n primaryEmailAddress\n additionalEmailAddresses\n kind\n createdAt\n updatedAt\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n}\n"
} }
}; };
})(); })();

View File

@@ -1,5 +1,5 @@
/** /**
* @generated SignedSource<<876cec536b2a9c33f73956901b0b5b1b>> * @generated SignedSource<<c7666035d738d537e2695a319df441ee>>
* @lightSyntaxTransform * @lightSyntaxTransform
* @nogrep * @nogrep
*/ */
@@ -111,7 +111,16 @@ return {
(v1/*: any*/), (v1/*: any*/),
{ {
"alias": "peoples", "alias": "peoples",
"args": null, "args": [
{
"kind": "Literal",
"name": "orderBy",
"value": {
"direction": "ASC",
"field": "FULL_NAME"
}
}
],
"concreteType": "PeopleConnection", "concreteType": "PeopleConnection",
"kind": "LinkedField", "kind": "LinkedField",
"name": "__PeopleListPage_peoples_connection", "name": "__PeopleListPage_peoples_connection",
@@ -248,7 +257,7 @@ return {
] ]
} }
], ],
"storageKey": null "storageKey": "__PeopleListPage_peoples_connection(orderBy:{\"direction\":\"ASC\",\"field\":\"FULL_NAME\"})"
} }
], ],
"type": "Organization", "type": "Organization",
@@ -256,6 +265,6 @@ return {
}; };
})(); })();
(node as any).hash = "3d7335649a48a459415be45828b7e265"; (node as any).hash = "8346075f50aa8845dded3a6bfa292c2b";
export default node; export default node;

View File

@@ -1,5 +1,5 @@
/** /**
* @generated SignedSource<<7b013568b7e507b2394323b6cdc4d8ba>> * @generated SignedSource<<0ee0955e5b5136c90cd3230dd2f10163>>
* @lightSyntaxTransform * @lightSyntaxTransform
* @nogrep * @nogrep
*/ */
@@ -143,6 +143,14 @@ v8 = [
"kind": "Literal", "kind": "Literal",
"name": "first", "name": "first",
"value": 100 "value": 100
},
{
"kind": "Literal",
"name": "orderBy",
"value": {
"direction": "ASC",
"field": "FULL_NAME"
}
} }
]; ];
return { return {
@@ -297,12 +305,14 @@ return {
"storageKey": null "storageKey": null
} }
], ],
"storageKey": "peoples(first:100)" "storageKey": "peoples(first:100,orderBy:{\"direction\":\"ASC\",\"field\":\"FULL_NAME\"})"
}, },
{ {
"alias": null, "alias": null,
"args": (v8/*: any*/), "args": (v8/*: any*/),
"filters": null, "filters": [
"orderBy"
],
"handle": "connection", "handle": "connection",
"key": "PeopleSelector_organization_peoples", "key": "PeopleSelector_organization_peoples",
"kind": "LinkedHandle", "kind": "LinkedHandle",
@@ -318,12 +328,12 @@ return {
] ]
}, },
"params": { "params": {
"cacheID": "48cf7497849c327c91bff96c755645eb", "cacheID": "09418de2f0938515d2f5f67876a1cfaf",
"id": null, "id": null,
"metadata": {}, "metadata": {},
"name": "UpdatePolicyPageQuery", "name": "UpdatePolicyPageQuery",
"operationKind": "query", "operationKind": "query",
"text": "query UpdatePolicyPageQuery(\n $policyId: ID!\n $organizationId: ID!\n) {\n policy: node(id: $policyId) {\n __typename\n id\n ... on Policy {\n name\n content\n status\n version\n reviewDate\n owner {\n id\n fullName\n }\n }\n }\n organization: node(id: $organizationId) {\n __typename\n ...PeopleSelector_organization\n id\n }\n}\n\nfragment PeopleSelector_organization on Organization {\n id\n peoples(first: 100) {\n edges {\n node {\n id\n fullName\n primaryEmailAddress\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}\n" "text": "query UpdatePolicyPageQuery(\n $policyId: ID!\n $organizationId: ID!\n) {\n policy: node(id: $policyId) {\n __typename\n id\n ... on Policy {\n name\n content\n status\n version\n reviewDate\n owner {\n id\n fullName\n }\n }\n }\n organization: node(id: $organizationId) {\n __typename\n ...PeopleSelector_organization\n id\n }\n}\n\nfragment PeopleSelector_organization on Organization {\n id\n peoples(first: 100, orderBy: {direction: ASC, field: FULL_NAME}) {\n edges {\n node {\n id\n fullName\n primaryEmailAddress\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}\n"
} }
}; };
})(); })();

View File

@@ -101,7 +101,7 @@ func (r *mutationResolver) CreateVendor(ctx context.Context, input types.CreateV
return nil, fmt.Errorf("cannot create vendor: %w", err) return nil, fmt.Errorf("cannot create vendor: %w", err)
} }
return &types.CreateVendorPayload{ return &types.CreateVendorPayload{
VendorEdge: types.NewVendorEdge(vendor, coredata.VendorOrderFieldCreatedAt), VendorEdge: types.NewVendorEdge(vendor, coredata.VendorOrderFieldName),
}, nil }, nil
} }
@@ -162,7 +162,7 @@ func (r *mutationResolver) CreatePeople(ctx context.Context, input types.CreateP
} }
return &types.CreatePeoplePayload{ return &types.CreatePeoplePayload{
PeopleEdge: types.NewPeopleEdge(people, coredata.PeopleOrderFieldCreatedAt), PeopleEdge: types.NewPeopleEdge(people, coredata.PeopleOrderFieldFullName),
}, nil }, nil
} }