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
fix: filter hilla and copilot packages better #19113
Conversation
Filter "com/vaadin/hilla" and "com/vaadin/copilot" packages by default from the class scanner in VaadinServletContextInitializer and include only what is really needed: com.vaadin.copilot.CopilotIndexHtmlLoader, com.vaadin.copilot.CopilotLoader and com.vaadin.hilla.startup. This speeds up mostly reload time and also startup time a bit. Related-to: #19112
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only thing here is how do we bring up the issue that if copilot adds some other scan required parts?
Hilla would seem to use the startup package which makes it a non issue, but copilot does not. Should we ask copilot to also use a dedicated pacakge for startup and scanning?
#19117 has a solution for that. It would let copilot and hilla to define what packages or classes to include/exclude. |
Since we don't have #19117 done yet and no schedule for it, having a dedicated package like But is it worth to refactor package names in Copilot? If there's no plans to add new classes that Flow should scan, then waiting that #19117 is done could make more sense. Pinging @MarcinVaadin for better insight regarding Copilot. |
Makes sense to refactor copilot to use |
Added |
I can fix copilot as part of the next Flow upgrade |
You can remove the copilot classes also already |
Quality Gate passedIssues Measures |
Filter "com/vaadin/hilla" and "com/vaadin/copilot" packages by default from the class scanner in
VaadinServletContextInitializer
and include only what is really needed:com.vaadin.copilot.startup
andcom.vaadin.hilla.startup
. This speeds up mostly reload time and also startup time a bit.Related-to: #19112