diff --git a/monitoring_ui/src/actions/ChaincodeActions.js b/monitoring_ui/src/actions/ChaincodeActions.js index e70f78b..a82b757 100644 --- a/monitoring_ui/src/actions/ChaincodeActions.js +++ b/monitoring_ui/src/actions/ChaincodeActions.js @@ -202,8 +202,6 @@ export function sendObcRequest(args, fn, requestType){ return function(dispatch, getState){ let state = getState(); - - console.log(args); //iterate through the args and delete any empty strings for(var propertyName in args){ @@ -239,12 +237,9 @@ export function sendObcRequest(args, fn, requestType){ body: JSON.stringify(requestPayload) } - console.log(config) - return fetch(state.configuration.urlRestRoot + '/devops/'+requestType.toLowerCase()+'/', config) .then(response => response.json()) .then(json => { - console.log(json); //TODO: Display error message and then do nothing if(json.Error){ diff --git a/monitoring_ui/src/actions/ConfigurationActions.js b/monitoring_ui/src/actions/ConfigurationActions.js index 20cbac6..cf59a07 100644 --- a/monitoring_ui/src/actions/ConfigurationActions.js +++ b/monitoring_ui/src/actions/ConfigurationActions.js @@ -75,7 +75,6 @@ export function setConfiguration(obcConfigObj){ //clear the existing interval timer let intervalId = state.configuration.chainHeightPollingIntervalId - console.log('Interval to clear: ' + intervalId) clearInterval(intervalId); //create a new interval and set it in the state diff --git a/monitoring_ui/src/containers/ConfigurationDialog.jsx b/monitoring_ui/src/containers/ConfigurationDialog.jsx index bac13b8..71ebdbe 100644 --- a/monitoring_ui/src/containers/ConfigurationDialog.jsx +++ b/monitoring_ui/src/containers/ConfigurationDialog.jsx @@ -33,7 +33,6 @@ import { actions, getField } from 'react-redux-form'; class ConfigurationDialog extends React.Component { render() { - console.log(this.props); return (
@@ -66,8 +65,6 @@ const mergeProps = (stateProps, dispatchProps, ownProps) => { const {showDialog, validChaincodeID, obcConfigurationForm} = stateProps; const {dispatch} = dispatchProps; - console.log(stateProps) - return{ ...stateProps, closeDialog: () => { diff --git a/monitoring_ui/src/containers/ResponsePayloadContainer.jsx b/monitoring_ui/src/containers/ResponsePayloadContainer.jsx index fdca5fa..155c8c4 100644 --- a/monitoring_ui/src/containers/ResponsePayloadContainer.jsx +++ b/monitoring_ui/src/containers/ResponsePayloadContainer.jsx @@ -45,8 +45,6 @@ class ResponsePayloadContainer extends React.Component{ //objToJsx should be an empty array readObjProps = (obj, objToJsx, indents) => { - console.log(Object.prototype.toString.call(obj)) - //If the object itself is a primitive and not an array, we just return that as a string. //for example {"OK":100} if(obj && Object.prototype.toString.call(obj) !== '[object Object]'){ @@ -63,7 +61,7 @@ class ResponsePayloadContainer extends React.Component{ } } - for(var propertyName in obj){ + for(var propertyName in obj){ if (obj.hasOwnProperty(propertyName)) { diff --git a/monitoring_ui/src/containers/forms/ChaincodeOpsForm.jsx b/monitoring_ui/src/containers/forms/ChaincodeOpsForm.jsx index de5fa8b..1f322e8 100644 --- a/monitoring_ui/src/containers/forms/ChaincodeOpsForm.jsx +++ b/monitoring_ui/src/containers/forms/ChaincodeOpsForm.jsx @@ -28,20 +28,7 @@ import MenuItem from 'material-ui/lib/menus/menu-item'; class ChaincodeOpsForm extends React.Component { - handleSubmit(chaincodeOpsForm) { - let { dispatch } = this.props; - - console.log(chaincodeOpsForm); - - //set the properties specific to obc in our configuration store - //dispatch(setConfiguration(obcConfiguration)) - - //close the dialog - //dispatch(setConfigDialogDisplay(false)) - } - handleChange(e,i,v) { - console.log(i); //dispatch an action to change the form model specifically for the form under a particular tab. this.props.dispatch(actions.change('chaincodeOpsForm.'+this.props.tab+'.selectedFn',i)); @@ -50,8 +37,6 @@ class ChaincodeOpsForm extends React.Component { render() { let { chaincodeOpsForm, tab } = this.props; - //console.log(chaincodeOpsForm); - return (
this.handleSubmit(chaincodeOpsForm)}> diff --git a/monitoring_ui/src/containers/forms/JsonSchemaForm.jsx b/monitoring_ui/src/containers/forms/JsonSchemaForm.jsx index 0556aa1..e619538 100644 --- a/monitoring_ui/src/containers/forms/JsonSchemaForm.jsx +++ b/monitoring_ui/src/containers/forms/JsonSchemaForm.jsx @@ -65,7 +65,6 @@ class JsonSchemaForm extends React.Component { } handleChange = (data) => { - console.log(data) //dispatch an action to change the form model specifically for the form under a particular tab. this.props.dispatch(actions.change('chaincodeOpsForm.'+this.props.currentTab+'.fns['+this.props.fnIndex+'].args',data.formData)); } @@ -113,7 +112,7 @@ function mapStateToProps(state) { if(state.chaincodeOpsForm[currentTab]){ fnIndex = state.chaincodeOpsForm[currentTab].selectedFn; fnName = state.chaincodeOpsForm[currentTab].fns[fnIndex].name; - selectedJsonSchema = state.chaincode.schema.API[fnName].properties.args.items; + selectedJsonSchema = state.chaincode.schema ? state.chaincode.schema.API[fnName].properties.args.items : null; //console.log(selectedJsonSchema); } diff --git a/monitoring_ui/src/containers/forms/ObcConfigurationForm.jsx b/monitoring_ui/src/containers/forms/ObcConfigurationForm.jsx index fdc3d07..66c3d42 100644 --- a/monitoring_ui/src/containers/forms/ObcConfigurationForm.jsx +++ b/monitoring_ui/src/containers/forms/ObcConfigurationForm.jsx @@ -37,12 +37,7 @@ class ObcConfigurationForm extends React.Component { handleSubmit(obcConfiguration) { let { dispatch } = this.props; - console.log(obcConfiguration); let idWithoutSpaces = obcConfiguration.chaincodeId.replace(/ /g,''); - - console.log(idWithoutSpaces); - console.log(idWithoutSpaces.length) - //submit if the length is correct if(idWithoutSpaces.length === 128){ this.props.dispatch(actions.change('obcConfiguration.chaincodeId',obcConfiguration.chaincodeId.replace(/ /g,''))); @@ -59,10 +54,7 @@ class ObcConfigurationForm extends React.Component { this.props.dispatch(actions.setValidity('obcConfiguration.chaincodeId', true)); }else{ //set an error message if the length is incorrect - //this.props.dispatch(actions.change('obcConfiguration.errors.chaincodeId',strings.CHAINCODE_LENGTH_ERROR(idWithoutSpaces.length))); this.props.dispatch(actions.setValidity('obcConfiguration.chaincodeId', false)); - //console.log(getField(obcConfiguration, 'chaincodeId').valid) - //this.props.dispatch(actions.validate('obcConfiguration.chaincodeId', false)) }