- Issue created by @a.sotirov
- Status changed to Needs review
8 months ago 3:58pm 27 May 2024 - π§π·Brazil renatog Campinas
Thank you so much for your contribution
Marking as needs review
- πͺπΈSpain eduardo morales alberti Spain, πͺπΊ
eduardo morales alberti β made their first commit to this issueβs fork.
- πͺπΈSpain eduardo morales alberti Spain, πͺπΊ
We created the fork to make some changes, but after reviewing and testing the patch, we validated it and is not needed.
Reviewed and tested. - π§π·Brazil renatog Campinas
Nice! Thanks for your feedback
I'll try to focus on this
- πͺπΈSpain eduardo morales alberti Spain, πͺπΊ
We got some errors from the cache tags on some pages:
TypeError: array_merge(): Argument #1 must be of type array, null given in array_merge() (line 140 of /var/www/html/docroot/modules/contrib/modal_page/modal_page.module).
LogicException: A stray renderRoot() invocation is causing bubbling of attached assets to break. in Drupal\Core\Render\Renderer->renderRoot() (line 156 of /var/www/html/docroot/core/lib/Drupal/Core...
Warning: Undefined array key "tags" in modal_page_preprocess_html() (line 141 of /var/www/html/docroot/modules/contrib/modal_page/modal_page.module) #0 /var/www/html/docroot/core/includes/bootstrap...
- Merge request !47Resolve #3449895 "Cache tags invalidation" β (Open) created by eduardo morales alberti
- π§π·Brazil renatog Campinas
Hey Eduardo, thanks for your effort helping Modal project
About your update on MR, seems that we can reduce one condition here:
if (isset($variables['page'])) { if (!isset($variables['page']['#cache']['tags'])) { $variables['page']['#cache']['tags'] = []; }
To this, right?
if (isset($variables['page']) && !isset($variables['page']['#cache']['tags'])) { $variables['page']['#cache']['tags'] = []; }
- π§π·Brazil renatog Campinas
Nevermid, I saw that the rest of logic and really makes sense this logic
- πͺπΈSpain eduardo morales alberti Spain, πͺπΊ
Thank you for reviewing @renatog. Are there any pending issues?
- π§π·Brazil renatog Campinas
Thank you for reviewing @renatog
My pleasure! Appreciated your effort on this @eduardo-morales-alberti
Are there any pending issues?
Not from my side. It's ready to be reviewed?
On #7 you marked as "Needs work"
On #8 you updated the MR but the status wasn't updated to "Needs Review" so I assumed that was pending something else
If everything is ok, please update to NR and we can test that and move forward - πͺπΈSpain eduardo morales alberti Spain, πͺπΊ
Sorry, my bad.
Ready to review, working properly for our side. - π§π·Brazil renatog Campinas
After using code from MR I open "/admin/structure/modal/add" and there is a unexpected error
Error: Call to undefined method Drupal\Core\Render\Renderer::renderInIsolation() in Drupal\modal_page\Form\ModalForm->form() (line 118 of /app/web/modules/contrib/modal_page/src/Form/ModalForm.php).
- π§π·Brazil renatog Campinas
Rolling back to NR, because seems not related to this MR
- π§π·Brazil renatog Campinas
Issue above is fixed at π Render plain image is deprecated Needs work
Tested and it's really working fine
- 976f780f committed on 5.0.x
Issue #3449895 by eduardo morales alberti, a.sotirov, renatog: Cache...
- 976f780f committed on 5.0.x
- 098a60c7 committed on 6.0.x
Issue #3449895 by eduardo morales alberti, a.sotirov, renatog: Cache...
- 098a60c7 committed on 6.0.x
Automatically closed - issue fixed for 2 weeks with no activity.