Repository navigation
Conversation
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Pull request overview
Updates recovery code download date formatting to prefer the browser’s preferred locale, and removes leftover unused date-formatting code.
Changes:
- Use
navigator.languages[0](fallback tonavigator.language, thenen-US) forDate#toLocaleStringlocale selection. - Remove unused
dt/optionsvariables frombuildDownloadContent()after refactoring.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| themes/src/main/resources/theme/keycloak.v2/login/login-recovery-authn-code-config.ftl | Switches date formatting locale to browser-preferred language and removes unused date formatting variables. |
| themes/src/main/resources/theme/base/login/login-recovery-authn-code-config.ftl | Same locale-selection update for date formatting and cleanup of unused variables. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
595ceaa to
3d66b18
Compare
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
|
After investigating on how to resolve the proper browser locale (results in too much code, related to the issue we actually fix), decided to change from browser locale to Keycloak's negotiated locale, which is available as |
3d66b18 to
c8d32d2
Compare
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
|
Don't know why the DCO check is invalid. The sign-off line looks good to me. What's actually wrong with it? |
Unreported flaky test detectedIf 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.cluster.PermissionTicketInvalidationClusterTest#crudWithFailover |
1 similar comment
Unreported flaky test detectedIf 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.cluster.PermissionTicketInvalidationClusterTest#crudWithFailover |
|
DCO failed because: Commit sha: c8d32d2, Author: Niko Köbler, Committer: Niko Köbler; Expected "Niko Köbler niko@n-k.de", but got "Niko Köbler niko@n-k.de". IDK but that looks like the same thing |
Unreported flaky test detectedIf 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.cluster.PermissionTicketInvalidationClusterTest#crudWithFailover |
Unreported flaky test detectedIf 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.cluster.PermissionTicketInvalidationClusterTest#crudWithFailover |
|
What does it take to merge this (very small) fix? |
Also removed old and unused code from a previous refactoring. closes keycloak#52291 Signed-off-by: Niko Köbler <niko@n-k.de>
Head branch was pushed to by a user without write access
c8d32d2 to
b612442
Compare
New description/fix:
Use Keycloak's negotiated user language (from i18n context, locale attribute, ...) for formatting the the recovery codes download timestamp.
Was previously:
Trying to use the browsers preferred language first (it's the first entry in
navigator.languages[], otherwise the default browser language fromnavigator.language. If nothing is available, use the hardcodeden-USlocale.Also removed old and unused code from a previous refactoring.
closes #52291