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

Add hot reload context #2596

Merged
merged 3 commits into from
May 28, 2019
Merged

Conversation

stuartwdouglas
Copy link
Member

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.

@mkouba
Copy link
Contributor

mkouba commented May 27, 2019

@stuartwdouglas I think that we should have an issue for this kind of PRs...

Copy link
Member

@gsmet gsmet left a 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.
Copy link
Member

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
Copy link
Member

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)

@stuartwdouglas
Copy link
Member Author

stuartwdouglas commented May 27, 2019

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).

@mkouba
Copy link
Contributor

mkouba commented May 27, 2019

Pull requests are issues on github though..

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.

@mkouba mkouba requested a review from gsmet May 28, 2019 09:27
Copy link
Contributor

@mkouba mkouba left a 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 mkouba merged commit fb47206 into quarkusio:master May 28, 2019
@gsmet gsmet added this to the 0.16.0 milestone May 30, 2019
@emmanuelbernard
Copy link
Member

@mkouba I agree with you I prefer separate issues from impl and multiple potential PRs on a subject acting as issues

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.

4 participants