-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Add hot reload context #2596
Add hot reload context #2596
Conversation
@stuartwdouglas I think that we should have an issue for this kind of PRs... |
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.
Looks good. I spotted a couple of typos in the doc though. Could you fix them?
* A build item that can be used to query the live reload state. | ||
* | ||
* | ||
* It can also be used to store context that that is persistent between hot reloads. |
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.
s/that that/that/
} | ||
|
||
/** | ||
* If this is a live reload this set contains the set config resources that have changed |
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.
s/the set config resources/the config resource/ (or the set of)
Pull requests are issues on github though (e.g. the path /issues/2596 will take you to this page). They still show up in the release notes same as a non-pr issue, so I don't really see the value in creating a new issue (when using an external system such as JIRA this is different, but with github's integrated model I don't really see what an extra issue gets you). |
Also fixes an issue where it would be extracted on every restart
65cb0c5
to
180ad3f
Compare
I know but I can't say I like this "shortcut design". I prefer to discuss the "important" stuff separately from implementation details. But it's just my 2c. If there are no objections in the team I can live with this kind of development model. |
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.
I like the idea and I wonder if we could have something similar for the templates so that we can get rid of static fields such as io.quarkus.undertow.runtime.UndertowDeploymentTemplate.undertow
.
@mkouba I agree with you I prefer separate issues from impl and multiple potential PRs on a subject acting as issues |
This provides additional information about the hot reload state of the application, and provides a caching mechanism to avoid the need to stick things in statics.
This still needs to be expanded to include other extensions, e.g. this will allow hibernate/flyway to only initialize the DB if the SQL files have changed.