Skip to content

Commit

Permalink
[backend] some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lndrtrbn committed Mar 8, 2024
1 parent b1758b7 commit f0606a2
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,6 @@ const DashboardComponent = ({ workspace, noToolbar }) => {
/>
);
case 'donut':
console.log(widget);
return (
<StixRelationshipsDonut
startDate={startDate}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,16 @@ export const PRIVATE_DASHBOARD_MANIFEST = {
}
],
filterGroups: []
},
dynamicFrom: {
mode: 'and',
filters: [{
key: ['description'],
values: ['widget tests'],
operator: 'search',
mode: 'or'
}],
filterGroups: []
}
}
],
Expand Down Expand Up @@ -312,6 +322,16 @@ export const PRIVATE_DASHBOARD_MANIFEST = {
],
filterGroups: []
},
dynamicFrom: {
mode: 'and',
filters: [{
key: ['description'],
values: ['widget tests'],
operator: 'search',
mode: 'or'
}],
filterGroups: []
}
}
],
parameters: {
Expand Down Expand Up @@ -393,6 +413,16 @@ export const PRIVATE_DASHBOARD_MANIFEST = {
}
],
filterGroups: []
},
dynamicFrom: {
mode: 'and',
filters: [{
key: ['description'],
values: ['widget tests'],
operator: 'search',
mode: 'or'
}],
filterGroups: []
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,6 @@ describe('PublicDashboard resolver', () => {
},
});
const { publicStixRelationshipsMultiTimeSeries } = data;
console.log(publicStixRelationshipsMultiTimeSeries);
const attacksData = publicStixRelationshipsMultiTimeSeries[0].data;
expect(attacksData.length).toEqual(1);
expect(attacksData[0].value).toEqual(4);
Expand Down Expand Up @@ -744,7 +743,6 @@ describe('PublicDashboard resolver', () => {
},
});
const { publicStixRelationships } = data;
console.log(publicStixRelationships);
expect(publicStixRelationships.edges[0].node.relationship_type).toEqual('targets');
expect(publicStixRelationships.pageInfo.globalCount).toEqual(4);
});
Expand Down

0 comments on commit f0606a2

Please sign in to comment.