Skip to content

Commit

Permalink
Clean up console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahpw committed May 26, 2023
1 parent 2c573ed commit 48823dc
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
9 changes: 0 additions & 9 deletions quell-extension/src/pages/Panel/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,21 +90,12 @@ const App = () => {
body: JSON.stringify({
query: introspectionQuery,
costOptions: { maxDepth: 15, maxCost: 6000, ipRate: 22}
// operationName: "IntrospectionQuery",
// variables: null,
}),
})
.then((response) => response.json())
.then((data) => {
console.log('introspection query promise resolved');
console.log('data: ', data);
// console.log('data.data: ', data.data);
// const schema = buildClientSchema(data.data);
const schema = buildClientSchema(data.queryResponse.data);
setSchema(schema || 'No schema retreived');
console.log("schema: ",schema);
console.log("data: ", data );

})
.catch((err) => console.log(err));
}, [clientAddress, serverAddress, graphQLRoute]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ const FlowTable: React.FC<Props> = ({ query, elapsed }) => {
operation.selections.forEach((selection: { name: { value: any; }; selectionSet: OperationDefinitionNode | SelectionSetNode; }) => {
if ('name' in selection) {
let fieldName = parentName ? `${parentName}.${selection.name.value}` : selection.name.value;
// console.log('selection.name.value', selection.name.value);
// console.log('elapsedTime: ', elapsedTime);
// console.log('elapsedTime[selection.name.value]: ',elapsedTime[selection.name.value]);
// console.log('fieldName', fieldName);
if (elapsedTime[selection.name.value] && operationOrder.length > 1) {
const newName = fieldName + ` [resolved in ${elapsedTime[selection.name.value]}ms]`;
operationOrder.push(newName);
Expand All @@ -70,7 +66,6 @@ const FlowTable: React.FC<Props> = ({ query, elapsed }) => {
// Recursively generate the operation order for nested selection
if ('selectionSet' in selection) {
const nestedSelections = generateOperationOrder(selection.selectionSet, fieldName);
console.log('nestedSelections: ',nestedSelections);
operationOrder.push(...nestedSelections);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ const getEdge = (parent: FieldNode, child: SelectionNode, elapsed: any): FlowEle
};

const childNode = child as FieldNode;
// console.log(childNode.name.value);
if(elapsed[childNode.name.value]){
edgeProps.label = `${elapsed[childNode.name.value]}ms`;
}
Expand All @@ -131,7 +130,6 @@ const buildTree = (
const parent = getNode(node, depth, siblingIndex, numSiblings, numSiblings, parentPosition);
nodes.push(parent);

// console.log("Parent node: ", parent);
// the selectionSet means that it has child nodes
if (node.kind === 'Field' && node.selectionSet) {
const numChildren = node.selectionSet.selections.length;
Expand Down

0 comments on commit 48823dc

Please sign in to comment.