Skip to content
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

Fix Ventrus school mapping #7293

Merged
merged 1 commit into from
Nov 19, 2024
Merged

Fix Ventrus school mapping #7293

merged 1 commit into from
Nov 19, 2024

Conversation

scruti
Copy link
Collaborator

@scruti scruti commented Nov 18, 2024

There is a bug in the existing code when no school URN comes from Ventrus feed. Our system assigns the vacancy to the first Organisation found with "nil" urn value.

So the Ventrus vacancy ends assigned to a random MAT/SchoolGroup (that has no URN value).

To fix it, we are:

  • Ensuring that the correct trust ID must be provided by Ventrus feed.
  • Only assigning the vacancy to a particular school if the URN is provided and belongs to a school that is part of Ventrus.
  • When no/incorrect school urn is provided, it assigns it to Ventrust trust itself, not to a particular school.

There is a bug in the existing code when no school URN comes from
Ventrus feed. Our system assings the vacancy to the first Organisation
found with "nil" urn value.

So the Ventrus vacancy ends assigned to a random MAT/SchoolGroup (that
has no URN value).

To fix it, we are:
- Ensuring that the correct trust ID must be provided by Ventrus feed.
- Only assigning the vacancy to a particular school if the URN is
  provided and belongs to a school that is part of Ventrus.
- When no/incorrect school urn is provided, it assigns it to Ventrust
  trust itself, not to a particular school.
@scruti scruti merged commit 103e6b0 into main Nov 19, 2024
10 checks passed
@scruti scruti deleted the tighten-ventrus-ats-school-mapping branch November 19, 2024 07:09
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