Use datum filter everywhere

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2025-08-29 16:03:33 +02:00
parent 2c237b5bfa
commit ad56142798
9 changed files with 27 additions and 18 deletions

View File

@@ -54,7 +54,7 @@ const paginatedDataFragment = graphql`
before: $before
orderBy: $order
filter: { snapshotId: $snapshotId }
) @connection(key: "DataPage_data") {
) @connection(key: "DataPage_data", filters: ["filter"]) {
__id
edges {
node {

View File

@@ -59,7 +59,11 @@ export default function DatumDetailsPage(props: Props) {
const deleteDatum = useDeleteDatum(
datumEntry,
ConnectionHandler.getConnectionID(organizationId, "DataPage_data"),
ConnectionHandler.getConnectionID(
organizationId,
"DataPage_data",
{ filter: { snapshotId: snapshotId || null } }
),
);
const vendors = datumEntry?.vendors?.edges.map(edge => edge.node) ?? [];

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<8364d9457b59a3ef50b508ab55991638>>
* @generated SignedSource<<2000fd2ccfcf4b832c51ff71b0326fef>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -394,7 +394,6 @@ return {
"alias": null,
"args": (v15/*: any*/),
"filters": [
"orderBy",
"filter"
],
"handle": "connection",
@@ -422,6 +421,6 @@ return {
};
})();
(node as any).hash = "a60d9b34a83df89eb59ffcd359903ce8";
(node as any).hash = "5d3069a0d856613ccb854033b5b1f14e";
export default node;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<17f6d8607b6d2a1b575e1251019b8375>>
* @generated SignedSource<<9619ee8f74aea67be931f8c40a8815c8>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -143,11 +143,6 @@ return {
],
"kind": "ObjectValue",
"name": "filter"
},
{
"kind": "Variable",
"name": "orderBy",
"variableName": "order"
}
],
"concreteType": "DatumConnection",
@@ -334,6 +329,6 @@ return {
};
})();
(node as any).hash = "a60d9b34a83df89eb59ffcd359903ce8";
(node as any).hash = "5d3069a0d856613ccb854033b5b1f14e";
export default node;