Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LOVE EFD Status in Dropdown menu Navbar #396

Merged
merged 14 commits into from
Sep 27, 2022
Merged

Conversation

fdelcampo
Copy link
Contributor

Add request to the status of EFD with Heartbeat. Show in the Navbar

@fdelcampo fdelcampo changed the title LOVE EFD Status LOVE EFD Status in Dropdown menu Navbar Sep 14, 2022
Copy link
Contributor

@sebastian-aranda sebastian-aranda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please take a look to the requested changes.

@@ -308,6 +308,23 @@ export default class ManagerInterface {
});
}

static getEDFStatus() {
const url = `https://summit-lsp.lsst.codes/influxdb/health`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be fixed. We can use the LOVE configuration file to set this.

@@ -32,6 +33,8 @@ import EmergencyContactsPanel from './EmergencyContactsPanel/EmergencyContactsPa
import UserDetails from './UserDetails/UserDetails';
import UserSwapContainer from '../Login/UserSwap.container';
import { severityEnum } from '../../Config';
import ManagerInterface from 'Utils';
import { style } from 'd3';
Copy link
Contributor

@sebastian-aranda sebastian-aranda Sep 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think d3 is not being used.

love/src/components/Layout/Layout.jsx Outdated Show resolved Hide resolved
love/src/components/Layout/Layout.jsx Outdated Show resolved Hide resolved
Copy link
Contributor

@sebastian-aranda sebastian-aranda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple things are missing:

  • Remove unused library and commented code
  • Add documentation for the new added parameter on the LOVE configuration file

love/src/Utils.js Outdated Show resolved Hide resolved
@@ -238,6 +241,16 @@ class Layout extends Component {
});
};

checkEfdStatus = () => {
const url = this.props.efdConfigFile.urlStatus;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is missing a validation. What happens if the urlStatus is not present? It doesn't throw any error?

Copy link
Contributor

@sebastian-aranda sebastian-aranda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @fdelcampo !

@sebastian-aranda sebastian-aranda merged commit abb442b into develop Sep 27, 2022
@sebastian-aranda sebastian-aranda deleted the tickets/LOVE-86 branch September 27, 2022 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants