- 
                Notifications
    You must be signed in to change notification settings 
- Fork 253
Upgrading to Blacklight 9
Blacklight 9 includes some backwards-incompatible changes. Follow this guide to upgrade a Blacklight 8 application to Blacklight 9.
- 
Ensure your local application has a passing test suite. If needed, add automated tests for any important functionality, to make it obvious when something is broken. 
- 
Upgrade to the latest 8.x release so you can see any recent deprecation warnings. 
- 
Take note of any deprecation warnings originating from Blacklight in the logs and make the suggested changes. 
- 
Upgrade to Blacklight 9 and follow the Upgrade Notes below. 
To test a plugin and validate it Run the plugin with the latest version of blacklight/main.
- blacklight-hierarchy
- blacklight_range_limit - Tested and working in blacklight 9.x pre-releases as of blacklight_range_limit 9.0
- blacklight_dynamic_sitemap
- blacklight-gallery
- arclight https://github.com/projectblacklight/arclight/pull/1596 (needs a release cut)
- blacklight_oai_provider
- blacklight_iiif_search
- blacklight_advanced_search - release needed
- geoblacklight - a number of UI issues, in progress PR open
- 
The shared/header_navbarpartial no longer exists. If you used this in your application, thenrender blacklight_config.header_component.new(blacklight_config: blacklight_config)instead.
- 
The catalog/constraintspartial no longer exists. If you call this in your application, insteadrender blacklight_config.view_config(document_index_view_type).constraints_component.new(search_state: search_state)
- 
If you use importmap-rails to access Blacklight Javascript files, change the line import 'blacklight'toimport 'blacklight-frontend'. (probably in anapplication.jsfile)
- 
If you used to use import 'blacklight-frontend/app/assets/javascripts/blacklight/blacklight', it should now be switched toimport 'blacklight-frontend'
- 
For SCSS, if you used to @import 'blacklight-frontend/app/assets/stylesheets/blacklight/blacklight';, it should now be switched to@import 'blacklight-frontend/stylesheets/blacklight';.
- 
Blacklight::Document::EmailandBlacklight::Document::Smshave been removed. You may need to modify yourapp/models/solr_document.rbto remove theuse_extensionfor these.
- 
Blacklight::ConstraintComponentnow accepts aBlacklight::ClausePresenter, rather than aBlacklight::FacetItemPresenter
- 
Blacklight::DocumentComponent's initializer no longer accepts a presenter parameter. Instead, pass aBlacklight::DocumentPresenterto the document parameter.
- 
Blacklight::DocumentTitleComponent's initializer no longer accepts a document parameter. Instead, pass aBlacklight::DocumentPresenterto the presenter parameter.