Closed (fixed)
Project:
Search API
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jan 2011 at 14:02 UTC
Updated:
17 Feb 2011 at 17:20 UTC
There seem to be a number of problems with default entities in code:
- After initial import, the status of servers and indexes will be "overridden".
- Reverting sometimes doesn't work, and never changes the "overridden" status.
- When reverting a server, all associated indexes are disabled and moved from the server (as the module thinks, the server is being deleted).
- Maybe problems when reverting an index, too? (Entries from {search_api_item} might be deleted.)
- Importing facets sometimes doesn't work (but maybe just because of problems with the index).
Comments
Comment #1
drunken monkeyMost of the bugs should be fixed now, for the rest see #1043634: Don't delete and re-create entities when they are reverted.
Leaving this open for now, until the above issue is fixed, or I know I have to work around this in the Search API.
Comment #2
drunken monkeyAfter some discussion in the Entity API issue and in person, we came to the conclusion that the current approach does make sense — both generally in the Entity API and in the Search API use case.
The alternative might be more user-friendly when reverting changes on a live server, but then again: on a live server, the configuration shouldn't be touched anyways.
Therefore, setting this to fixed.