Skip to content

Commit

Permalink
Revert dashboard related changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
notoraptor committed Dec 8, 2022
1 parent 61b89a2 commit bb042f5
Show file tree
Hide file tree
Showing 11 changed files with 91 additions and 493 deletions.
172 changes: 0 additions & 172 deletions .github/workflows/orion/add_uncompleted_experiment.py

This file was deleted.

Binary file not shown.
5 changes: 0 additions & 5 deletions dashboard/src/src/__tests__/experiments.databasePage.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,6 @@ test('Test if experiment trials are loaded', async () => {
// Select an experiment
expect(experiment).toBeInTheDocument();
await user.click(experiment);
expect(
await screen.findByText(
`Loading trials for experiment "2-dim-shape-exp" ...`
)
).toBeInTheDocument();

// Check if trials are loaded
await waitForExperimentToBeLoaded('2-dim-shape-exp');
Expand Down
10 changes: 5 additions & 5 deletions dashboard/src/src/experiments/Experiments.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ class Experiments extends Component {
renderPage() {
switch (this.props.match.params.page || 'landing') {
case 'landing':
return <LandingPage key={this.state.experiment} />;
return <LandingPage />;
case 'status':
return <StatusPage key={this.state.experiment} />;
return <StatusPage />;
case 'visualizations':
return <VisualizationsPage key={this.state.experiment} />;
return <VisualizationsPage />;
case 'database':
return <DatabasePage key={this.state.experiment} />;
return <DatabasePage />;
case 'configuration':
return <ConfigurationPage key={this.state.experiment} />;
return <ConfigurationPage />;
default:
break;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
import React from 'react';
import ProgressBar from 'react-bootstrap/ProgressBar';
import { Backend } from '../../../utils/queryServer';
import { BackendContext } from '../../BackendContext';
import { ExperimentStatusBar } from '../ExperimentStatusBar';

/**
* TODO: Try to load bar only for displayed experiments in navbar (e.g. use progressive loading)
* TODO: Compute progress bar using max(nb_trials, max_trials) instead of number of trials
* TODO: If max_trials is infinite, display a message like N/A
*/

import {
SideNav,
Expand Down Expand Up @@ -110,7 +104,12 @@ export class ExperimentNavBar extends React.Component {
<span title={experiment}>{experiment}</span>
</StructuredListCell>
<StructuredListCell>
<ExperimentStatusBar name={experiment} />
<ProgressBar>
<ProgressBar variant="success" now={35} key={1} />
<ProgressBar variant="warning" now={20} key={2} />
<ProgressBar variant="danger" now={10} key={3} />
<ProgressBar variant="info" now={15} key={4} />
</ProgressBar>
</StructuredListCell>
</StructuredListRow>
));
Expand Down
Loading

0 comments on commit bb042f5

Please sign in to comment.