A course team reported that they are unable to search for any instructors in their course run titled "Human Rights Defenders". Here is the course ID: course-v1:AmnestyInternationalX+Rights3x+3T2019
I am able to reproduce the error following the steps below:
1. Go to https://publisher.edx.org/courses/c981f823-ae43-4432-8ab7-b919fd318cfd
2. Click into the un-submitted course run (course-v1:AmnestyInternationalX+Rights3x+3T2019).
3. Try to search for an instructor in the "Staff" area. Search "Amnesty International" which is the instructor that they use for each of their courses.
4. See that nothing appears, even though there is staff assigned for this organization.
Can you please look into why the instructor search is not working for this course run? Thank you!
see Nov 20 comment from Jess - this is also happening for a run whose course has 2 orgs assigned, neither of which has a space in the org key
determine whether there is a simple way to get past this, for instance:
for the multi-org case, calling the person typeahead for each and merging the results
for the space-in-the-org-key case, URL-encoding the space char in the org key so that FAP can hit the endpoint for this org (and get the appropriate results)
if there is a simple approach that is not sloppy/risky, implement the fix
otherwise create a ticket to investigate other fixes such as altering the key on the bad Amnesty org, re-pointing their courses to the other Amnesty org whose key does not include the space char, etc.
if a code change cannot fix the Amnesty case, we will inform the partner that until we can prioritize the data change, they will need to get assistance from their PC for any new course run creation