Skip to content

Fix declarative UI page change with signaled data table loading#48413

Open
jonathancgt wants to merge 1 commit intokeycloak:mainfrom
jonathancgt:fix/reload-pagelist-on-providerid-change
Open

Fix declarative UI page change with signaled data table loading#48413
jonathancgt wants to merge 1 commit intokeycloak:mainfrom
jonathancgt:fix/reload-pagelist-on-providerid-change

Conversation

@jonathancgt
Copy link
Copy Markdown
Contributor

Closes #48284

@jonathancgt jonathancgt requested review from a team as code owners April 23, 2026 13:43
@jonathancgt jonathancgt force-pushed the fix/reload-pagelist-on-providerid-change branch from 6ce929d to bb28eb7 Compare April 23, 2026 13:53
@ahus1 ahus1 requested a review from edewit April 23, 2026 15:13
@ahus1
Copy link
Copy Markdown
Member

ahus1 commented Apr 23, 2026

@edewit - can you please have a look as you would have probably the best knowledge in this area?

Copy link
Copy Markdown

@keycloak-github-bot keycloak-github-bot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unreported flaky test detected, please review

@keycloak-github-bot
Copy link
Copy Markdown

Unreported flaky test detected

If the flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR.

org.keycloak.testsuite.authz.PolicyEvaluationTest#

Keycloak CI - Base IT (3)

org.opentest4j.AssertionFailedError: expected: <PERMIT> but was: <null>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
...
org.opentest4j.AssertionFailedError: expected: <PERMIT> but was: <null>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
...
org.opentest4j.AssertionFailedError: expected: <PERMIT> but was: <null>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
...

Report flaky test

};
return await adminClient.components.find({ ...params });
const loader = {
signal: { providerId },
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an elegant way to notify KeycloakDataTable that the route changed, so the useFetch dependencies will trigger it to run again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UiPageProvider components not refreshed on page change

3 participants