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

Index all addon records, and allow public addons to the public. #140

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

Conversation

kloor
Copy link

@kloor kloor commented Apr 3, 2017

We discovered two issues with addon records. First, if a single addon record was created or updated it would only be indexed if it was public. Second, public users could not see addons in the search results. This patch fixes both of those issues.

The change to lib/SolrSearch/Addon/Manager.php will index all addon records regardless to if they are public or not.

The changes to lib/SolrSearch/Addon/Indexer.php make sure that the public field is set on the addon record's document, instead of that field always being null. This allows the public to see those records. The isRecordIndexed method is changed to isRecordPublic to match its new role in setting the public field. The _addFlag method is removed as it is made redundant to checks against the public field.

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.

None yet

1 participant