Manage Departments Page Update - #648
Conversation
…rmName to academicYear in manageDepartments.html
… each department, each year
…eplacing it with accurate dummy data.
…website. Added commented out code for the pending variation of the Approved Button in manageDepartments.html.
… for Approved Allocation Status Testing.
…will now change based on if the allocation isFinal from either pending or approved.
…SoftwareDevTeam/lsf into dep_portal_ad_ManageDepartments
… changed demo data appropriatly.
…SoftwareDevTeam/lsf into dep_portal_ad_ManageDepartments
…sition of the current AY droplist
…sition of the current AY droplist
…eDepartments' into dep_portal_ad_ManageDepartments
…eDepartments' into dep_portal_ad_ManageDepartments
…nage Departments page
…py files significantly
| .group_by(LaborStatusForm.department, LaborStatusForm.termCode).dicts() | ||
| ) | ||
|
|
||
| print(list(totalBreakSum)) |
There was a problem hiding this comment.
This debug print should be removed.
| on = (LaborStatusForm.termCode == Term.termCode) | ||
| ) | ||
| .where( | ||
| (FormHistory.historyType == "Labor Status Form") & |
There was a problem hiding this comment.
Should this also filter FormHistory.historyType == "Labor Status Form"? Right now it only checks Approved status, so other approved history rows could accidentally be included in the position counts.
There was a problem hiding this comment.
Honestly, I am not sure. Actually, this will probably be fully replaced
There was a problem hiding this comment.
This filter is actually in the code! It's on line 81
| @@ -0,0 +1,189 @@ | |||
| import pytest | |||
There was a problem hiding this comment.
Could we clean this test file before merging? There are several unused imports and a large commented-out test block. It would be better to keep only the active tests and the imports they need.
| Chosen AY: {{ academicYear.split(" ")[1] }} | ||
| <span class="caret"></span> | ||
| </button> | ||
| <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1" style="width: 200px; text-align: center;"> |
There was a problem hiding this comment.
Academic year dropdown opens
- but does not clearly close
| <td style="white-space: nowrap"> | ||
| <div class="dropdown"> | ||
| <button class="btn btn-primary dropdown-toggle" type="button" id="dropdownMenu1" | ||
| data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> |
There was a problem hiding this comment.
Action dropdown/table row markup looks unbalanced. There is an extra closing before .
…e + Updated some of the comments
…r own files + Cleaned up the manageDepartments.js file
…the Allocation Review page
Issue Description
Fixes Issue #623
Changes
Manual Testing
In ComplianceandNot in Compliance(you can also reload the page and rerun Flask to check if the changes get saved to the database).Testing with Test Suites
pytest tests/code/test_manageDepartments.pyin the command line to run all the test suites written for the Manage Departments page.