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

Raise missing template errors from render_site_layout and render_menu #2861

Merged
merged 3 commits into from
May 8, 2024

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented May 7, 2024

What is this pull request for?

This raises an missing partial error in the test and development environments if there's a missing partial.

Notable changes (remove if none)

No changes in production, but better visibility on important errors in dev and test environments.

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

@mamhoff mamhoff requested a review from a team as a code owner May 7, 2024 14:51
Copy link

codecov bot commented May 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.86%. Comparing base (f6b6ad5) to head (48be942).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2861   +/-   ##
=======================================
  Coverage   95.86%   95.86%           
=======================================
  Files         229      229           
  Lines        6211     6216    +5     
=======================================
+ Hits         5954     5959    +5     
  Misses        257      257           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mamhoff mamhoff force-pushed the error-on-non-existing-menu branch from 6793568 to 3d2a0e4 Compare May 7, 2024 17:40
If we miss a partial, our specs should tell us.
When we miss a partial, we want to know (at least in the development and
test environments).
@mamhoff mamhoff force-pushed the error-on-non-existing-menu branch from 3d2a0e4 to 6e874f9 Compare May 8, 2024 07:41
This extracts the error handling for missing templates into a helper
method.
@tvdeyen tvdeyen added this to the 7.2 milestone May 8, 2024
@tvdeyen tvdeyen merged commit 6c42bf4 into AlchemyCMS:main May 8, 2024
36 checks passed
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.

2 participants