Remove debug logging, restore RevenueReportTable component.
This commit is contained in:
parent
98478653e4
commit
47703fa9b9
|
@ -17,7 +17,7 @@ import { charts } from './config';
|
|||
import getSelectedChart from 'lib/get-selected-chart';
|
||||
import ReportChart from 'analytics/components/report-chart';
|
||||
import ReportSummary from 'analytics/components/report-summary';
|
||||
// import RevenueReportTable from './table';
|
||||
import RevenueReportTable from './table';
|
||||
|
||||
export default class RevenueReport extends Component {
|
||||
render() {
|
||||
|
@ -39,7 +39,7 @@ export default class RevenueReport extends Component {
|
|||
query={ query }
|
||||
selectedChart={ getSelectedChart( query.chart, charts ) }
|
||||
/>
|
||||
{ /* <RevenueReportTable query={ query } /> */ }
|
||||
<RevenueReportTable query={ query } />
|
||||
</Fragment>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ import { __, _n } from '@wordpress/i18n';
|
|||
import { Component } from '@wordpress/element';
|
||||
import { format as formatDate } from '@wordpress/date';
|
||||
import { compose } from '@wordpress/compose';
|
||||
import { get, map } from 'lodash';
|
||||
import { get } from 'lodash';
|
||||
|
||||
/**
|
||||
* WooCommerce dependencies
|
||||
|
|
|
@ -30,7 +30,6 @@ const typeEndpointMap = {
|
|||
};
|
||||
|
||||
function read( resourceNames, fetch = apiFetch ) {
|
||||
console.log( 'stats read', resourceNames );
|
||||
const filteredNames = resourceNames.filter( name => {
|
||||
const prefix = getResourcePrefix( name );
|
||||
return Boolean( typeEndpointMap[ prefix ] );
|
||||
|
@ -40,7 +39,7 @@ function read( resourceNames, fetch = apiFetch ) {
|
|||
const prefix = getResourcePrefix( resourceName );
|
||||
const endpoint = typeEndpointMap[ prefix ];
|
||||
const query = getResourceIdentifier( resourceName );
|
||||
console.log( '::filtered:: read', resourceName, endpoint, query );
|
||||
|
||||
let apiPath = endpoint + stringifyQuery( query );
|
||||
|
||||
if ( swaggerEndpoints.indexOf( endpoint ) >= 0 ) {
|
||||
|
|
|
@ -17,7 +17,6 @@ const getReportStats = ( getResource, requireResource ) => (
|
|||
requirement = DEFAULT_REQUIREMENT
|
||||
) => {
|
||||
const resourceName = getResourceName( `report-stats-query-${ type }`, query );
|
||||
console.log( 'getReportStats', type, query, resourceName );
|
||||
const data = requireResource( requirement, resourceName ) || {};
|
||||
|
||||
return data;
|
||||
|
|
Loading…
Reference in New Issue