-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve way "homerooms" are created and assigned to educators #1880
Comments
@kevinrobinson Looking into this further — I ran the following script against production New Bedford data to see if there are any homeroom teachers currently assigned to incorrect homerooms:
The script didn't raise, and I did some manual inspection too to verify the same thing. So for the two schools currently imported, no New Bedford educator account is assigned to an incorrect homeroom. |
+ Handle New Bedford case where homerooms can have the same name across multiple schools, see #1880
@alexsoble nice, awesome to check this! I fixed all this up manually when I removed all the other students and educators and homerooms (I think! this is great to check :)) One tiny clarification - I think it might be risky to consider these homerooms correct. They are still identified with names that won't let us discriminate between homerooms across schools. And the way that homerooms get created or updated is in the student importer, where it's based on the student's school. So I think to check this all the way around it involves looking at whether the students in that homeroom also match. There's that circular dependency in the importers between students, educators and homerooms. |
+ Handle New Bedford case where homerooms can have the same name across multiple schools, see #1880
+ Handle New Bedford case where homerooms can have the same name across multiple schools, see #1880
+ Handle New Bedford case where homerooms can have the same name across multiple schools, see #1880
+ Handle New Bedford case where homerooms can have the same name across multiple schools, see #1880
#2023 fixed some things, but there are a few other edge cases impacting different educators/students/homerooms:
And these need doing, but probably as separate issues:
|
This particularly impacts New Bedford. This is related to #1879 as well.
There's a separate case where this happens, for H-TUT. So the assumptions in the EducatorsImporter about setting the Homeroom seem to be wrong for NB (and maybe for Somerville too, we'd have to check).
For New Bedford, they appear to scope these by school, and re-use values like "K-004" across schools. So the homeroom name is a not a valid primary key across the district, which our code assumes it is (https://github.com/studentinsights/studentinsights/blob/master/app/importers/file_importers/educators_importer.rb#L96).
For Somerville most of the homeroom names are prefixed with the school initials so it's only for two values, which I'd guess is a data bug.
So overall, this needs more work. It impacts which students teachers are authorized to see, so is probably critical before September. We could look at inferring our own primary key, or I wonder if we can just export Aspen primary keys to avoid a lot of this matching work.
The text was updated successfully, but these errors were encountered: