Closed (fixed)
Project:
Lupus Decoupled Drupal
Version:
1.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
13 Dec 2024 at 11:18 UTC
Updated:
31 Jan 2025 at 05:04 UTC
Jump to comment: Most recent
Comments
Comment #2
useernamee commentedComment #4
useernamee commentedComment #5
useernamee commentedComment #6
useernamee commentedUgh, I came full circle and ended with implementing changes from #3395592: Support entity-reference fields in field-style views rows.
Comment #7
fagoso this is about supporting search api views - let's make this clearer.
Comment #8
fagoQuick review:
* I don't think the module README is the place for drupal-CMS documentation. The README should stay general and document how to use it with Search API. But concrete drupal-CMS instructions should go elsewhere imo (not sure where), or better be not necessary since automated, but that'S a different story/issue.
* Cannot judge about the details, but let's make sure things work via automated tests. Can we also add some search-api & views config to tests that we run as part of automated tests? I think we could simply copy things over from the recipe, but I'd copy to document what is supported on the long-time and not depend on the recipe since the recipe can change over time.
Comment #9
useernamee commented- I did some restructuring and moved search api integration into its own module so views is independent of search api.
- I removed recipe data from README
- Added tests
Comment #10
useernamee commentedComment #11
roderikBeidres the comment on the MR:
The changes to CustomElementsPage.php and CustomElements.php seem good, and I'm confident they are well enough tested by the tests included. They can be committed.
However, the whole lupus_decoupled_search_api module... contains zero code. It's only dependencies on lupus_decoupled_views + search_api_db, and a README.
Needs work for answering that + the above MR comment.
Note I haven't reviewed point 2 of the proposed resolution yet.
Comment #12
useernamee commented> However, the whole lupus_decoupled_search_api module... contains zero code. It's only dependencies on lupus_decoupled_views + search_api_db, and a README.
It contains tests. And I wouldn't want to move tests to lupus_decoupled_views (or any other place) since modules have different purpose.
> Isn't this better off being a recipe, instead of introducing a new 'empty' module?
It is a recipe (https://git.drupalcode.org/project/drupal_cms/-/blob/1.x/recipes/drupal_...) - we test that recipe works with lupus decoupled.
> Then we can move tests/modules and tests/src in the 'module root' tests/ folder. I see no issue with that.
There are other ways to add search functionality to lupus decoupled (with external service). This only tests that Drupal CMS Search recipe works.
Comment #13
useernamee commentedComment #14
roderikDiscussed in person, IMHO no need for me to reiterate here at this moment
Comment #15
useernamee commentedComment #16
useernamee commented- removed the module and moved the tests to the base module.
- updated tests
Comment #17
roderikPoint 1: this works. (So, in the end, it's just small changes to get/derive the view mode from the right place. Plus tests/etc.)
Point 2: already done, on https://lupus-decoupled.org/advanced-topics/searches
so, RTBC.
Comment #18
useernamee commentedI added a sentence to the docs: https://github.com/drunomics/lupus-decoupled-website/pull/94
Comment #19
fago- The MR cannot be merged, because it conflicts. Please update and let's merge then
- I added a remark to the docs update, please check. https://github.com/drunomics/lupus-decoupled-website/pull/94#pullrequest...
Comment #20
useernamee commented- reRolled the PR https://git.drupalcode.org/project/lupus_decoupled/-/merge_requests/112#...
- added PR remarks https://github.com/drunomics/lupus-decoupled-website/pull/94#pullrequest...
Comment #22
fago