-
Notifications
You must be signed in to change notification settings - Fork 189
[Battery Manager] - New Module #4221
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
[Battery Manager] - New Module #4221
Conversation
|
Not sure how since nothing was merged since this PR was sent yesterday, but this already has conflicts |
driusan
left a comment
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.
First pass at reviewing
770c1b8 to
5589429
Compare
|
@PapillonMcGill Addressed! |
|
LGTM |
|
@HenriRabalais I did a PHPCS for you |
47a8dae to
0a21444
Compare
|
|
a5811c8 to
8c30756
Compare
| LEFT JOIN test_names t USING (Test_name) | ||
| LEFT JOIN subproject s USING (SubprojectID) | ||
| LEFT JOIN psc p USING (CenterID) | ||
| ORDER BY t.Full_name", |
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'm not sure why, but this doesn't seem to be working. Every time the query is made, the rows appear in a different order.
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.
@HenriRabalais Have you tried sorting by a column that is part of the result rows? ex: testName
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'll give it a try
| @@ -0,0 +1,54 @@ | |||
| # Battery Manager | |||
| *For Rida: Add what each value in the test_battery does and what happens if it's left empty* | |||
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.
|
restarted Travis as error doesn't seem to make sense with change |
|
Needs PHPCS |
|
@ridz1208 should be fixed. |
f6849b8 to
dcc02e8
Compare
made sure everything is functional minor format change fixed error in code reverted Modal form to original state fixed user perm rel file
dcc02e8 to
5165a39
Compare
|
driusan
left a comment
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.
There are some minor problems but I don't think they're blockers, and they can be addressed later.
| window.addEventListener('load', () => { | ||
| ReactDOM.render( | ||
| <BatteryManagerIndex | ||
| testEndpoint={`${loris.BaseURL}/battery_manager/testendpoint/`} |
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 don't really understand why these URLs have "endpoint" in the name
| @@ -0,0 +1,117 @@ | |||
| # Battery Manager | |||
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 doesn't seem to follow the style guidelines in docs/HelpStyleGuide.md
Summary of Functions
This is the Battery Manager Module. It manages test batteries. It was original made by @victoriafoing. Since leaving, I have maintained and refactored the code to meet new standards, while keeping the same functionality:
Add Testbutton and form. Every new test is given a status of'Active' === 'Y'ActivateandDeactivatebuttons.Editbutton and form. This is not true editing, since every edit creates a new test in the database. This also causes the previous test to be deactivated.Features