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

Migration to add 'the' to will_continue_on text #310

Merged
merged 1 commit into from
Nov 28, 2014
Merged

Conversation

vinayvinay
Copy link
Contributor

www.agileplannerapp.com/boards/173808/cards/8718

Frontend will stop adding 'the' to will_continue_on text on business support editions. This change allows editors to add 'the' when needed in the best way possible, and keeps it consistent with other formats.

This migration fixes existing data to contain that word. Also, updated the hint text to suggest that editors need to add 'the' to will_continue_on in business support.

def self.up
puts "Adding 'the' to the beginning of `will_continue_on` text on business support editions"
# BS editions which do not begin with 'The' or 'the'
bs_editions_to_fix = BusinessSupportEdition.where(will_continue_on: /\A(?!the\s).*/i)
Copy link
Contributor

Choose a reason for hiding this comment

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

Will this migration also add "the" to empty will_continue_on fields?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@fofr: good spot. updated.

www.agileplannerapp.com/boards/173808/cards/8718

Frontend will stop adding 'the' to will_continue_on text
on business support editions:

alphagov/frontend#695

This change allows editors to add 'the' when needed in
the best way possible, and keeps it consistent with
other formats.

This migration fixes existing data to contain that word.
Also, updated the hint text to suggest that editors need
to add 'the' to will_continue_on in business support.
@marksheldonGDS
Copy link
Contributor

👍

marksheldonGDS added a commit that referenced this pull request Nov 28, 2014
Migration to add 'the' to will_continue_on text
@marksheldonGDS marksheldonGDS merged commit fdb617a into master Nov 28, 2014
@marksheldonGDS marksheldonGDS deleted the fix-the-the branch November 28, 2014 10:48
@fofr
Copy link
Contributor

fofr commented Nov 28, 2014

We need to let content designers know about this before we deploy.

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.

None yet

3 participants