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

Remove usage of Investment's internal_comments #2404

Merged
merged 4 commits into from
Jan 31, 2018

Conversation

bertocq
Copy link
Collaborator

@bertocq bertocq commented Jan 30, 2018

Where

What

Internal Comments textarea on Budget Investments is deprecated and will be entirely removed on release v0.14, for now we're just removing usage for release v0.13.

Since internal comments have been in use in production environments, we need to preserve them. The most basic option is to just create an initial comment on the new internal comments thread with the entire internal_comments text and make the first Admin the author.

How

  • Removing usage at show & edit views under admin/valuations panels
  • Adding a rake task to migrate existing values.

Screenshots

Before

Admin Show [Before]

screen shot 2018-01-29 at 21 18 25

Valuation Form [Before]

screen shot 2018-01-29 at 21 18 18

Valuation Show [Before]

screen shot 2018-01-29 at 21 18 07

After

Admin Show [After]

screen shot 2018-01-29 at 21 18 37

Valuation Form [After]

screen shot 2018-01-29 at 21 18 47

Valuation Show [After]

screen shot 2018-01-29 at 21 20 44

Test

Updated those scenarios that were expecting the internal_comments textarea usage

Deployment

This PR assumes that #2403 has been already merged (the rake task in particular)

Warnings

⚠️ This is a DEPRECATION warning! On the v0.14 release the internal_comments column will be removed from the database. Please ensure you'll be migrating existing values either with the provided rake task rake investments:internal_comments:migrate_to_thread or a custom/manual one.

@bertocq bertocq merged commit 06cd81f into master Jan 31, 2018
@bertocq bertocq deleted the remove_investments_internal_comments branch January 31, 2018 12:58
clairezed pushed a commit to CDJ11/CDJ that referenced this pull request Jun 26, 2018
…s_internal_comments

Remove usage of Investment's internal_comments
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