Skip to content

Profiles: Job Preferences changes#8665

Open
starswan wants to merge 3 commits intomainfrom
profile-job-preferences
Open

Profiles: Job Preferences changes#8665
starswan wants to merge 3 commits intomainfrom
profile-job-preferences

Conversation

@starswan
Copy link
Copy Markdown
Contributor

Trello card URL

https://trello.com/c/J24ZKPxT/2725-profile-job-preferences-journey

Changes in this PR:

Updates to job preferences for profiles rework

Screenshots of UI changes:

Before

After

@starswan starswan changed the title job preferences profiles update Profiles: Job Preferences changes Mar 27, 2026
@starswan starswan force-pushed the profile-job-preferences branch from fab71ef to f291302 Compare March 30, 2026 08:42
@starswan starswan added the deploy label Apr 7, 2026
@starswan starswan force-pushed the profile-job-preferences branch from f291302 to 2752328 Compare April 7, 2026 15:17
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

Review app deployed to https://teaching-vacancies-review-pr-8665.test.teacherservices.cloud on AKS

Copy link
Copy Markdown
Collaborator

@KyleMacPherson KyleMacPherson left a comment

Choose a reason for hiding this comment

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

Approved with a couple of non blocking comments!


validates :roles, presence: true
validate :validate_roles
validates :roles, presence: true, length: { maximum: 4 }
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

[Minor] Do we want to add a custom error message for >4 roles?

class KeyStagesForm < ProfilesForm
attribute :key_stages, array: true, default: []
validates :key_stages, presence: true
validates :key_stages, presence: true, length: { maximum: 3 }
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

[Minor] Do we want to add a custom error message for >3 key stages? Is it worth adding a test for this validation too?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

they were there but untested. Thanks for the nudge

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