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

Sort qualifications by type and date #423

Merged
merged 2 commits into from
Nov 20, 2023

Conversation

steventux
Copy link
Contributor

@steventux steventux commented Nov 13, 2023

Context

We’re currently combining all of the teacher qualifications and sorting by date awarded.
This is leading to some inconsistent ordering between records.
A consistent order by qualification type, then awarded at date is preferrable.

Changes proposed in this pull request

Sorts qualifications by their type according to the typical career
progression of a teacher.
ie.
NPQ or MQ | Induction | QTS | ITT (for QTS) | EYTS | ITT (for EYTS)

This produces a consistent order for the types of qualification starting
with the most recent.

In the case of a specific type of qualification having multiple results,
the qualifications are sorted by reverse chronological awarded at date.

Guidance to review

Link to Trello card

https://trello.com/c/auIQPskM/143-update-teacher-record-row-ordering

Checklist

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

@steventux steventux force-pushed the 143-update-teacher-record-row-ordering branch 2 times, most recently from d59ad9a to f460f96 Compare November 15, 2023 12:23
@steventux steventux marked this pull request as ready for review November 15, 2023 12:23
@steventux
Copy link
Contributor Author

@steventux
Copy link
Contributor Author

add_npq
add_mandatory_qualifications
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given we can have multiple mandatory qualifications returned, do we need explicit ordering by awarded, as we do for NPQ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good spot, I hadn't noticed these could be multiples, have applied the same date sorting as others now.

Copy link

Review app deployed to https://s165d01-aytq-review-pr-423-app.azurewebsites.net

Sorts qualifications by their type according to the typical career
progression of a teacher.
ie.
NPQ or MQ | Induction | QTS | ITT (for QTS) | EYTS | ITT (for EYTS) | Mandatory | HE

This produces a consistent order for the types of qualification starting
with the most recent.
In the case of a specific type of qualification having multiple results,
the qualifications are sorted by reverse chronological awarded at date.
The quality of this data is not great, we've decided to exclude these qualifications.
@steventux steventux force-pushed the 143-update-teacher-record-row-ordering branch from 3241fa3 to 0fb9bf1 Compare November 15, 2023 15:05
@steventux steventux merged commit f921c7b into main Nov 20, 2023
12 checks passed
@steventux steventux deleted the 143-update-teacher-record-row-ordering branch November 20, 2023 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants