scientist-softserv / ams

Archival Management System to support the American Archive of Public Broadcasting
GNU General Public License v3.0
1 stars 0 forks source link

Fix Deprecations (lowest priority) #61

Open ShanaLMoore opened 1 year ago

ShanaLMoore commented 1 year ago

User Story

Top level ::CompositeIO is deprecated, require 'multipart/post' and use `Multipart::Post::CompositeReadIO` instead!
Top level ::Parts is deprecated, require 'multipart/post' and use `Multipart::Post::Parts` instead!
[DEPRECATION] PCDM is deprecating 'Valkyrie::Vocab::PCDMUse#PreservationMasterFile'. Use 'Valkyrie::Vocab::PCDMUse#PreservationFile' instead. This warning does *not* indicate that usage of the deprecated term has been detected.
=> Booting Puma
=> Rails 6.1.7.4 application starting in development
=> Run `bin/rails server --help` for more startup options
`Redis.current=` is deprecated and will be removed in 5.0. (called from: /app/samvera/hyrax-webapp/config/initializers/redis_config.rb:3:in `<top (required)>')
/usr/local/bundle/gems/faraday-multipart-1.0.4/lib/faraday/multipart.rb:15: warning: already initialized constant Faraday::FilePart
/usr/local/bundle/gems/faraday-1.3.1/lib/faraday/file_part.rb:53: warning: previous definition of FilePart was here
/usr/local/bundle/gems/faraday-multipart-1.0.4/lib/faraday/multipart.rb:16: warning: already initialized constant Faraday::ParamPart
/usr/local/bundle/gems/faraday-1.3.1/lib/faraday/param_part.rb:5: warning: previous definition of ParamPart was here
/usr/local/bundle/gems/faraday-multipart-1.0.4/lib/faraday/multipart.rb:17: warning: already initialized constant Faraday::Parts
/usr/local/bundle/gems/faraday-1.3.1/lib/faraday/file_part.rb:61: warning: previous definition of Parts was here
/usr/local/bundle/gems/faraday-multipart-1.0.4/lib/faraday/multipart.rb:18: warning: already initialized constant Faraday::CompositeReadIO
/usr/local/bundle/gems/faraday-1.3.1/lib/faraday/file_part.rb:66: warning: previous definition of CompositeReadIO was here
/usr/local/bundle/gems/faraday-multipart-1.0.4/lib/faraday/multipart.rb:21: warning: already initialized constant Faraday::UploadIO
/usr/local/bundle/gems/faraday-1.3.1/lib/faraday/file_part.rb:59: warning: previous definition of UploadIO was here
DEPRECATION WARNING: Initializing a Blacklight::Configuration::ViewConfig implicitly (by calling gallery) is deprecated. Call it as gallery! or pass initialize arguments. (called from block in <class:CatalogController> at /app/samvera/hyrax-webapp/app/controllers/catalog_controller.rb:18)
DEPRECATION WARNING: Initializing a Blacklight::Configuration::ViewConfig implicitly (by calling masonry) is deprecated. Call it as masonry! or pass initialize arguments. (called from block in <class:CatalogController> at /app/samvera/hyrax-webapp/app/controllers/catalog_controller.rb:19)
DEPRECATION WARNING: Initializing a Blacklight::Configuration::ViewConfig implicitly (by calling slideshow) is deprecated. Call it as slideshow! or pass initialize arguments. (called from block in <class:CatalogController> at /app/samvera/hyrax-webapp/app/controllers/catalog_controller.rb:20)
DEPRECATION WARNING: Blacklight::AccessControls::Enforcement is deprecated and will be removed in 1.0. (called from include at /app/samvera/hyrax-webapp/app/models/search_builder.rb:7)
/usr/local/bundle/gems/pbcore-0.3.2/lib/pbcore/element.rb:5: warning: already initialized constant SAXMachine::SAXAbstractHandler::NO_BUFFER
/usr/local/bundle/gems/sax-machine-1.3.2/lib/sax-machine/handlers/sax_abstract_handler.rb:5: warning: previous definition of NO_BUFFER was here
Puma starting in single mode...
* Version 4.3.12 (ruby 2.7.6-p219), codename: Mysterious Traveller
* Min threads: 5, max threads: 5
* Environment: development
* Listening on tcp://0.0.0.0:3000
Use Ctrl-C to stop

Additional Information

This should be done last.

Consider using shopify tool: https://github.com/Shopify/deprecation_toolkit

Done Looks Like

Address the following deprecation warnings

Notes

These are other deprecation warnings found in gems installed in the application

ShanaLMoore commented 1 year ago

Since these are warnings only and aren't breaking the application, these really don't need to be addressed right now. It will be important for their next upgrade.

we definitely will not be fixing the deprecation warnings for third party gems.

WIP PR: https://github.com/WGBH-MLA/ams/pull/774/files Branch: i61-deprecations can be used for future work.