Description

Currently, there is only minimal Views integration implemented in the D8 version – you can display rendered entities/items, you can add a fulltext search filter – but that's more or less it. I think it's obvious that this needs to be fixed as soon as possible.

I'm creating a single issue for now, but probably we should create child issues for the actual work, to not have one gigantic patch, get better attribution, and make it easier for several people to collaborate on this. (Either just issues for "fields", "filters", etc., or even finer-grained.)

A rewrite of the query should probably come first, then extending search_api.views.inc to have a skeleton for actually including the different plugins, then porting of those other plugins.

Estimated Value and Story Points

This issue was identified as a Beta Blocker for Drupal 8. We sat down and figured out the value proposition and amount of work (story points) for this issue.

Value and Story points are in the scale of fibonacci. Our minimum is 1, our maximum is 21. The higher, the more value or work a certain issue has.

Value : 21
Story Points: 21

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drunken monkey’s picture

This could potentially help: #1792828: [META] Provide entity integration with Views.
Would need to look at it, though, and Berdir is pessimistic. (On the other hand, Bojan in the issue uses the Search API as the prime example for who this would help.)

Nick_vh’s picture

drunken monkey’s picture

tstoeckler’s picture

Opened #2484565: Views is broken with non-Sql query plugins, which I *think* is a blocker for this, although it would be very easy to work around from the Search API side. Not providing a patch for that, though, because the Search API views query plugin and views query plugins in general are a bit over my head.

ChristianAdamski’s picture

I do not see #2484565 changing any time soon. I am also constantly stumbling over ensureTable() function missing in the SearhApiQuery. Maybe we could include a stub for now?

drunken monkey’s picture

Status: Active » Needs review
FileSize
1.58 KB

You're right, we might as well already add this to make it easier for others to add custom plugins until our own integration is done.
Patch attached, please test/review!

Nick_vh’s picture

Issue summary: View changes
Issue tags: +beta blocker
ChristianAdamski’s picture

Works fine, please commit :)

drunken monkey’s picture

Status: Needs review » Active

OK, committed.
Setting back to Active.

  • drunken monkey committed 650bd6b on 8.x-1.x
    Issue #2387017 by drunken monkey: Added a little helper method for the...
ohthehugemanatee’s picture

What work remains here? All the child Issues are closed, and there's a comment on the related Views Issue, which says that we've worked around it already in search_api.

So what further work is required to finish Views integration?

drunken monkey’s picture

Status: Active » Fixed

Good question. I think we don't yet support all the contextual filters we did before, but other than that I'd say the port is more or less done.
There's still some open issues, but there always will be. The basic Views integration, as it should be for a beta or stable release, is done, I'd say.
So, marking this as "Fixed". Thanks for pointing it out!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.