Skip to content

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

Open
kloor wants to merge 1 commit intoscholarslab:developfrom
BGSU-LITS:bugfix-addons-public
Open

Index all addon records, and allow public addons to the public.#140
kloor wants to merge 1 commit intoscholarslab:developfrom
BGSU-LITS:bugfix-addons-public

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.

1 participant