-
Notifications
You must be signed in to change notification settings - Fork 3k
Provides Optional support inside Hibernate with Panache and MongoDB with Panache #5616
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
Conversation
8783c65
to
13ae9cd
Compare
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.
LGTM
Ah wait… it's missing tests. |
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.
Missing tests
CI failed due to formatting errors. |
f0a4c42
to
76af4ab
Compare
@FroMage I add tests and correct a bunch of bugs :) I added an overload on Two questions:
|
No, I think that's fine.
The Optional<Person> res = Person.findByIdOptional(personId);
res... |
76af4ab
to
5da6f77
Compare
@FroMage I updated the documenation to use an interlediate variable. |
Keycloak tests failed due to:
Panache tests failed due to:
Except the last one is one of those tests that can't possibly fail. It's a test that's reusing a module which doesn't have the fix. |
@FroMage I just launched the Hibernate with Panache native integration test on the branch locally and it pass. Can you re-launch the CI ? We saw multiple CI intermitent failures lately .... |
Re-running them, but last time, once they started failing, they kept failing. The CI was corrupted. Let's see how this goes. |
@loicmathieu you can rebase with master an force push to have a fresh CI run |
5da6f77
to
73d918b
Compare
@machi1990 done 🤞 |
Thanks @loicmathieu let’s see what CI has to say. |
@machi1990 still failing seems CI related :( |
That's what I thought: once it's bust, it's dead. Perhaps open a new PR? |
@machi1990 you were on that PR which had the same issues last week, right? How did it get solved there? |
@loicmathieu :-( shame, hope we get this sorted soon.
Yeah, I have seen CI related issues in some PR lately and many (including mine) were solved by rebasing on top of master. But there was this #5306 PR that you manually had to connect to Azure and clear the cache or something. @n1hility helped with that. |
Rebase onto master is usually the way to go. We need to look into this more as part of #5520 |
73d918b
to
7201009
Compare
Rebased again on master, if it still fails I will close it and open a new one ... 🤞 |
@FroMage @machi1990 @geoand it works !!! 🎉 |
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.
LGTM except minor points.
...panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/runtime/PanacheQueryImpl.java
Outdated
Show resolved
Hide resolved
...s/panache/mongodb-panache/runtime/src/main/java/io/quarkus/mongodb/panache/PanacheQuery.java
Outdated
Show resolved
Hide resolved
7201009
to
d5fcfab
Compare
d5fcfab
to
e200795
Compare
@FroMage I think I adress all your points. Can you approve thsi PR ? |
Done, thanks. |
Fixes #1368
This is a draft PR as when #5583 is merged we will want to consider also having overload for with
LockModeType
forfindByIdOptional
.cc @FroMage and @emmanuelbernard