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

Test and implementation for warning on missing Beacon.LiveAdmin.Plug in the :browser pipeline #75

Merged
merged 6 commits into from
Sep 20, 2023

Conversation

kgautreaux
Copy link
Contributor

I'm not sure this is the best testing strategy but it does have the advantage of real world verisimilitude.

I'm also not sure that rescuing the error and reraising with a logger warning explaining the fix is emphatic enough, but I thought I'd give it a try since the guides rewrite will probably prevent someone from forgetting to add this step.

Please feel free to squash the commits if this can be merged or let me know and I can squash and resubmit the PR. Thanks!

@kgautreaux
Copy link
Contributor Author

I guess I should reference this closes Issue #71 in this thread.

Copy link
Contributor

@leandrocp leandrocp left a comment

Choose a reason for hiding this comment

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

Hey @kgautreaux thanks for the PR!

I'm not sure this is the best testing strategy but it does have the advantage of real world verisimilitude.

The test is perfect.

I'm also not sure that rescuing the error and reraising with a logger warning

Left a code suggestion.

Please feel free to squash the commits if this can be merged or let me know and I can squash and resubmit the PR.

You can push as many commits as you want, I always squash before merging so don't worry about it.

lib/beacon/live_admin/page_live.ex Show resolved Hide resolved
Copy link
Contributor

@leandrocp leandrocp left a comment

Choose a reason for hiding this comment

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

Hey @kgautreaux only format is failing but the implementation looks good so I'm merging this one. Thank you!

@leandrocp leandrocp merged commit ee9dc0d into BeaconCMS:main Sep 20, 2023
2 of 3 checks passed
@kgautreaux kgautreaux deleted the raise_if_plug_missing branch September 20, 2023 15:25
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