You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As an admin, I want to control the placement of profiles based on the positions held by people so I can make sure they show up on the right listing page.
#232
Open
thatbudakguy opened this issue
Nov 5, 2020
· 1 comment
Is your feature request related to a problem? Please describe.
There's a current conflict in the logic that aggregates profiles between relying on information on a person's "princeton status" (which is initially populated from Princeton's own directory system but can later be changed) and information coming from the positions they've held at CDH or on a CDH-sponsored grant. This leads to inconsistencies in which profiles are displayed on which listing pages.
Describe the solution you'd like
The sole determinant of which page a profile appears on should be the position a person held in their relationship to CDH. We currently hard-code these values into lists like postdoc_titles and student_titles, but they should be able to be set in the admin interface as part of the data of either the title itself, or the particular position instance (person + title + dates). If people have no relationship to CDH through a position (only through a grant), perhaps we can localize such profiles to the Affiliates page, since that page should list all people who have received grants from CDH (including students, though it doesn't currently).
Additional context
For an example of currently hard-coded position -> status mappings, see:
notes from discussion with @thatbudakguy for more details on his idea to solve this:
titles would have configurable many-to-many relation to person list; e.g. faculty director & interim faculty director title would be staff and exec
anyone without a cdh position and thus no title (i.e., only related via grant as project director) goes onto the affiliate page; currently we exclude students from that page, but we don't want to do that in future; so maybe grant roles could have a similar functionality to cdh titles. Student project managers with no other cdh staff could work the same way — use the relationship between role and person list to put them on the students page
thatbudakguy
changed the title
As an admin, I want to control the student/staff status of profiles based on the positions held by people so I can make sure they show up on the right listing page.
As an admin, I want to control the placement of profiles based on the positions held by people so I can make sure they show up on the right listing page.
Aug 25, 2021
Is your feature request related to a problem? Please describe.
There's a current conflict in the logic that aggregates profiles between relying on information on a person's "princeton status" (which is initially populated from Princeton's own directory system but can later be changed) and information coming from the positions they've held at CDH or on a CDH-sponsored grant. This leads to inconsistencies in which profiles are displayed on which listing pages.
Describe the solution you'd like
The sole determinant of which page a profile appears on should be the position a person held in their relationship to CDH. We currently hard-code these values into lists like
postdoc_titles
andstudent_titles
, but they should be able to be set in the admin interface as part of the data of either the title itself, or the particular position instance (person + title + dates). If people have no relationship to CDH through a position (only through a grant), perhaps we can localize such profiles to the Affiliates page, since that page should list all people who have received grants from CDH (including students, though it doesn't currently).Additional context
For an example of currently hard-coded position -> status mappings, see:
cdh-web/cdhweb/people/models.py
Lines 123 to 144 in 96404f5
The text was updated successfully, but these errors were encountered: