Skip to content

Conversation

@tylerhutcherson
Copy link
Collaborator

We were leaning on a hack to run some async code in a sync setting. This was both dangerous and an anti-pattern. We also needed to refactor some of the shared and non-shared content between the BaseSearchIndex and derivatives.

@tylerhutcherson tylerhutcherson added the bug Something isn't working label Jul 30, 2024
Copy link
Collaborator

@rbs333 rbs333 left a comment

Choose a reason for hiding this comment

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

Looks like improvement to me. Key takeaway to use the new decorated .set_client

@tylerhutcherson
Copy link
Collaborator Author

Looks like improvement to me. Key takeaway to use the new decorated .set_client

Yes, for AsyncSearchIndex. Because we have to run a bit of async code to properly, and safely set it up, that's the correct way rather than the initial hack we had in place.

@tylerhutcherson tylerhutcherson merged commit 67eee3d into main Jul 30, 2024
@tylerhutcherson tylerhutcherson deleted the fix/RAAE-203/refactor-search-index branch July 30, 2024 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants