-
Notifications
You must be signed in to change notification settings - Fork 82
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
Filter DataObjects on ShowInSearch #275
Filter DataObjects on ShowInSearch #275
Conversation
4e091e8
to
82288aa
Compare
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.
Good work so far! Don't forget to reflect any changes in the docs as well. For example, https://www.cwp.govt.nz/developer-docs/en/2/features/solr_search/basic_usage/ mentions using Index->search()
directly, without either mentioning canView or ShowInSearch there, so setting you up for failure. As a rule of thumb, on the search results side whenever it does canView it should also check ShowInSearch.
And we should probably add some clear docs on CWP around not using the raw SolrIndex
for querying unless you really know what you're doing. CWP\Search\Extensions\SearchControllerExtension
does some magic, and then CwpSearchEngine
does more. We should make it clear that it's the preferred, supported way of searching, no matter how horrible it might be in terms of layering.
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.
Looking pretty solid! Agreed with @chillu on shifting one of the checks, one minor code suggestion, and have suggested some tweaks to the new documentation.
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.
Haven't completed manual testing yet, will pick that up next, but looking pretty solid! I've suggested some further adjustments to the documentation, recommended we drop the commented placeholder canView()
code, and asked for some clarity regarding the storage of the $indexableState
.
Sidenote - this needs to be rebased and retargeted to the |
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.
Good start, left a comment below
a73f893
to
1073c90
Compare
@Cheddam have rebased and retargeted to 3 (used to be 3.6) cos as you say, new API = minor release |
e7b16da
to
a2e341f
Compare
a2e341f
to
bfa2ede
Compare
This was originally branched off 3.6, have since rebased and retargeted to 3
Issue: #257
Inlet filtering - cms save
SearchUpdateProcessor.php
Inlet filtering - solr reindex
SolrReindexBase.php
Outlet filtering
SolrIndex.php