Skip to content
This repository has been archived by the owner on Nov 18, 2020. It is now read-only.

Updating to Sufia 7.2

Adam Wead edited this page Feb 10, 2017 · 1 revision

This is very WIP.

  • Gemfile
    • sufia master
    • remove hydra-collections
    • remove any pinned versions of Hydra-based gems
    • use kaminari_route_prefix instead of jcoyne's fork of Kaminari
  • app/models
    • basically, just make these look like .internal_test_app in Sufia
    • rename your GenericFile class to GenericWork
  • bundle exec rails g curation_concerns:work GenericWork
    • this will fail on config/initializers/curation_concerns.rb see projecthydra/sufia#1818
    • copy from Sufia's .internal_test_app as needed
  • bundle exec rails g curation_concerns:install
    • this may do this the same as above
  • bundle exec rails g sufia:upgrade700
    • keep new files
    • note new migration files
    • discard any changes previously applied
  • app/controllers
    • move your GenericFilesController and tests to CurationConcerns::GenericWorksController
    • new location is app/controllers/curation_concerns/generic_works_controller.rb (generated previously)
    • note: projecthydra/sufia#1829
    • removed homepage controller
  • related files
    • if you were using them, you'll need to roll your own now
    • these were formally files uploaded in the same Batch
    • removed in Sufia 7
  • app/jobs
    • convert existing jobs to use Active::Job
    • update jobs inheriting from ContentEventJob and EventJob
  • remove all CSS and JS overrides
    • we're opting to do this as an initial step to see where our application falls within the new UI
    • planning to add back CSS and JS overrides as needed
  • app/views
    • stats removed from our dashboard
    • user profile tab removed
    • homepage views are now under app/views/sufia
    • removed the word cloud
  • batch_edit
    • update to >= 2.0.2
    • run rails g hydra_batch_edit:install
    • remove require in application.css
  • helpers
  include Blacklight::BlacklightHelperBehavior
  include Blacklight::CatalogHelperBehavior
  include CurationConcerns::MainAppHelpers
  include Sufia::BlacklightOverride
  include Sufia::SufiaHelperBehavior
  • application require a a SufiaHelper

  • add `require 'resque/server' to config/routes.rb

  • run simple_form generator

  • run backlight gallery generator

  • nuke all CSS and replace with .internal_test_app defaults

  • remove any config/initializer/secret files use only config/secrets.yml

  • copy new initializers such as simple_form and simple_form_bootstrap

  • convert any existing indexers to use class attributes on your models

  • update config/intializers/mime_types.rb

  • remove unused config options in config/intializers/sufia.rb as well as merge options form curation_concerns.rb config

Testing Setup

Can't recommend strongly enough that you use factories via FactoryGirl. If you're not, you may want to consider refactoring your current test suite to use them.

Fedora and Solr

You can use fcrepo:start tasks by requiring fcrepo_wrapper/tasks. You can write your own solr:start task to build the appropriate cores for dev and test.

Travis

Not all the tests pass. I'm keeping a running tally of passing tests in script/working_tests.sh and updating that as I go. All tests listed in that script are expected to pass.

Clone this wiki locally