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

Remove the _previous_next_doc.html.erb partial #2708

Merged
merged 2 commits into from
May 7, 2022
Merged

Conversation

jcoyne
Copy link
Member

@jcoyne jcoyne commented May 6, 2022

Observations have been made about how challenging it is to follow program execution through various partials, helpers and components. I identified that the _previous_next_doc.html.erb partial does nothing but render a component. We can remove this partial and make it easier for people reading the code to follow the control flow.

This partial is not used by spotlight, blacklight-range_limit, or blacklight-advanced_search.

Complaints have been made about how challenging it is to follow program execution through various partials, helpers and components.  I identified that the _previous_next_doc.html.erb partial does nothing but render a component. We can remove this partial and make it easier for people reading the code to follow the control flow.
@barmintor
Copy link
Contributor

Seems like a good change to me, so I will ask my question: Should we remove the partial entirely on main and backport the deprecation to release-7.x?

@jcoyne
Copy link
Member Author

jcoyne commented May 6, 2022

@barmintor I have no preference on that matter.

Copy link
Contributor

@barmintor barmintor left a comment

Choose a reason for hiding this comment

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

Opened #2711 to deprecate in 7.x

@barmintor barmintor merged commit 3a52d69 into main May 7, 2022
@barmintor barmintor deleted the unnecessary-partial branch May 7, 2022 18:02
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.

None yet

2 participants