Wrap Facet registration in plugin API
The current Facet registration for plugins occurs independently of registering and using the plugin interface. To me, this breaks from the idea of centralizing additions plugins need in the plugin API. Current registration:
Facets.register(Katello::Host::ContentFacet, :content_facet) do api_view :list => 'katello/api/v2/content_facet/base_with_root', :single => 'katello/api/v2/content_facet/show' end
#7 Updated by Lukas Zapletal almost 4 years ago
Stumbled upon this when I was reading Facet documentation.
Shall we remove the "This is being re-worked into a proper plugin API via #13417, it's highly recommended to use that when available and not use internal APIs." note?