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

i54 Get UI working with Dual Boot Conditionals #743

Merged
merged 26 commits into from
Aug 9, 2023

Conversation

ShanaLMoore
Copy link
Collaborator

@ShanaLMoore ShanaLMoore commented Aug 8, 2023

This PR corrects issues that prevented a dev from seeing the UI/homepage when dual booting. This was mainly done by adding dual boot conditionals throughout the code. From here devs should be unblocked from subsequent tickets.

ref:

NORMAL boot:

image

Booting Rails 6.1:

image

- Note: I reverted a commit that allowed the user to navigate to the dashboard without error This will get resolved in a separate PR.

foglabs and others added 6 commits May 3, 2021 14:25
Merge to Main - Production deployment
Merge from `development` for production deployment
Ship latest to production
@ShanaLMoore ShanaLMoore changed the title WIP i54 WIP Aug 8, 2023
ShanaLMoore and others added 16 commits August 8, 2023 16:01
This commit upgrade bootstrap per the 'Upgrade Hyrax 3.x to Hyrax 4' wiki instructions.

wiki:
- https://github.com/samvera/hyrax/wiki/Upgrade-Hyrax-3.x-to-Hyrax-4

Issue:
- scientist-softserv#22
In this commit I made a copy of the asset directory in order to server a different version of it when dual booting this application.
In this commit we Update app/assets/javascripts/application.js per the Hyrax 3 to Hyrax 4 wiki
instead of copying the asset directory, we are copying application js/css and making the global directory. We tell the view to use these instead when dual booting.
…gallery file

For some reason not doing so would cause issues with the pipeline not finding blacklight_gallery
This commit uses the solution from Bulkrax, to update all the deprecated references to Solrizer. At this point, I am able to dual boot up with app and visit/see the dashboard.

ref:
- https://github.com/samvera-labs/bulkrax/pull/700/files
@ShanaLMoore ShanaLMoore changed the title i54 WIP i54 Get UI working with Dual Boot Conditionals Aug 9, 2023
@ShanaLMoore ShanaLMoore marked this pull request as ready for review August 9, 2023 17:49
@ShanaLMoore ShanaLMoore marked this pull request as draft August 9, 2023 17:52
@ShanaLMoore ShanaLMoore marked this pull request as ready for review August 9, 2023 19:48
@ShanaLMoore ShanaLMoore merged commit 38bc4b0 into develop Aug 9, 2023
6 checks passed
<% if App.rails_5_1? %>
<%= text_field_tag :q, params[:q], placeholder: t('blacklight.search.form.search.placeholder'), class: "search_q q form-control", id: "q", autofocus: should_autofocus_on_search_box?, data: { autocomplete_enabled: autocomplete_enabled?, autocomplete_path: blacklight.suggest_index_path } %>
<% else %>
<%= text_field_tag :q, params[:q], placeholder: t('blacklight.search.form.search.placeholder'), class: "search_q q form-control", id: "q", autofocus: should_autofocus_on_search_box?, data: { autocomplete_enabled: autocomplete_enabled? } %>
Copy link
Collaborator

@kirkkwang kirkkwang Aug 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like we can remove the entire data argument here, found this commit fwiw

Removed the data config item to fix error: undefined method `suggest_index_path'
https://gitlab.galileo.usg.edu/DLG/meta/-/merge_requests/359/diffs?commit_id=1157838179ef6d22946a33dc1329ebfe52d6afa5

Copy link
Collaborator Author

@ShanaLMoore ShanaLMoore Aug 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good find! But since I already merged this PR let's make another one.

@orangewolf orangewolf deleted the i54-dual-booting-ui branch September 11, 2023 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants