Skip to content

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

Open

Description

@esoterik

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

Activity

  1. added 2 commits that reference this issue on Apr 9, 2024
  2. jparr commented on Apr 10, 2024

    @jparr
    Collaborator

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

  3. jparr commented on Apr 17, 2024

    @jparr
    Collaborator

    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.
  4. jparr commented on Apr 17, 2024

    @jparr
    Collaborator
    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.

  5. esoterik commented on Apr 17, 2024

    @esoterik
    MemberAuthor

    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.

  6. jparr commented on Apr 19, 2024

    @jparr
    Collaborator

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

  7. jparr commented on Apr 23, 2024

    @jparr
    Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions