Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
do not get all collections for dashboard (#5325)
`@collections` cannot be set with `Collection.order` when `Collection` is `Hyrax::PcdmCollection`. The `order` method is not defined. Use of `all` was suggested, but it is also not defined for `Hyrax::PcdmCollection`. There is an alternative approach to get all collections, but it is not clear that this is necessary. * `@collections` does not appear to be used anywhere (added in PR #5089) which was the PR that added the new Analytics * `@collections` does not appear to have been used prior to this PR in any `views` or `presenters` * getting all collections is very expensive and should be avoided unless really necessary * if collections are required, it is better to get them from solr instead of the persistent store. This will also enforce permissions if search builders are used. For all these reasons, setting `@collections` is being removed.
- Loading branch information