-
Notifications
You must be signed in to change notification settings - Fork 56
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
feat: remove EndpointsValidator
class
#3167
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3167 +/- ##
=======================================
Coverage 92.65% 92.65%
=======================================
Files 85 85
Lines 3187 3187
Branches 778 778
=======================================
Hits 2953 2953
Misses 182 182
Partials 52 52
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Prior to the unified platform, the existence of Now that we have a unified platform, users can start a Vaadin project without Spring, and later get interested in Hilla, and they can be trapped by browsing/following the docs at a wrong place that just instructs how to create endpoints. In that case, a visible enough warning could prevent confusions, but, failing the application startup still feels unnecessary to me. |
If you create an endpoint in your application, you have |
The only scenario I can think of is a Vaadin Flow app that was based on some other containers, and when they've upgraded to 24.4+, they excluded Hilla and possibly any trace of SpringBoot from the dependencies. When adding |
Quality Gate passedIssues Measures |
This is an alternative to #2666.
EndpointsValidator
checks if classes annotated with@Endpoint
or@BrowserCallable
are in the classpath and, in that case, throws an exception if Spring is not available.In 24.7 we ask Spring for the list of endpoints, so by definition if there's no Spring, there are no endpoints.
See also the discussion in #2938.