Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
# Backport This will backport the following commits from `main` to `8.x`: - [Fixes session timeout toast countdown (#198266)](#198266) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Jeramy Soucy","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-30T12:04:35Z","message":"Fixes session timeout toast countdown (#198266)\n\n## Summary\r\n\r\nA regression was introduced when upgrading to react-intl v6, and the\r\n`FormattedRelative` component was replaced by the\r\n`FormattedRelativeTime` component. The new component requires an\r\naddition property be specified in order to have the same behavior as the\r\nprevious - formatting seconds > 60 as minutes, and counting down when\r\nbelow 1 minute.\r\n\r\nThis PR adds the `updateIntervalInSeconds` property to the\r\n`FormattedRelativeTime` component of the session expiration toast. This\r\nPR also adds a unit test case to check the time format when > 60s\r\nremain.\r\n\r\n### Testing\r\n\r\n1. Add the following Kibana configuration setting\r\n```\r\nxpack.security.session.idleTimeout: \"2m\" # can be anything over 1m, shorter is better for testing\r\n```\r\n2. Start ES & Kibana, log in\r\n3. Verify the session expiration toast appears and first displays\r\nminutes. Leave the toast open.\r\n4. Verify that after 1 minute, the toast begins counting down seconds\r\n5. Repeat the test from main and verify that the toast only shows the\r\ninitial number of seconds\r\n\r\n## Release Note\r\nA bug was fixed that caused the session expiration toast to incorrectly\r\nrender the remaining time.","sha":"e3c080750ca703f8240f6d47be0285c46f6e1632","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:Security","v9.0.0","backport:prev-minor"],"title":"Fixes session timeout toast countdown","number":198266,"url":"https://github.com/elastic/kibana/pull/198266","mergeCommit":{"message":"Fixes session timeout toast countdown (#198266)\n\n## Summary\r\n\r\nA regression was introduced when upgrading to react-intl v6, and the\r\n`FormattedRelative` component was replaced by the\r\n`FormattedRelativeTime` component. The new component requires an\r\naddition property be specified in order to have the same behavior as the\r\nprevious - formatting seconds > 60 as minutes, and counting down when\r\nbelow 1 minute.\r\n\r\nThis PR adds the `updateIntervalInSeconds` property to the\r\n`FormattedRelativeTime` component of the session expiration toast. This\r\nPR also adds a unit test case to check the time format when > 60s\r\nremain.\r\n\r\n### Testing\r\n\r\n1. Add the following Kibana configuration setting\r\n```\r\nxpack.security.session.idleTimeout: \"2m\" # can be anything over 1m, shorter is better for testing\r\n```\r\n2. Start ES & Kibana, log in\r\n3. Verify the session expiration toast appears and first displays\r\nminutes. Leave the toast open.\r\n4. Verify that after 1 minute, the toast begins counting down seconds\r\n5. Repeat the test from main and verify that the toast only shows the\r\ninitial number of seconds\r\n\r\n## Release Note\r\nA bug was fixed that caused the session expiration toast to incorrectly\r\nrender the remaining time.","sha":"e3c080750ca703f8240f6d47be0285c46f6e1632"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/198266","number":198266,"mergeCommit":{"message":"Fixes session timeout toast countdown (#198266)\n\n## Summary\r\n\r\nA regression was introduced when upgrading to react-intl v6, and the\r\n`FormattedRelative` component was replaced by the\r\n`FormattedRelativeTime` component. The new component requires an\r\naddition property be specified in order to have the same behavior as the\r\nprevious - formatting seconds > 60 as minutes, and counting down when\r\nbelow 1 minute.\r\n\r\nThis PR adds the `updateIntervalInSeconds` property to the\r\n`FormattedRelativeTime` component of the session expiration toast. This\r\nPR also adds a unit test case to check the time format when > 60s\r\nremain.\r\n\r\n### Testing\r\n\r\n1. Add the following Kibana configuration setting\r\n```\r\nxpack.security.session.idleTimeout: \"2m\" # can be anything over 1m, shorter is better for testing\r\n```\r\n2. Start ES & Kibana, log in\r\n3. Verify the session expiration toast appears and first displays\r\nminutes. Leave the toast open.\r\n4. Verify that after 1 minute, the toast begins counting down seconds\r\n5. Repeat the test from main and verify that the toast only shows the\r\ninitial number of seconds\r\n\r\n## Release Note\r\nA bug was fixed that caused the session expiration toast to incorrectly\r\nrender the remaining time.","sha":"e3c080750ca703f8240f6d47be0285c46f6e1632"}}]}] BACKPORT--> Co-authored-by: Jeramy Soucy <[email protected]>
- Loading branch information