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

Handle missing programmeType for ITT qualifications #434

Merged

Conversation

steventux
Copy link
Contributor

@steventux steventux commented Nov 20, 2023

Context

We have a sentry error in production where the qualifications API returns no programmeType property for an ITT qualification.

https://dfe-teacher-services.sentry.io/issues/4650996545/?alert_rule_id=14607780&alert_type=issue&notification_uuid=27ce023f-8a29-4289-9d1a-844ca7425e8b&project=4505227155996672

We recently added ordering of qualifications by type, and this included differentiating ITT qualifications by programme type.
This is likely the cause of the error.

Changes proposed in this pull request

Allow for null programmeType and default to adding the ITT qualification as a QTS type.

Guidance to review

Link to Trello card

Checklist

  • Attach to Trello card
  • Rebased main
  • Cleaned commit history
  • Tested by running locally

@steventux steventux changed the title Handle missing programmeType for ITT qualifications Handle missing programmeType for ITT qualifications Nov 20, 2023
@steventux steventux merged commit fcba485 into main Nov 20, 2023
12 checks passed
@steventux steventux deleted the 242-fix-aytq-template-error-from-qualifications-api-response branch November 20, 2023 14:23
@steventux
Copy link
Contributor Author

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