• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

CBIIT / bento-c3dc-frontend / 22312045319

09 Feb 2026 03:26PM UTC coverage: 0.167%. First build
22312045319

push

github

web-flow
Merge pull request #490 from CBIIT/1.8.0

1.8.0 Release

6 of 3680 branches covered (0.16%)

Branch coverage included in aggregate %.

0 of 925 new or added lines in 39 files covered. (0.0%)

10 of 5876 relevant lines covered (0.17%)

0.09 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/pages/inventory/filterQueryBar/QueryBarUtils.js
NEW
1
import { CCDI_INTEROP_SERVICE_URL } from '../../../bento/cohortModalData';
×
2

NEW
3
export const generateUrl = async (queryStr, root, setUrlCallback) => {
×
NEW
4
    try {
×
NEW
5
      const graphqlQuery = `
×
6
        query storeManifest($manifestString: String!, $type: String!) {
7
          storeManifest(manifest: $manifestString, type: $type)
8
        }
9
      `;
10

NEW
11
      const response = await fetch(CCDI_INTEROP_SERVICE_URL, {
×
12
        method: 'POST',
13
        headers: {
14
          'Content-Type': 'application/json',
15
        },
16
        body: JSON.stringify({
17
          query: graphqlQuery,
18
          variables: {
19
            manifestString: JSON.stringify({ key: encodeURIComponent(queryStr) }),
20
            type: 'json',
21
          },
22
        }),
23
      });
24

NEW
25
      if (!response.ok) {
×
NEW
26
        throw new Error(`HTTP error! status: ${response.status}`);
×
27
      }
28

NEW
29
      const result = await response.json();
×
30

NEW
31
      if (result.errors) {
×
NEW
32
        const errorMessage = (result.errors[0] && result.errors[0].message) || 'Unknown error';
×
NEW
33
        throw new Error(`CCDI Interop Service Error: ${errorMessage}`);
×
34
      }
35

36
      // Process and open the URL
NEW
37
      const processedUrl = (result.data && result.data.storeManifest) || null;
×
NEW
38
      if (!processedUrl) {
×
NEW
39
        throw new Error('No valid URL returned from interop service');
×
40
      }
41

NEW
42
      setUrlCallback(root.slice(0, -1).concat(`?filterQuery=${processedUrl}`));
×
43
    } catch (error) {
NEW
44
      console.log('Error generating URL:', error);
×
45
    }
NEW
46
  };
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc