Closed mark-dce closed 6 years ago
UPDATE: This appears to only be true for some department & sub-department combinations. I don't know whether the configuration in the submission UI or the data in the school report is correct.
For Rollins, the school report says that the following sub department options should be available
I haven't had time to fully check the Laney or Emory subfields
OBSERVATION Having the departments and sub departments in a single hierarchical yaml file might make it easier to code and confirm the sub department behavior.
@mark-dce I missed that it was Biostats and Bioinformatics. There is JSON file I'm using to do the mapping for the departments: https://github.com/curationexperts/laevigata/blob/master/app/javascript/config/subfieldEndpoints.json
I'll submit a PR that adds adds both options:
{
"Biological and Biomedical Sciences": "/authorities/terms/local/biological_programs",
"Biostatistics": "/authorities/terms/local/biostatistics_programs",
"Biostatistics and Bioinformatics": "/authorities/terms/local/biostatistics_programs",
"Business": "/authorities/terms/local/business_programs",
"Environmental Sciences": "/authorities/terms/local/environmental_programs",
"Epidemiology": "/authorities/terms/local/epidemiology_programs",
"Psychology": "/authorities/terms/local/psychology_programs",
"Executive Masters of Public Health - MPH": "/authorities/terms/local/executive_programs"
}
@little9 Is there any way to use the same code to figure this out we do in the school report - I.E. could we have one source of truth for this in the application? I feel like we need to hand check all of Laney and all of Emory now. And I worry that we'll miss something or have a typo again later. This is at least the second time we've messed up the configuration of subfields in the submission form (the previous time was in the old form though).
I'm reopening this ticket since I can't test whether this is fixed because I can't get any Rollins submission to work right now.
Server: https://qa-upgrade-etd.emory.edu/ Version master updated 20 August 2018 (d5d845fc1a183f62ce1621f6a0e3f038bbe2c98a)
STEPS TO REPRODUCE 1 . Close chrome, launch Chrome, open a new Incognito window
EXPECTED BEHAVIOR
ACTUAL BEHAVIOR
Current behavior
@mark-dce @bess I think this could be closed now, since the issue was related to partnering agencies and not subfields
@little9 I just tested to make sure that Subfields for all Schools that have Departments with Subfields show up and can be selected and saved. The only only one that is on the school report that doesn't show on the application is:
School: Emory
Dept: Classics and Religion
Subfields: American Religious Cultures Comparative Literature and Religion Ethics and Society Hebrew Bible Historical Studies in Theology and Religion Jewish Religious Cultures New Testament Person, Community, and Religious Life Theological Studies West and South Asian Religions
I was able to enter sub-departments
Tested on QA | 2017 Emory University. Version master updated 23 August 2018.
ISSUE On the "My Program" tab I can not enter a subfield for the departments listed in the school reports for Emory College, Laney Graduate School, and Rollins School of Public Health
ACCEPTANCE
OBSERVATION Since Departments and Sub-departments are tightly coupled and hierarchical, consider rendering them together as select optgroups rather than two separate fields. (the sample code to generate this screenshot is included below)