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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

for multi database connection #2612

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

for multi database connection #2612

wants to merge 1 commit into from

Conversation

stadia
Copy link

@stadia stadia commented Jun 18, 2024

At the same time, I want to use multi-database connections. But the query builder of Search::Query doesn't support this. so I decided to use the connection of @scoped_resource and rewrite this code.

This commit includes a refactor of the search functionality in the Administrate module. The changes include improvements to the query parsing and filtering mechanisms. The search now supports more complex queries and filters, improving the overall search experience.
@nickcharlton
Copy link
Member

Ah, nice thanks!

I think if we're going to introduce multi-database support (which we should, as it's a Rails default option now), we're going to need to think about testing for that situation, it might not just be here that's a problem (although you'd presumably tried this out and not hit anything else!) but we also might accidentally break it in future.

Do you have any thoughts on how best we might do that?

The first idea which comes to mind is another GitHub Action to spin up multiple databases and fetch records from different ones, but that's probably quite a bit of work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants