diff --git a/frontend/app/components/BugFinder/CustomFilters/FilterModal.js b/frontend/app/components/BugFinder/CustomFilters/FilterModal.js index c5ab474be..5bd536de5 100644 --- a/frontend/app/components/BugFinder/CustomFilters/FilterModal.js +++ b/frontend/app/components/BugFinder/CustomFilters/FilterModal.js @@ -161,8 +161,6 @@ export default class FilterModal extends React.PureComponent { const staticFilters = preloadedFilters .filter(({ value, actualValue }) => !this.props.loading && this.test(actualValue || value)) - // console.log('filteredList', filteredList); - return (!displayed ? null :
{ loading && diff --git a/frontend/app/components/Dashboard/NewDashboard.tsx b/frontend/app/components/Dashboard/NewDashboard.tsx index 6b77ff830..93f3cda8e 100644 --- a/frontend/app/components/Dashboard/NewDashboard.tsx +++ b/frontend/app/components/Dashboard/NewDashboard.tsx @@ -18,15 +18,7 @@ function NewDashboard(props) { dashboardStore.fetchList().then((resp) => { if (parseInt(dashboardId) > 0) { dashboardStore.selectDashboardById(dashboardId); - } - // else { - // dashboardStore.selectDefaultDashboard().then(({ dashboardId }) => { - // console.log('dashboardId', dashboardId) - // // if (!history.location.pathname.includes('/metrics')) { - // // history.push(withSiteId(dashboardSelected(dashboardId), siteId)); - // // } - // }); - // } + } }); }, [siteId]); diff --git a/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/CustomMetricTable/CustomMetricTable.tsx b/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/CustomMetricTable/CustomMetricTable.tsx index f83f48466..a43a35fc8 100644 --- a/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/CustomMetricTable/CustomMetricTable.tsx +++ b/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/CustomMetricTable/CustomMetricTable.tsx @@ -33,7 +33,6 @@ function CustomMetriTable(props: Props) { const rows = List(data.values); const onClickHandler = (event, data) => { - console.log('onClickHandler', data); const filters = Array(); let filter = { ...filtersMap[metric.metricOf] } filter.value = [data.name] diff --git a/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/CallWithErrors/CallWithErrors.tsx b/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/CallWithErrors/CallWithErrors.tsx index 333fca287..4e5d0f637 100644 --- a/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/CallWithErrors/CallWithErrors.tsx +++ b/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/CallWithErrors/CallWithErrors.tsx @@ -52,8 +52,6 @@ function CallWithErrors(props: Props) { const test = (value = '', serach) => getRE(serach, 'i').test(value); const _data = search ? metric.data.chart.filter(i => test(i.urlHostpath, search)) : metric.data.chart.images; - console.log('data', metric.data) - const write = ({ target: { name, value } }) => { setSearch(value) }; diff --git a/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/DomBuildingTime/DomBuildingTime.tsx b/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/DomBuildingTime/DomBuildingTime.tsx index a551671dc..11c71c34d 100644 --- a/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/DomBuildingTime/DomBuildingTime.tsx +++ b/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/DomBuildingTime/DomBuildingTime.tsx @@ -26,7 +26,7 @@ function DomBuildingTime(props: Props) { const onSelect = (params) => { // const _params = { density: 70 } - console.log('params', params) // TODO reload the data with new params; + // TODO reload the data with new params; // this.props.fetchWidget(WIDGET_KEY, dashbaordStore.period, props.platform, { ..._params, url: params.value }) } diff --git a/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/ResourceLoadingTime/ResourceLoadingTime.tsx b/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/ResourceLoadingTime/ResourceLoadingTime.tsx index d33c96827..63d63d207 100644 --- a/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/ResourceLoadingTime/ResourceLoadingTime.tsx +++ b/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/ResourceLoadingTime/ResourceLoadingTime.tsx @@ -38,7 +38,7 @@ function ResourceLoadingTime(props: Props) { const onSelect = (params) => { // const _params = { density: 70 } setSutoCompleteSelected(params.value); - console.log('params', params) // TODO reload the data with new params; + // TODO reload the data with new params; // this.props.fetchWidget(WIDGET_KEY, dashbaordStore.period, props.platform, { ..._params, url: params.value }) } diff --git a/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/ResponseTime/ResponseTime.tsx b/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/ResponseTime/ResponseTime.tsx index a9ef6dcac..e1af351ee 100644 --- a/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/ResponseTime/ResponseTime.tsx +++ b/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/ResponseTime/ResponseTime.tsx @@ -27,7 +27,7 @@ function ResponseTime(props: Props) { const onSelect = (params) => { // const _params = { density: 70 } - console.log('params', params) // TODO reload the data with new params; + // TODO reload the data with new params; // this.props.fetchWidget(WIDGET_KEY, dashbaordStore.period, props.platform, { ..._params, url: params.value }) } diff --git a/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/SessionsImpactedBySlowRequests/SessionsImpactedBySlowRequests.tsx b/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/SessionsImpactedBySlowRequests/SessionsImpactedBySlowRequests.tsx index ee227854b..70202ea56 100644 --- a/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/SessionsImpactedBySlowRequests/SessionsImpactedBySlowRequests.tsx +++ b/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/SessionsImpactedBySlowRequests/SessionsImpactedBySlowRequests.tsx @@ -16,8 +16,6 @@ function SessionsImpactedBySlowRequests(props: Props) { const { data, metric } = props; const gradientDef = Styles.gradientDef(); - console.log('SessionsImpactedBySlowRequests', metric.data) - return ( { - const series: any[] = []; - data.forEach(item => { - const d = [threeLetter[item.userCountry], Math.round(item.avg)] - series.push(d) - }) - - return series; - } - - useEffect(() => { - if (wrapper.current && !map && metric.data.chart.length > 0) { - const dataset = getDataset(); - map = new DataMap({ - element: wrapper.current, - fills: { defaultFill: '#E8E8E8' }, - data: dataset, - // responsive: true, - // height: null, //if not null, datamaps will grab the height of 'element' - // width: null, //if not null, datamaps will grab the width of 'element' - geographyConfig: { - borderColor: '#FFFFFF', - borderWidth: 0.5, - highlightBorderWidth: 1, - popupOnHover: true, - // don't change color on mouse hover - highlightFillColor: function(geo) { - return '#999999'; - // return geo['fillColor'] || '#F5F5F5'; - }, - // only change border - highlightBorderColor: '#B7B7B7', - // show desired information in tooltip - popupTemplate: function(geo, data) { - // don't show tooltip if country don't present in dataset - if (!data) { return ; } - // tooltip content - return ['
', - '', geo.properties.name, '', - 'Avg: ', numberWithCommas(data.numberOfThings), '', - '
'].join(''); - } - } - }); - } - }, []) - - useEffect(() => { - if (map && map.updateChoropleth) { - const series = getSeries(metric.data.chart); - // console.log('series', series) - // map.updateChoropleth(series, {reset: true}); - } - }, []) - - const getDataset = () => { - const { metric } = props; - const colors = Styles.colors; - - var dataset = {}; - const series = getSeries(metric.data.chart); - var onlyValues = series.map(function(obj){ return obj[1]; }); - const paletteScale = colorScale(onlyValues, [...colors].reverse()); - - // fill dataset in appropriate format - series.forEach(function(item){ - var iso = item[0], value = item[1]; - dataset[iso] = { numberOfThings: value, fillColor: paletteScale(value) }; - }); - return dataset; - } - - return ( - -
- -
- -
- - ); -} - -export default observer(SpeedIndexByLocation); \ No newline at end of file diff --git a/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/TimeToRender/TimeToRender.tsx b/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/TimeToRender/TimeToRender.tsx index e0da69b8b..45167c9b1 100644 --- a/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/TimeToRender/TimeToRender.tsx +++ b/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/TimeToRender/TimeToRender.tsx @@ -27,7 +27,7 @@ function TimeToRender(props: Props) { const onSelect = (params) => { // const _params = { density: 70 } - console.log('params', params) // TODO reload the data with new params; + // TODO reload the data with new params; // this.props.fetchWidget(WIDGET_KEY, dashbaordStore.period, props.platform, { ..._params, url: params.value }) } diff --git a/frontend/app/components/Dashboard/components/WidgetForm/WidgetForm.tsx b/frontend/app/components/Dashboard/components/WidgetForm/WidgetForm.tsx index 81d2ce430..13507960d 100644 --- a/frontend/app/components/Dashboard/components/WidgetForm/WidgetForm.tsx +++ b/frontend/app/components/Dashboard/components/WidgetForm/WidgetForm.tsx @@ -80,7 +80,6 @@ function WidgetForm(props: Props) { } const onObserveChanges = () => { - console.log('observe changes'); // metricStore.fetchMetricChartData(metric); } diff --git a/frontend/app/components/Dashboard/components/WidgetSessions/WidgetSessions.tsx b/frontend/app/components/Dashboard/components/WidgetSessions/WidgetSessions.tsx index 54982ba9c..9a514dd07 100644 --- a/frontend/app/components/Dashboard/components/WidgetSessions/WidgetSessions.tsx +++ b/frontend/app/components/Dashboard/components/WidgetSessions/WidgetSessions.tsx @@ -39,7 +39,6 @@ function WidgetSessions(props: Props) { useEffect(() => { widget.fetchSessions({ ...filter, filter: widget.toJsonDrilldown()}).then(res => { - console.log('res', res) setData(res); }); }, [filter.startTimestamp, filter.endTimestamp, filter.filters]); diff --git a/frontend/app/components/Session_/Performance/Performance.js b/frontend/app/components/Session_/Performance/Performance.js index 78aea13ce..3310970b3 100644 --- a/frontend/app/components/Session_/Performance/Performance.js +++ b/frontend/app/components/Session_/Performance/Performance.js @@ -129,7 +129,6 @@ const NodesCountTooltip = ({ active, payload} ) => { const TICKS_COUNT = 10; function generateTicks(data: Array): Array { if (data.length === 0) return []; - console.log(data, data[0]) const minTime = data[0].time; const maxTime = data[data.length-1].time; diff --git a/frontend/app/components/Session_/Player/Player.js b/frontend/app/components/Session_/Player/Player.js index 27875df52..7391c8992 100644 --- a/frontend/app/components/Session_/Player/Player.js +++ b/frontend/app/components/Session_/Player/Player.js @@ -49,8 +49,6 @@ export default class Player extends React.PureComponent { closedLive, } = this.props; - console.log('PlayerControls', PlayerControls) - return (
diff --git a/frontend/app/duck/sessions.js b/frontend/app/duck/sessions.js index f8dc4020c..47b960bc2 100644 --- a/frontend/app/duck/sessions.js +++ b/frontend/app/duck/sessions.js @@ -298,7 +298,6 @@ export function fetchErrorStackList(sessionId, errorId) { } export const fetch = (sessionId, isLive = false) => (dispatch, getState) => { - console.log('isLive', isLive) dispatch({ types: FETCH.toArray(), call: client => client.get(isLive ? `/assist/sessions/${ sessionId }` : `/sessions2/${ sessionId }`), diff --git a/frontend/app/mstore/metricStore.ts b/frontend/app/mstore/metricStore.ts index 158644f68..89cf153a0 100644 --- a/frontend/app/mstore/metricStore.ts +++ b/frontend/app/mstore/metricStore.ts @@ -76,7 +76,6 @@ export default class MetricStore implements IMetricStore { reaction( () => this.metricsSearch, (metricsSearch) => { // TODO filter the list for View - console.log('metricsSearch', metricsSearch) this.page = 1 this.paginatedList } diff --git a/frontend/app/mstore/types/filterItem.ts b/frontend/app/mstore/types/filterItem.ts index 7b7e4999a..64fe46a6d 100644 --- a/frontend/app/mstore/types/filterItem.ts +++ b/frontend/app/mstore/types/filterItem.ts @@ -36,7 +36,6 @@ export default class FilterItem { } fromJson(json, mainFilterKey = '') { - console.log('fromJson', json.type) let _filter = filtersMap[json.type] || {} if (mainFilterKey) { const mainFilter = filtersMap[mainFilterKey]; diff --git a/frontend/app/mstore/types/widget.ts b/frontend/app/mstore/types/widget.ts index adff4e390..e67fdf4ed 100644 --- a/frontend/app/mstore/types/widget.ts +++ b/frontend/app/mstore/types/widget.ts @@ -200,7 +200,6 @@ export default class Widget implements IWidget { fetchSessions(filter: any): Promise { this.sessionsLoading = true return new Promise((resolve, reject) => { - console.log('fetching sessions', filter) metricService.fetchSessions(this.metricId, filter).then(response => { resolve(response.map(cat => { return {