Core Code Plugin Support - Changes for 4.0#3329
Conversation
c270015 to
3bad367
Compare
|
@jdshaw thanks for the PR, I am in the process of reviewing it. Could you point me to the plugins that are being fixed by these changes? |
|
@thimios The title isn't the best. I'll changed it to reflect that this PR fixes core code support for plugins. |
|
An example of a plugin that would have broken without these changes: https://github.com/dartmouth-dltg/local_contexts_projects. |
|
@jdshaw that's awesome! It would be very helpful to know which specific plugins you are working with that motivated these changes. I would like to test them out as part of reviewing these changes. |
|
I should note that the local contexts plugin is the most complex and requires a bit of config and knowledge of local contexts to get setup. The harmful content plugin is self contained and also relies on most of the core code changes. |
|
@jdshaw looks good to me, could you rebase on master (ci has been updated so you should get a green run then). Could you also squash all the changes into a single commit before merging? |
- properly render plugin layouts inline - allow plugins to add their own shared/templates equivalents - due to changes in ActionView::PartialRenderer render method
3bad367 to
1ec6bee
Compare
|
Rebased. Will squash and merge when the tests complete. |
|
@thimios Looks like there are some issues with the Accessibility tests. I'm assuming that's upstream of any changes I made since there's nothing in here that should be affecting accessibiity. |
@jdshaw there is flakiness on those, we are working on fixing it. Go ahead with squashing and I will have to rerun the accessibility specs a couple of times to get them green. Thanks! |
* Plugin Layouts - properly render plugin layouts inline - allow plugins to add their own shared/templates equivalents - due to changes in ActionView::PartialRenderer render method * fix plugin rendering for public views * more fixes for plugin template rendering for public * Correct errant find/replace * fix plugin locals for pdf digital object links
ActionView::PartialRenderer rendermethodDescription
Some plugin partials were not rendering inline properly. Additionally, changes to
ActionView::PartialRenderernecessitated the inclusion of an additional plugin file (frontend/views/_shared_templates.html.erb) to allow plugins to add their own templates for the frontend.Also fixes local variable for plugins which use a plugin supplied
_pdf_digital_object_linkspartialRelated JIRA Ticket or GitHub Issue
How Has This Been Tested?
Local tests. Mac OS 14, MariaDB 10.11.4, Solr 8.11.2
Screenshots (if appropriate):
Types of changes
Checklist: