-
Notifications
You must be signed in to change notification settings - Fork 142
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
10804 componentizing core search #10807
Conversation
…nually called on backend, re #10804
The latest commits address all requested changes except for finalizing specific values for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there!
if (this.requiredFiltersLoaded() === false) { | ||
this.requiredFiltersLoaded.subscribe(function () { | ||
this.mapFilter = this.getFilterByType("map-filter"); | ||
this.mapFilter = this.getFilter("map-filter", false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this be this.getFilterByType('map-filter-type', false)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you check out line 61: if (tab === "map-filter") {
the value for tab comes from that search-filter's component name, so even if another filter like galen-map-filter
was the right type ("map-filter-type"
), the tab wouldn't be called "map-filter"
. If that check weren't there, I would agree that it should just be getFilterByType
.
In short: we need to ensure that the filter we're assigning to this.mapFilter
is the same one we're calling via if (tab === "map-filter")
releases/7.6.0.md
Outdated
@@ -15,10 +15,9 @@ Arches 7.6.0 Release Notes | |||
|
|||
- Adds Github actions to build applications, run tests, and compare coverage between branches for projects. | |||
|
|||
- Plugins now support the configuration boolean `is_standalone`. Standalone plugins do not appear in the sidebar, and do not display the sidebar or application header. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this have been removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, see @jacobtylerwalls comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
phew! that took a while but I think it was worth it!
Types of changes
Description of Change
Fundamentally, here's what this PR tries to accomplish:
SearchView
ontosearch_component
s: By stripping down one of the core methods (search_results
) to just: initialize a SearchEngine, create a response object, and call 3 standard methods from each ordered set of search filters, there's less of a reason to tinker with the search view and development can be channeled into thesearch_component
s.Specifically, here's an overview of the changes:
SearchLogicComponent
governs both what search components are available to the frontend (and what the frontend logic is) as well as what search components are required on the backend and how to handle the search requestsearch.htm
is just a placeholder for whatever template the search-logic component has andsearch.js
doesn't do much beyond set up the necessities and send a request to get a SearchView. SearchLogic can be set as default when none is provided, or it can be provided as a named parameter in the url:search?...&search-logic=custom-search-logic
standard-search-logic
along with changes to specific components and adding a config column to all.BaseFilter
class methods (append_dsl
, etc.) now take the entireresponse_object
and bundledkwargs
as opposed to specifically aresults
object orinclude_provisional
kwargs, respectively.Issues Solved
#10804
Checklist
Ticket Background
Further comments