-
Notifications
You must be signed in to change notification settings - Fork 6
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
Conversation
There was a problem hiding this 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.
love/src/Utils.js
Outdated
@@ -308,6 +308,23 @@ export default class ManagerInterface { | |||
}); | |||
} | |||
|
|||
static getEDFStatus() { | |||
const url = `https://summit-lsp.lsst.codes/influxdb/health`; |
There was a problem hiding this comment.
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'; |
There was a problem hiding this comment.
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.
…. Fix utils with parameter url and the container with selector with state
There was a problem hiding this 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
@@ -238,6 +241,16 @@ class Layout extends Component { | |||
}); | |||
}; | |||
|
|||
checkEfdStatus = () => { | |||
const url = this.props.efdConfigFile.urlStatus; |
There was a problem hiding this comment.
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?
… with timeout and add catch case when it's exceded timeout
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @fdelcampo !
Add request to the status of EFD with Heartbeat. Show in the Navbar