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

Add reason when extending deadline #7135

Merged
merged 1 commit into from
Oct 11, 2024
Merged

Conversation

starswan
Copy link
Contributor

@starswan starswan commented Oct 2, 2024

Trello card URL

https://trello.com/c/8Km7B9KX/1271-ask-for-a-reason-in-the-extend-closing-date-journey

Changes in this PR:

An an extension reason when extending a job deadline

Screenshots of UI changes:

Before

BeforeReason

After

AfterReason

Next steps:

  • Terraform deployment required?

  • New development configuration to be shared?

@starswan starswan marked this pull request as ready for review October 2, 2024 15:07
@starswan starswan force-pushed the extend-closing-date-reason branch 2 times, most recently from 93747f4 to 25664e5 Compare October 4, 2024 14:00
@starswan starswan added the deploy label Oct 7, 2024
Copy link

github-actions bot commented Oct 7, 2024

Review app https://teaching-vacancies-review-pr-7135.test.teacherservices.cloud was successfully deleted

@@ -12,6 +12,7 @@ class Publishers::JobListing::ExtendDeadlineForm < BaseForm
validates :earliest_start_date, presence: true, date: { on_or_after: :today, on_or_before: :far_future, after: :expires_at, before: :latest_start_date }, if: -> { start_date_type == "date_range" }
validates :latest_start_date, presence: true, date: { on_or_after: :today, on_or_before: :far_future, after: :earliest_start_date }, if: -> { start_date_type == "date_range" }
validates :other_start_date_details, presence: true, if: -> { start_date_type == "other" }
validates :extension_reason, inclusion: { in: Vacancy.extension_reasons.keys }
Copy link
Collaborator

@KyleMacPherson KyleMacPherson Oct 7, 2024

Choose a reason for hiding this comment

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

do we need validation on other_extension_reason_details being present if extension_reason is "other_extension_reason"?

@starswan starswan merged commit 848f892 into main Oct 11, 2024
13 checks passed
@starswan starswan deleted the extend-closing-date-reason branch October 11, 2024 13:44
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.

3 participants