Repository navigation
Issue #8749: Add an option to control the order of the event query and admin event query - #8822
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? |
…d 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). |
I am sad to hear this had crossed the development of your tests. Does this happen for e.g. 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