Skip to content

fix: add gql request name support #6729

fix: add gql request name support

fix: add gql request name support #6729

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / Unit Test Results succeeded Sep 21, 2023 in 0s

6 fail, 1 117 pass in 49m 59s

       4 files     310 suites   49m 59s ⏱️
1 123 tests 1 117 ✔️ 0 💤 6 ❌
1 133 runs  1 127 ✔️ 0 💤 6 ❌

Results for commit 100d43c.

Annotations

Check warning on line 0 in GraphQl Request Service collects and fires different requests separately. Apollo batches them

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

GraphQl Request Service collects and fires different requests separately. Apollo batches them (GraphQl Request Service collects and fires different requests separately. Apollo batches them) failed

artifacts/Unit Test Results (chunk 0)/hypertrace-ui/junit.xml
Raw output
Error: expect(jest.fn()).toHaveBeenNthCalledWith(n, ...expected)

n: 1
Expected: {"errorPolicy": "all", "fetchPolicy": "cache-first", "query": {"definitions": [{"directives": [], "kind": "OperationDefinition", "name": undefined, "operation": "query", "selectionSet": {"kind": "SelectionSet", "selections": [{"alias": undefined, "arguments": [], "directives": [], "kind": "Field", "name": {"kind": "Name", "value": "testone"}, "selectionSet": {"kind": "SelectionSet", "selections": [{"alias": undefined, "arguments": [Array], "directives": [Array], "kind": "Field", "name": [Object], "selectionSet": undefined}, {"alias": undefined, "arguments": [Array], "directives": [Array], "kind": "Field", "name": [Object], "selectionSet": undefined}]}}]}, "variableDefinitions": []}], "kind": "Document", "loc": {"end": 24, "start": 0}}}
Received
->     1
        @@ -53,10 +53,10 @@
                  "variableDefinitions": Array [],
                },
              ],
              "kind": "Document",
              "loc": Object {
        -       "end": 24,
        +       "end": 31,
                "start": 0,
              },
            },
          },
       2: {"errorPolicy": "all", "fetchPolicy": "cache-first", "query": {"definitions": [{"directives": [], "kind": "OperationDefinition", "name": undefined, "operation": "query", "selectionSet": {"kind": "SelectionSet", "selections": [{"alias": undefined, "arguments": [], "directives": [], "kind": "Field", "name": {"kind": "Name", "value": "testtwo"}, "selectionSet": {"kind": "SelectionSet", "selections": [{"alias": undefined, "arguments": [Array], "directives": [Array], "kind": "Field", "name": [Object], "selectionSet": undefined}, {"alias": undefined, "arguments": [Array], "directives": [Array], "kind": "Field", "name": [Object], "selectionSet": undefined}]}}]}, "variableDefinitions": []}], "kind": "Document", "loc": {"end": 31, "start": 0}}}

Number of calls: 2
    at /home/runner/work/hypertrace-ui/hypertrace-ui/projects/graphql-client/src/graphql-request.service.test.ts:180:25
    at fakeAsyncFn (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:5637:34)
    at _ZoneDelegate.Object.<anonymous>._ZoneDelegate.invoke (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:409:30)
    at ProxyZoneSpec.Object.<anonymous>.ProxyZoneSpec.onInvoke (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:3830:43)
    at _ZoneDelegate.Object.<anonymous>._ZoneDelegate.invoke (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:408:56)
    at Zone.Object.<anonymous>.Zone.run (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:169:47)
    at Object.wrappedFunc (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:4330:34)
    at Promise.then.completed (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/utils.js:333:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/utils.js:259:10)
    at _callCircusTest (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:277:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:209:3)
    at _runTestsForDescribeBlock (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:97:9)
    at _runTestsForDescribeBlock (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:91:9)
    at run (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:31:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:135:21)

Check warning on line 0 in GraphQl Request Service only fires request for unique queries

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

GraphQl Request Service only fires request for unique queries (GraphQl Request Service only fires request for unique queries) failed

artifacts/Unit Test Results (chunk 0)/hypertrace-ui/junit.xml
Raw output
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

- Expected
+ Received

@@ -53,10 +53,10 @@
          "variableDefinitions": Array [],
        },
      ],
      "kind": "Document",
      "loc": Object {
-       "end": 24,
+       "end": 31,
        "start": 0,
      },
    },
  },

Number of calls: 1
    at /home/runner/work/hypertrace-ui/hypertrace-ui/projects/graphql-client/src/graphql-request.service.test.ts:209:25
    at fakeAsyncFn (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:5637:34)
    at _ZoneDelegate.Object.<anonymous>._ZoneDelegate.invoke (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:409:30)
    at ProxyZoneSpec.Object.<anonymous>.ProxyZoneSpec.onInvoke (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:3830:43)
    at _ZoneDelegate.Object.<anonymous>._ZoneDelegate.invoke (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:408:56)
    at Zone.Object.<anonymous>.Zone.run (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:169:47)
    at Object.wrappedFunc (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:4330:34)
    at Promise.then.completed (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/utils.js:333:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/utils.js:259:10)
    at _callCircusTest (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:277:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:209:3)
    at _runTestsForDescribeBlock (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:97:9)
    at _runTestsForDescribeBlock (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:91:9)
    at run (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:31:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:135:21)

Check warning on line 0 in GraphQl Request Service merges requests together when possible

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

GraphQl Request Service merges requests together when possible (GraphQl Request Service merges requests together when possible) failed

artifacts/Unit Test Results (chunk 0)/hypertrace-ui/junit.xml
Raw output
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

- Expected
+ Received

@@ -64,10 +64,10 @@
          "variableDefinitions": Array [],
        },
      ],
      "kind": "Document",
      "loc": Object {
-       "end": 31,
+       "end": 38,
        "start": 0,
      },
    },
  },

Number of calls: 1
    at /home/runner/work/hypertrace-ui/hypertrace-ui/projects/graphql-client/src/graphql-request.service.test.ts:228:25
    at fakeAsyncFn (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:5637:34)
    at _ZoneDelegate.Object.<anonymous>._ZoneDelegate.invoke (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:409:30)
    at ProxyZoneSpec.Object.<anonymous>.ProxyZoneSpec.onInvoke (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:3830:43)
    at _ZoneDelegate.Object.<anonymous>._ZoneDelegate.invoke (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:408:56)
    at Zone.Object.<anonymous>.Zone.run (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:169:47)
    at Object.wrappedFunc (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:4330:34)
    at Promise.then.completed (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/utils.js:333:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/utils.js:259:10)
    at _callCircusTest (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:277:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:209:3)
    at _runTestsForDescribeBlock (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:97:9)
    at _runTestsForDescribeBlock (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:91:9)
    at run (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:31:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:135:21)

Check warning on line 0 in GraphQl Request Service supports custom request options from query request handlers

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

GraphQl Request Service supports custom request options from query request handlers (GraphQl Request Service supports custom request options from query request handlers) failed

artifacts/Unit Test Results (chunk 0)/hypertrace-ui/junit.xml
Raw output
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)

- Expected
+ Received

@@ -53,10 +53,10 @@
          "variableDefinitions": Array [],
        },
      ],
      "kind": "Document",
      "loc": Object {
-       "end": 24,
+       "end": 31,
        "start": 0,
      },
    },
  },

Number of calls: 1
    at /home/runner/work/hypertrace-ui/hypertrace-ui/projects/graphql-client/src/graphql-request.service.test.ts:245:25
    at fakeAsyncFn (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:5637:34)
    at _ZoneDelegate.Object.<anonymous>._ZoneDelegate.invoke (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:409:30)
    at ProxyZoneSpec.Object.<anonymous>.ProxyZoneSpec.onInvoke (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:3830:43)
    at _ZoneDelegate.Object.<anonymous>._ZoneDelegate.invoke (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:408:56)
    at Zone.Object.<anonymous>.Zone.run (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:169:47)
    at Object.wrappedFunc (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:4330:34)
    at Promise.then.completed (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/utils.js:333:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/utils.js:259:10)
    at _callCircusTest (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:277:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:209:3)
    at _runTestsForDescribeBlock (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:97:9)
    at _runTestsForDescribeBlock (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:91:9)
    at run (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:31:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:135:21)

Check warning on line 0 in GraphQl Request Service supports custom request options on request

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

GraphQl Request Service supports custom request options on request (GraphQl Request Service supports custom request options on request) failed

artifacts/Unit Test Results (chunk 0)/hypertrace-ui/junit.xml
Raw output
Error: expect(jest.fn()).toHaveBeenNthCalledWith(n, ...expected)

n: 1
- Expected
+ Received

@@ -53,10 +53,10 @@
          "variableDefinitions": Array [],
        },
      ],
      "kind": "Document",
      "loc": Object {
-       "end": 24,
+       "end": 31,
        "start": 0,
      },
    },
  },

Number of calls: 1
    at /home/runner/work/hypertrace-ui/hypertrace-ui/projects/graphql-client/src/graphql-request.service.test.ts:282:25
    at fakeAsyncFn (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:5637:34)
    at _ZoneDelegate.Object.<anonymous>._ZoneDelegate.invoke (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:409:30)
    at ProxyZoneSpec.Object.<anonymous>.ProxyZoneSpec.onInvoke (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:3830:43)
    at _ZoneDelegate.Object.<anonymous>._ZoneDelegate.invoke (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:408:56)
    at Zone.Object.<anonymous>.Zone.run (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:169:47)
    at Object.wrappedFunc (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:4330:34)
    at Promise.then.completed (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/utils.js:333:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/utils.js:259:10)
    at _callCircusTest (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:277:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:209:3)
    at _runTestsForDescribeBlock (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:97:9)
    at _runTestsForDescribeBlock (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:91:9)
    at run (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:31:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:135:21)

Check warning on line 0 in GraphQl Request Service resubscribing to a debounced query after execution triggers a debounced new request

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

GraphQl Request Service resubscribing to a debounced query after execution triggers a debounced new request (GraphQl Request Service resubscribing to a debounced query after execution triggers a debounced new request) failed

artifacts/Unit Test Results (chunk 0)/hypertrace-ui/junit.xml
Raw output
Error: expect(jest.fn()).toHaveBeenNthCalledWith(n, ...expected)

n: 1
- Expected
+ Received

@@ -53,10 +53,10 @@
          "variableDefinitions": Array [],
        },
      ],
      "kind": "Document",
      "loc": Object {
-       "end": 24,
+       "end": 31,
        "start": 0,
      },
    },
  },

Number of calls: 1
    at /home/runner/work/hypertrace-ui/hypertrace-ui/projects/graphql-client/src/graphql-request.service.test.ts:310:25
    at fakeAsyncFn (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:5637:34)
    at _ZoneDelegate.Object.<anonymous>._ZoneDelegate.invoke (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:409:30)
    at ProxyZoneSpec.Object.<anonymous>.ProxyZoneSpec.onInvoke (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:3830:43)
    at _ZoneDelegate.Object.<anonymous>._ZoneDelegate.invoke (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:408:56)
    at Zone.Object.<anonymous>.Zone.run (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:169:47)
    at Object.wrappedFunc (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/zone.js/bundles/zone-testing-bundle.umd.js:4330:34)
    at Promise.then.completed (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/utils.js:333:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/utils.js:259:10)
    at _callCircusTest (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:277:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:209:3)
    at _runTestsForDescribeBlock (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:97:9)
    at _runTestsForDescribeBlock (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:91:9)
    at run (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/run.js:31:3)
    at runAndTransformResultsToJestFormat (/home/runner/work/hypertrace-ui/hypertrace-ui/node_modules/@jest/core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:135:21)