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

2024 Upgrade TODOs, nice-to-haves, etc #913

Open
6 of 8 tasks
esoterik opened this issue Apr 8, 2024 · 6 comments
Open
6 of 8 tasks

2024 Upgrade TODOs, nice-to-haves, etc #913

esoterik opened this issue Apr 8, 2024 · 6 comments

Comments

@esoterik
Copy link
Member

esoterik commented Apr 8, 2024

This is intended to be a meta issue to capture any other additional issues or possible improvements that come up while upgrading, just so nothing gets lost.

TODOs

Minimum

  • No security warnings from dependency versions
  • Upgrade rubocop
  • Upgrade sentry

Higher priority but not mandatory

  • Migrate from kt-paperclip to carrierwave

Stretch goals

  • Upgrade to Rails 7.0
  • Migrate asset pipeline away from rails-assets gems to importmaps

Bugs

Nice-to-haves

jparr added a commit that referenced this issue Apr 9, 2024
jparr added a commit that referenced this issue Apr 9, 2024
@jparr jparr mentioned this issue Apr 9, 2024
@jparr
Copy link
Collaborator

jparr commented Apr 10, 2024

I marked this PR a draft #914 because #914 (comment)

@jparr
Copy link
Collaborator

jparr commented Apr 17, 2024

I have two questions remaining about removing paperclip. @esoterik

  1. Partners have an attached image :logo. However the controller does not allow this here.

so its not currently working. Should I fix this or just remove the logo from the model?

  1. TweetTarget automatically attatches a targets profile picture using the api. Does EFF have a twitter dev api account? I can migrate this but if you arent using this feature it would be better to just remove it.

@jparr
Copy link
Collaborator

jparr commented Apr 17, 2024

  1. Another issue I am seeing are the database migrations. this will fail after removal of the gem: https://github.com/EFForg/action-center-platform/blob/2024-upgrades-main/db/migrate/20140504080222_add_attachment_featured_image_to_action_pages.rb

looks like you can add back the helper or rewrite the migration to do the same work. Some of the columns used by paperclip arent used by carrierwave by default.

@esoterik
Copy link
Member Author

I have two questions remaining about removing paperclip. @esoterik

1. Partners have an attached image :logo. However the controller does not allow this here. https://github.com/EFForg/action-center-platform/blob/320e9ba37ce0d4aa05383cb986ce212b0aa6f033/app/controllers/admin/partners_controller.rb#L57

so its not currently working. Should I fix this or just remove the logo from the model?

2. TweetTarget automatically attatches a targets profile picture using the api. Does EFF have a twitter dev api account? I can migrate this but if you arent using this feature it would be better to just remove it.

We can just remove these!

  1. Another issue I am seeing are the database migrations. this will fail after removal of the gem: https://github.com/EFForg/action-center-platform/blob/2024-upgrades-main/db/migrate/20140504080222_add_attachment_featured_image_to_action_pages.rb

looks like you can add back the helper or rewrite the migration to do the same work. Some of the columns used by paperclip arent used by carrierwave by default.

For this, I think it'd be best to rewrite the migration to do the same work.

jparr added a commit that referenced this issue Apr 18, 2024
user rails_transactional_fixtures

see: #913
jparr added a commit that referenced this issue Apr 19, 2024
user rails_transactional_fixtures

see: #913
@jparr
Copy link
Collaborator

jparr commented Apr 19, 2024

Ahoy has depreciation warnings in the rails 7 branch. We should upgrade it.

@jparr
Copy link
Collaborator

jparr commented Apr 23, 2024

Will need to migrate from secrets to credentials for rails 7. I shouldnt be too bad since you mostly use env variables.

jparr added a commit that referenced this issue May 10, 2024
user rails_transactional_fixtures

see: #913
jparr added a commit that referenced this issue May 10, 2024
user rails_transactional_fixtures

see: #913
jparr added a commit that referenced this issue May 16, 2024
user rails_transactional_fixtures

see: #913
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

No branches or pull requests

2 participants