-
Notifications
You must be signed in to change notification settings - Fork 5
feat: add School Roll Number field for Ireland schools Add optional s… #632
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
Merged
Mohamed-RPF
merged 13 commits into
main
from
925-verification-flow-add-roll-number-ireland-api
Dec 11, 2025
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
277a408
feat: add School Roll Number field for Ireland schools Add optional s…
Mohamed-RPF efe6780
CircleCl build fix: rubocop
Mohamed-RPF da5cab5
test fix: add school_roll_number to the expected JSON fields in the test
Mohamed-RPF d9b33fe
fix: normalize school_roll_number to uppercase before validation
Mohamed-RPF 05481ed
Rubocop style issue fix
Mohamed-RPF 8fe2f36
fix: normalize school_roll_number to uppercase before validation
Mohamed-RPF 6a375d2
fix: clarify school_roll_number validation message for backend logging
Mohamed-RPF da062e6
Scope school_roll_number uniqueness to non-rejected schools and allow…
Mohamed-RPF dba5faf
Change school_roll_number index to partial index for rejected school …
Mohamed-RPF 84d8def
Merge branch 'main' into 925-verification-flow-add-roll-number-irelan…
Mohamed-RPF fb572cc
Remove redundant assignment in school_roll_number test
Mohamed-RPF 4abee07
Make school_roll_number mandatory for Ireland schools. Add conditiona…
Mohamed-RPF 116dd1d
Merge branch 'main' into 925-verification-flow-add-roll-number-irelan…
Mohamed-RPF File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
db/migrate/20251128102719_add_school_roll_number_to_schools.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| # frozen_string_literal: true | ||
|
|
||
| class AddSchoolRollNumberToSchools < ActiveRecord::Migration[7.2] | ||
| def change | ||
| add_column :schools, :school_roll_number, :string | ||
|
|
||
| add_index :schools, :school_roll_number, unique: true | ||
Mohamed-RPF marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| end | ||
| end | ||
8 changes: 8 additions & 0 deletions
8
db/migrate/20251204132605_change_school_roll_number_index_to_partial.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # frozen_string_literal: true | ||
|
|
||
| class ChangeSchoolRollNumberIndexToPartial < ActiveRecord::Migration[7.2] | ||
| def change | ||
| remove_index :schools, :school_roll_number | ||
| add_index :schools, :school_roll_number, unique: true, where: 'rejected_at IS NULL' | ||
Mohamed-RPF marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| end | ||
| end | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we have a reference anywhere that shows us what the format of an Irish school roll number should be so we can verify this regex is correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 3rd AC in the ticket mentions 'Given the "School Roll Number" field is visible, when I enter a valid alpha-numeric value (e.g., 01572D), then the data is accepted and saved with the application.'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that example meant to show what the precise format will be? I was thinking more of something official
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are some examples from the gov.ie website: 20375I, 20374G, 20378O, 20371A
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked public sources and there’s no official published spec for the roll-number format.
In the Department’s datasets, roll numbers consistently appear as 5 digits followed by an uppercase letter (e.g. 01572D).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay great, thanks for looking into this 👍