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

Support Blacklight 8 #3047

Open
1 of 8 tasks
corylown opened this issue Jul 8, 2024 · 7 comments · Fixed by #3131 or #3137 · May be fixed by #3136
Open
1 of 8 tasks

Support Blacklight 8 #3047

corylown opened this issue Jul 8, 2024 · 7 comments · Fixed by #3131 or #3137 · May be fixed by #3136
Assignees

Comments

@corylown
Copy link
Contributor

corylown commented Jul 8, 2024

This may have mostly been completed via #2853

Relates to:

Upgrading to Blacklight 8 Guide

Things we can drop if we stop supporting Blacklight 7:

Update: Look at this comment for current state: #3047 (comment)

@corylown
Copy link
Contributor Author

corylown commented Aug 7, 2024

Known issues with Blacklight 8 & Spotlight:

  • app/views/layouts/spotlight/base.html.erb and app/views/shared/_header_navbar.html.erb both call Blacklight's container_classes helper that in Blacklight 8 calls blacklight_config. Seeing some test failures complaining that blacklight_config is not defined.
  • The only way I've been able to get spotlight to work with Blacklight 8 is to generate spotlight with Blacklight 7 and then switch to version 8 via the gemfile, likely due to different default settings for asset handling in BL7 vs 8.
  • Had to add to app/assets/config/manifest.js
//= link blacklight/manifest.js
  • The public/private checkbox control in the items admin view is broken. When you click the checkbox you get an error: Unable to save the bookmark at this time
  • The shared/flash_msg is complaining about blacklight_config being undefined.
  • _solr_documents_features_block.html.erb is trying to use the truncate helper and I think it's weirdly finding the ActiveRecord::ConnectionAdapters::DatabaseStatements.truncate instead which has a different method signature.

@hudajkhan hudajkhan self-assigned this Sep 11, 2024
@hudajkhan
Copy link
Contributor

hudajkhan commented Sep 11, 2024

I will start picking up specific pieces of this issue. I'm not sure if we want the open tasks in the ready column as well but just indicating I am beginning to look at this. Starting with #3069

@corylown
Copy link
Contributor Author

Thanks @hudajkhan! I think the work for this ticket is described by my Aug 7 comment. We know that Blacklight 8 mostly works with Spotlight 4 because DLME is on Blacklight 8. The goal here is mostly to get the tests passing and address any lingering incompatibilities. We can talk more after stand-up, but there are a few different approaches we could take as other work to get CI and the generators working with Blacklight 8.

@hudajkhan
Copy link
Contributor

hudajkhan commented Sep 13, 2024

Testing this out.
Note: I updated the test template generator to add the //= link blacklight/manifest.js to the internal test app's app/assets/config/manifest.js file. I had to manually update the internal test app's Gemfile to use Blacklight 8.

  • The checkmark to toggle public status of item is still throwing the bookmark error mentioned by @corylown above.
  • 13 rspec failures currently, with a few I saw without Blacklight 8 (around Selenium/chromedriver and not finding a modal). Others include the solr documents features block error looking for a truncate method (as noted above), three tests failing because of not finding blacklight_config, breadcrumbs in catalog controller tests that expect "L'" in the text but instead got "L ' " which implies a difference in encoding, and a browse category search which shows the search matches 3 of 6 items as opposed to the expected 1 of 6 items etc.
  • I am not sure where the flash msg error is happening.

@hudajkhan
Copy link
Contributor

hudajkhan commented Sep 18, 2024

Here are the test failures that happen only with Blacklight 8.3 for me. (8.4 is also leading to some errors which I will look at separately). I am creating separate issues for these (as well as 8.4 specific issues). For the feature_page_admin_spec issues, it is possible that those are only local for me but I'll leave them here for reference.

@hudajkhan
Copy link
Contributor

In this comment, I will track Blacklight 8.4 test failures:

  • Handle missing Blacklight SkipLinkComponent

@hudajkhan
Copy link
Contributor

Reopening just for tracking the items above.

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