-
Notifications
You must be signed in to change notification settings - Fork 145
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
Discussion: Making Core Search logic more modular #10804
Labels
Needs Discussion
The change proposed needs further discussion before it can be validated
Comments
whatisgalen
added a commit
that referenced
this issue
Apr 19, 2024
whatisgalen
added a commit
that referenced
this issue
Apr 19, 2024
whatisgalen
added a commit
that referenced
this issue
Apr 19, 2024
…cute_query in base search filter, re #10804
whatisgalen
added a commit
that referenced
this issue
Apr 19, 2024
whatisgalen
added a commit
that referenced
this issue
Apr 19, 2024
…earch_filter.execute_query, re #10804
whatisgalen
added a commit
that referenced
this issue
Apr 19, 2024
whatisgalen
added a commit
that referenced
this issue
Apr 19, 2024
whatisgalen
added a commit
that referenced
this issue
Apr 19, 2024
whatisgalen
added a commit
that referenced
this issue
Apr 19, 2024
whatisgalen
added a commit
that referenced
this issue
Apr 19, 2024
whatisgalen
added a commit
that referenced
this issue
Apr 19, 2024
6 tasks
whatisgalen
added a commit
that referenced
this issue
Apr 19, 2024
whatisgalen
added a commit
that referenced
this issue
Apr 19, 2024
whatisgalen
added a commit
that referenced
this issue
Apr 19, 2024
whatisgalen
added a commit
that referenced
this issue
Apr 19, 2024
…nually called on backend, re #10804
whatisgalen
added a commit
that referenced
this issue
Apr 19, 2024
whatisgalen
added a commit
that referenced
this issue
Apr 19, 2024
whatisgalen
added a commit
that referenced
this issue
Apr 19, 2024
whatisgalen
added a commit
that referenced
this issue
Apr 19, 2024
whatisgalen
added a commit
that referenced
this issue
Apr 19, 2024
whatisgalen
added a commit
that referenced
this issue
Apr 19, 2024
whatisgalen
added a commit
that referenced
this issue
Apr 19, 2024
whatisgalen
added a commit
that referenced
this issue
Apr 19, 2024
whatisgalen
added a commit
that referenced
this issue
Apr 19, 2024
whatisgalen
added a commit
that referenced
this issue
Jul 30, 2024
whatisgalen
added a commit
that referenced
this issue
Jul 30, 2024
whatisgalen
added a commit
that referenced
this issue
Aug 7, 2024
whatisgalen
added a commit
that referenced
this issue
Aug 8, 2024
whatisgalen
added a commit
that referenced
this issue
Aug 8, 2024
whatisgalen
added a commit
that referenced
this issue
Aug 12, 2024
whatisgalen
added a commit
that referenced
this issue
Aug 12, 2024
whatisgalen
added a commit
that referenced
this issue
Aug 12, 2024
…hview; rename _component -> _filter, re #10804
whatisgalen
added a commit
that referenced
this issue
Aug 12, 2024
whatisgalen
added a commit
that referenced
this issue
Aug 12, 2024
…hether filters loaded, re #10804
whatisgalen
added a commit
that referenced
this issue
Aug 12, 2024
whatisgalen
added a commit
that referenced
this issue
Aug 12, 2024
whatisgalen
added a commit
that referenced
this issue
Aug 13, 2024
whatisgalen
added a commit
that referenced
this issue
Aug 13, 2024
whatisgalen
added a commit
that referenced
this issue
Aug 14, 2024
whatisgalen
added a commit
that referenced
this issue
Aug 14, 2024
whatisgalen
added a commit
that referenced
this issue
Aug 14, 2024
whatisgalen
added a commit
that referenced
this issue
Aug 14, 2024
whatisgalen
added a commit
that referenced
this issue
Aug 14, 2024
whatisgalen
added a commit
that referenced
this issue
Aug 14, 2024
whatisgalen
added a commit
that referenced
this issue
Aug 15, 2024
whatisgalen
added a commit
that referenced
this issue
Aug 15, 2024
whatisgalen
added a commit
that referenced
this issue
Aug 20, 2024
apeters
added a commit
that referenced
this issue
Aug 21, 2024
whatisgalen
added a commit
that referenced
this issue
Aug 21, 2024
whatisgalen
added a commit
that referenced
this issue
Aug 21, 2024
whatisgalen
added a commit
that referenced
this issue
Aug 21, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As a developer, you can create or customize search components as you like, you just have to ensure the sortorder if one search filter/component has some kind of dependency on another. Where that customization ends is what I would call the "core search logic". The logic that exists outside of any search component governs the following:
paging-filter
)It's conceivable that 1 or all of those could be implemented differently by a developer, but to do so requires overriding methods like
search_results()
,export_results()
or the entireSearchView
. It would then be easier and a more modular solution to include the core logic as essentially a core search component.Here's some of that logic:
A few ways to implement what I'm talking about would be to:
ret
instead of just theresults
object in thepost_search_hooks
of each filterObviously, if a developer deviates too much in how their custom search component handles the query execution and response, other parts of Arches that use search could break. However, I don't think that's a good reason against customization, it just implies the necessity of more streamlined guidance for search component development in the arches documentation.
The other implication of modularizing the core search logic on the backend is that the frontend would also need to be more aware/responsive and less hard-coded/static of which search filters to take into consideration. For example, the
search-results
component references specific properties it expects from eachresult
. It would be more modular to interrogate the other search-filters (which it already could do asterm-filter
and others do) and determine what properties it has access to from each search-filter.To see how this could be implemented, take a look at my PR.
The text was updated successfully, but these errors were encountered: