Closed (fixed)
Project:
Search API
Version:
8.x-1.x-dev
Component:
General code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Sep 2024 at 08:02 UTC
Updated:
28 Sep 2024 at 10:09 UTC
Jump to comment: Most recent
Comments
Comment #3
mkalkbrennerComment #4
mkalkbrennerThe API is inconsistent.
getItemId() checks for the current config.
getItemIds() doesn’t.
So getItemId() is not suitable for deletions caused by config changes.
I consider that to be a bug.
Comment #5
mkalkbrennerMy initial approach was to call getItemId() from getItemIds() but due to the different behaviour the tests failed.
But as this is a bigger issue I now introduced formatItemId() to have something small to overwrite.
Comment #7
drunken monkeyThanks a lot for suggesting this! The changes do make sense, great if this helps other modules provide their own entity-based datasources.
I had a few remarks and pushed the associated suggested changes. If you are happy with those, I’ll merge.
Comment #8
mkalkbrennerLooks good to me. I'll test the latest version of the patch on Monday.
Comment #9
mkalkbrennerI adjusted the code in search_api_default_content_deploy to the latest changes and it works :-)
Comment #10
drunken monkeyGood to hear, thanks for testing!
Merged.