Skip to content

Feature/implicit teacher role assignment#13

Open
sleblanc23 wants to merge 3 commits intomainfrom
feature/implicit_teacher_assignment
Open

Feature/implicit teacher role assignment#13
sleblanc23 wants to merge 3 commits intomainfrom
feature/implicit_teacher_assignment

Conversation

@sleblanc23
Copy link

Related to TX-119

Allows a teacher to be included in the users file based on a staff section association only, regardless of staff classification or whether they have a staff school association at all. Opt-in functionality that includes the ability to filter by classroom_position and therefore exclude aides, substitutes, etc.

I tested this in CA by excluding some teachers from fct_staff_school_association and ensuring that they are still included in the model if oneroster:require_staff_assignment = true and they had one of the configured classroom_positions. Also confirmed that the behavior is unchanged if neither new variable is set.

@sleblanc23 sleblanc23 requested a review from ejoranlienea August 1, 2025 20:46
@rlittle08 rlittle08 self-requested a review August 7, 2025 19:57
@rlittle08
Copy link
Contributor

@sleblanc23 do you need someone to run in TX to confirm it's working there?

@sleblanc23
Copy link
Author

yeah we should do that. I could ask Greg when he's back next week, I think he recently got access

@rlittle08
Copy link
Contributor

@sleblanc23 I can do it! I volunteered to review this from TX lens

@rlittle08
Copy link
Contributor

@sleblanc23 @ejoranlienea notes from my testing in TX:

  1. 👍 I turned off require_staff_assignment:
  'oneroster:require_staff_assignment': False

As a result, I see 10723 new staffs in the users table, which lines up with staffs who were dropped bc of no staff_school_assoc:

select * from dev_analytics.dev_rl_oneroster_1_1.users
where "metadata.edu.natural_key" not in (select "metadata.edu.natural_key" from analytics.prod_oneroster_1_1.users);

(so the code is working as expected)

  1. ❓ I did NOT configure classroom_positions. These are what I see in TX, should any be removed?
Assistant Teacher
PK Classroom Aide
Substitute Teacher
Support Teacher
Teacher Of Record
Teacher of Record
  1. ❓ I noticed that >30k staff / 47k in TX are being dropped here:
    join user_ids
    on dim_staff.k_staff = user_ids.k_staff

    Is it right that we require edOrgIdCodes to exist to be a valid user?

@rlittle08
Copy link
Contributor

rlittle08 commented Aug 14, 2025

one other thing, I noticed in texas testing that SSNs are being included in "userIds". At the texas internal meeting we decided to explicitly remove these from the oneroster code. I am working on testing that code

@rlittle08
Copy link
Contributor

SSN code is working in TX.

2 last things when you both have some time -

@sleblanc23 could you please review my last commit re: ssns?

@ejoranlienea can you review my questions 2 & 3 in comment above?

@sleblanc23
Copy link
Author

@rlittle08 just checking that we'd always want to filter out SSNs, right? So this is fine as core code and non-configurable?

@rlittle08
Copy link
Contributor

@sleblanc23 I lean always, but I can see how it'd be annoying to come back and make it configurable later. Maybe I add config but default it to filter them out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants