-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Issue #8749: Add an option to control the order of the event query and admin event query #8822
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
79b7c32
to
6313936
Compare
6313936
to
07f8446
Compare
It seems that the test is neither using |
07f8446
to
b3b43ca
Compare
@hmlnarik I added timestamps for the events similarly how it is done in other tests. |
b3b43ca
to
255b14c
Compare
Thank you @sschu, the code after update looks good. Could you please check the model test failures in legacy-jpa profiles though? |
…query and admin event query
255b14c
to
97126b4
Compare
@hmlnarik Sorry for the delay, I stumbled across a really nasty bug not setting the realm as expected when creating events using the Btw. do you have any idea why this test here: https://github.com/keycloak/keycloak/blob/aec8e6af509af1aa83b3049edf38763a3b000e7c/testsuite/model/src/test/java/org/keycloak/testsuite/model/events/AdminEventQueryTest.java#L78-#L100 |
@hmlnarik The failing test is |
@hmlnarik Now everything is green (except code check, but that seems to always fail currently). |
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.
Thank you for the PR!
I am sad to hear this had crossed the development of your tests. Does this happen for e.g. Lines 187 to 199 in 1d2d3e5
This has been a conscious decision for this development storage - to avoid implementing tricky merging results coming from the underlying store with those from the current transaction. In the server code it does not hurt since the request processing either writes or reads the same data in a transaction, not both at the same time. For the tests, the right way would be exactly the way you did with splitting the transaction. In fact, such merging will be only implemented properly in the tree store (#9742). |
@hmlnarik Indeed, it only happens on |
Closes #8749