diff --git a/src/components/Navigation/Pages/PageStatus/PageStatus.js b/src/components/Navigation/Pages/PageStatus/PageStatus.js index 628a93657..fbc3946dc 100644 --- a/src/components/Navigation/Pages/PageStatus/PageStatus.js +++ b/src/components/Navigation/Pages/PageStatus/PageStatus.js @@ -2,18 +2,15 @@ // SPDX-License-Identifier: MIT import React, { Component } from 'react' -import { Grid, Row, Col, Table } from 'react-bootstrap' +import { Grid, Row, Table } from 'react-bootstrap' import ColorScheme from 'color-scheme' import { Bar, BarChart, CartesianGrid, - Cell, Legend, Line, LineChart, - Pie, - PieChart, ResponsiveContainer, Tooltip, XAxis, @@ -34,7 +31,6 @@ export default class PageStatus extends Component { this.state = { loaded: false, requestsPerDay: [], - definitionAvailability: [], crawledPerDay: [], recentlyCrawled: [] } @@ -43,7 +39,6 @@ export default class PageStatus extends Component { async componentDidMount() { const data = await Promise.all([ this.fetchRequestsPerDay(), - this.fetchDefinitionAvailability(), this.fetchCrawledPerDay(), this.fetchRecentlyCrawled(), this.fetchCrawlbreakdown(), @@ -52,11 +47,10 @@ export default class PageStatus extends Component { this.setState({ loaded: true, requestsPerDay: data[0], - definitionAvailability: data[1], - crawledPerDay: data[2], - recentlyCrawled: data[3], - crawlbreakdown: data[4], - toolsRanPerDay: data[5] + crawledPerDay: data[1], + recentlyCrawled: data[2], + crawlbreakdown: data[3], + toolsRanPerDay: data[4] }) } @@ -67,13 +61,6 @@ export default class PageStatus extends Component { }) } - async fetchDefinitionAvailability() { - const data = await getStatus('definitionavailability') - return Object.keys(data).map(name => { - return { name, value: data[name] } - }) - } - async fetchCrawledPerDay() { const data = await getStatus('processedperday') return data.map(entry => { @@ -121,14 +108,6 @@ export default class PageStatus extends Component { {this.renderRequestsPerDay()}
- - -

Definition availability

- {this.renderDefinitionAvailabilityTable()} - - {this.renderDefinitionAvailabilityChart()} -
-

Components processed / day

{this.renderComponentsProcessed()} @@ -167,57 +146,6 @@ export default class PageStatus extends Component { ) } - renderDefinitionAvailabilityTable() { - return ( - - - {this.state.definitionAvailability.map((entry, index) => { - return ( - - - - - ) - })} - -
- - -

{entry.name}

-
- ) - } - - renderDefinitionAvailabilityChart() { - return ( - - - - {this.state.definitionAvailability.map((entry, index) => ( - - ))} - - - - ) - } - renderComponentsProcessed() { return (