Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Fixed Admin search sometimes stalling on first query #20143

Merged

Conversation

kevinansfield
Copy link
Contributor

closes https://linear.app/tryghost/issue/MOM-103

  • the yield waitForProperty(...) call that was supposed to return once the content refresh occurred never reached a valid state so the first search query (or any later query) where a content refresh occurred would never resolve causing search to look like it had stalled
  • switched to waiting for the last running task to resolve instead which does the same as the previous code intended
  • exported the getPosts request handler function so in mirage config so we can re-use it with different timing on a per-case basis

closes https://linear.app/tryghost/issue/MOM-103

- the `yield waitForProperty(...)` call that was supposed to return once the content refresh occurred never reached a valid state so the first search query (or any later query) where a content refresh occurred would never resolve causing search to look like it had stalled
- switched to waiting for the last running task to resolve instead which does the same as the previous code intended
- exported the `getPosts` request handler function so in mirage config so we can re-use it with different timing on a per-case basis
@github-actions github-actions bot added the affects:admin Anything relating to Ghost Admin label May 6, 2024
@kevinansfield kevinansfield enabled auto-merge (squash) May 6, 2024 20:59
@kevinansfield kevinansfield merged commit 27e771b into TryGhost:main May 6, 2024
19 checks passed
@kevinansfield kevinansfield deleted the fix-stalled-search-refresh branch May 6, 2024 21:05
kevinansfield added a commit that referenced this pull request May 7, 2024
closes https://linear.app/tryghost/issue/MOM-103

- the `yield waitForProperty(...)` call that was supposed to return once the content refresh occurred never reached a valid state so the first search query (or any later query) where a content refresh occurred would never resolve causing search to look like it had stalled
- switched to waiting for the last running task to resolve instead which does the same as the previous code intended
- exported the `getPosts` request handler function so in mirage config so we can re-use it with different timing on a per-case basis
sagzy pushed a commit that referenced this pull request May 7, 2024
closes https://linear.app/tryghost/issue/MOM-103

- the `yield waitForProperty(...)` call that was supposed to return once the content refresh occurred never reached a valid state so the first search query (or any later query) where a content refresh occurred would never resolve causing search to look like it had stalled
- switched to waiting for the last running task to resolve instead which does the same as the previous code intended
- exported the `getPosts` request handler function so in mirage config so we can re-use it with different timing on a per-case basis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects:admin Anything relating to Ghost Admin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant