Skip to content

Allow Hyrax to correctly handle sidebar menu - #1081

Merged
laritakr merged 2 commits into
mainfrom
handle-sidebar-menu-partial-correctly
Nov 22, 2025
Merged

laritakr merged 2 commits into
mainfrom
handle-sidebar-menu-partial-correctly

Conversation

@laritakr

@laritakr laritakr commented Nov 22, 2025

Copy link
Copy Markdown
Contributor

Summary

Refs: samvera/hyku#2796

Bulkrax is attempting to support multiple versions of Hyrax, some of which do not have the sidebar_partials method defined on Hyrax::DashboardController. To ensure compatibility, we need to check for the existence of this method before trying to use it.

Previously, the code was still overriding Hyrax's partial, resulting in an incorrect sidebar menu display. By adding a conditional check, we can ensure that Bulkrax only modifies the view paths when necessary, thus allowing Hyrax to correctly handle the sidebar menu.

Screenshot 2025-11-21 at 7 17 44 PM

@laritakr
laritakr force-pushed the handle-sidebar-menu-partial-correctly branch from 9b28858 to 764cac5 Compare November 22, 2025 00:18
Bulkrax is attempting to support multiple versions of Hyrax, some of which
do not have the `sidebar_partials` method defined on `Hyrax::DashboardController`.
To ensure compatibility, we need to check for the existence of this method
before trying to use it.

Previously, the code was still overriding Hyrax's partial, resulting in
an incorrect sidebar menu display. By adding a conditional check, we can
ensure that Bulkrax only modifies the view paths when necessary, thus
allowing Hyrax to correctly handle the sidebar menu.
@laritakr laritakr added bug-fix patch-ver for release notes labels Nov 22, 2025
@laritakr
laritakr merged commit 16be572 into main Nov 22, 2025
9 checks passed
@laritakr
laritakr deleted the handle-sidebar-menu-partial-correctly branch November 22, 2025 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug-fix patch-ver for release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants