This is related to #17 .
So here's the problem:

"Peter Reiher", "Peter Rieher", "Reiher", and "Reiher, Peter L." are obviously all the same professor. How do you prevent this kind of mislabeling and resulting name fragmentation?
I think we should pick a canonical name for Reiher, let's say, "Peter Reiher". Then, we put this somewhere in the database (probably in a professors collection), and enforce this in the test file upload form.
The same also applies to other "categorical" fields, like course subject ("COM SCI"), kind name ("Midterm"), and term quarter ("Winter").
A good idea is to reuse a subset of the Autocomplete search bar already implemented in the main course search page (also seen in the screenshot above):
|
<Autocomplete |
|
className={classes.filterAutocomplete} |
|
autoComplete |
|
multiple |
|
id='grouped-filter' |
|
options={filterOptions} |
|
groupBy={option => option.fieldDisplay} |
|
getOptionLabel={option => option.display} |
|
filterSelectedOptions |
|
onChange={handleFilterItemsChange} |
|
renderInput={params => ( |
|
<TextField |
|
{...params} |
|
onClick={handleOpenFilterBar} |
|
label='Filter / Search' |
|
variant='outlined' |
|
fullWidth |
|
/> |
|
)} |
|
ChipProps={{ color: 'primary' }} |
|
/> |
Finally, how do we allow people to add new professor names? Maybe we can allow this later by having a "My professor isn't listed" button that leads into a flow allowing them to add a new professor. We should think of other ways to allow such a thing, while still keeping name fragmentation to a minimum.
This is related to #17 .
So here's the problem:

"Peter Reiher", "Peter Rieher", "Reiher", and "Reiher, Peter L." are obviously all the same professor. How do you prevent this kind of mislabeling and resulting name fragmentation?
I think we should pick a canonical name for Reiher, let's say, "Peter Reiher". Then, we put this somewhere in the database (probably in a
professorscollection), and enforce this in the test file upload form.The same also applies to other "categorical" fields, like course subject ("COM SCI"), kind name ("Midterm"), and term quarter ("Winter").
A good idea is to reuse a subset of the Autocomplete search bar already implemented in the main course search page (also seen in the screenshot above):
UPE-Website-V2/testbank/src/SubjectNumberCourses.js
Lines 220 to 240 in 124c092
Finally, how do we allow people to add new professor names? Maybe we can allow this later by having a "My professor isn't listed" button that leads into a flow allowing them to add a new professor. We should think of other ways to allow such a thing, while still keeping name fragmentation to a minimum.