Closed (fixed)
Project:
Apache Solr Search
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Apr 2011 at 15:29 UTC
Updated:
17 Dec 2011 at 20:55 UTC
Jump to comment: Most recent file
Comments
Comment #1
JoeMcGuire commentedPatch attached to make the apachesolr_server table available for export.
The apachesolr_server_variable table has multiple primary keys which isn't supported by ctools yet. See #924236
This patch is for 7.x-1.0-beta5. I see 7.x-1.x has different table names.
Comment #2
pwolanin commentedThe dev code is changed a bit, including renaming that table.
Can you point to a reference for the exportables info?
Also, the variables table is essentially linked to this, so I'd prefer to export/import the 2 together.
Comment #3
JoeMcGuire commentedI found the ctools documentation is in its module by using the advanced help module.
Attached is an amended patch because I wasn't having any luck having the previous one working with drush make.
Comment #4
pwolanin commentedStill needs work - you are patching an outdated codebase.
Comment #5
JoeMcGuire commentedLet us know when you finished tweaking the table names and schemas.
I've just started with a patch for the latest tag as I wanted it to work with Drush Make.
Comment #6
pwolanin commentedThere won't be a new tag until there is a new release.
If you want to develop, you'll need to use git to pull the latest code.
Comment #7
Ravi.J commentedResubmitting patch for 7.x-dev
Comment #8
JoeMcGuire commentedHi Ravi,
Thanks - I don't think my initial patch was enough to reimport the exported data. I think you need to look into a loader method mentioned in the Advanced Help documentation.
We've moved out projects over to the Search API which does support features and exportables.
http://drupal.org/project/search_api
Comment #9
Ravi.J commentedRedid the patch, could not get previous patch work with Drush Make
Comment #10
JoeMcGuire commentedI was having that issue yesterday it's to do with different strip -p0 -p1 options see #745224: Apply patches from git diff and git format-patch
Comment #11
alexander allen commentedSubscribing, interested as well. It would definitely be nice to simultaneously propagate settings such as apachesolr_enabled_facets to multiple dev and prod servers via Features and features revert. As soon as I investigate how to implement ctool exportables I should be able to contribute some code for exporting apachesolr_enabled_facets.
Comment #12
alexander allen commentedRegarding facets, the latest version of the Facet API module is allowing facet settings to be exported via Features.
Comment #13
pcambraAdded also enviroment variable table and rolled against latest -dev
Edit: hadn't read #1 variables table is not supported by ctools, forget about this patch.
Comment #14
nick_vhcomment #9 patch is still valid. Can anyone confirm this is working well for them? pcambra?
This way we can change this status and commit it
Comment #15
pcambraI can confirm #9 is working for enviroment table, but I had to implement my own hook_install for the enviroment variables table.
Comment #16
nick_vhComment #17
pwolanin commentedcommitted, thanks.
Obviously we need a follow-up for import (needs to be optionally available when ctools is enabled).
Comment #19
andymantell commentedHas this functionality been finished? I exported my solr settings but they don't seem to be getting pulled in again... I assume that is the follow up that pwolanin was referring to? Is there a ticket already?
Comment #20
Bußmeyer commentedNo, it hasn't been finished. Here you can find the new issue for the import task: #1357588: follow-up for import (needs to be optionally available when ctools is enabled)