Views integration

Created on 23 July 2015, almost 9 years ago
Updated 24 April 2024, 2 months ago
πŸ“Œ Task
Status

Needs review

Version

3.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium attiks

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡«πŸ‡·France guignonv

    I have a question for the main developers of External Entities module:
    has it been discussed to create a Views Query Plugin for External Entities as @Berdir suggested πŸ“Œ Make Views use SqlEntityStorageInterface Needs work in the issue #2079019?

    If yes: Did you see any issue for creating one? Has any work been started I could collaborate on?
    If no: Why not? It would be much better than relying on Search API Views Query Plugin (no index to update, live data).

  • Status changed to Needs review 10 months ago
  • πŸ‡«πŸ‡·France guignonv

    I've started to write a module to integrate External Entities with views: xnttviews β†’ .

    The dev version is already working as a "proof of concept". It needs many improvements for sure but at least, it shows it is possible. I would be very happy if other people could get involved in the development, don't hesitate to contact me!

    I've changed the status to "Needs review" as I would like feedback from the maintainers regarding this initiative:
    if you think "xnttviews" should be part of external entities (core), then change the status to "needs work" with some explanations/advice, if you think it's a good approach to separate views management and external entities, then maybe this issue could be "closed (won't fix)" and the external entities module page ("Known limitations" section) could be updated according to that.

  • πŸ‡¨πŸ‡¦Canada joseph.olstad

    @guignonv, I'm having a look at your xnttviews module out of curiosity. My original plan was to use external_entities exactly as described by @sylus in comment #4 , however despite having solr indexed content and following steps described here β†’ no matter what I do I have so far been unable see results generated using the solr indexed values only. I haven't given up yet but it's been a grind for 3 days learning this ecosystem of modules and getting some results but hitting a wall.

    video tutorial, I pretty much did this using views to provide the json data on the remote and I added his patches.
    https://www.youtube.com/watch?v=tHGc6AdLzs4

    I originally tried tagged releases then switched to these, similar issues.

    releases used, all updated:

        "drupal/search_api": "dev-1.x",
        "drupal/search_api_autocomplete": "dev-1.x#925a16b1",
        "drupal/search_api_page": "^1.0",
        "drupal/search_api_solr": "dev-4.x",
        "drupal/external_entities": "^2.0@alpha",

    Patches used:

        "drupal/external_entities": {
          "3376591 - Field mappings form section doesn't show a form element": "https://git.drupalcode.org/project/external_entities/-/merge_requests/25.patch",
          "3376604 - missing @return in docs": "https://www.drupal.org/files/issues/2023-08-10/3376604-9.patch",
          "2998391 - signel item from remote drupal views rest is wrapped in an array by default, add option to handle this": "https://www.drupal.org/files/issues/2019-07-03/2988391-3-views_rest_support.patch"
        },
    

    The issue that I might focus on next is why the "Tracking" procedure doesn't complete. It still allows indexing despite the tracking not completed (there's an error, I'll debug that again after changing approach a few times).

    I wonder if there's a recent regression in external_entities or search_api / search_api_solr that is causing problems retrieving content from solr.

    I've indexed, have indexed content, have re-indexed many times, reviewed the configuration and re-consulted documentation.

    I have
    search_api 1.29
    search_api_solr 4.3.0-alpha1
    D9.5.x
    PHP 8.1
    solr 8.11

    Three days so far on this, usually by now I'd have figured it out.

Production build 0.69.0 2024