Skip to content

[v13] Retry search in Connect if current workspace cert has expired#25179

Merged
ravicious merged 10 commits intobranch/v13from
bot/backport-24880-branch/v13
Apr 28, 2023
Merged

[v13] Retry search in Connect if current workspace cert has expired#25179
ravicious merged 10 commits intobranch/v13from
bot/backport-24880-branch/v13

Conversation

@ravicious
Copy link
Copy Markdown
Member

Backport #24880 to branch/v13

lockOpen worked great when we were concerned only about user interaction
with a modal closing the search bar as well. However, in the next commit
I'm going to add a login modal that's shown if the search fails with a
retryable error.

In that scenario, pressing Enter in the modal wouldn't work, as it would
be captured by the window listener that ResultList adds.

To work around this problem, I refactored lockOpen into pauseUserInteraction.
It still works pretty much the same way. But then instead of having checking
isLockedOpen in the close function, we have a new addWindowEventListener
function.

addWindowEventListener automatically removes the listener after
pauseUserInteraction is called. This solves both the problem of closing
the modal and the problem of using the enter key in the modal.
@ravicious ravicious enabled auto-merge April 26, 2023 10:55
Copy link
Copy Markdown
Contributor

@espadolini espadolini left a comment

Choose a reason for hiding this comment

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

bot

@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from ryanclark April 28, 2023 09:52
@ravicious ravicious added this pull request to the merge queue Apr 28, 2023
Merged via the queue into branch/v13 with commit 6e0b727 Apr 28, 2023
@ravicious ravicious deleted the bot/backport-24880-branch/v13 branch April 28, 2023 10:18
@r0mant r0mant mentioned this pull request Jul 14, 2023
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.

4 participants