Anyway to get VBO to work with Sarnia.. I applied the appropriate patches to get it to work with Search API, but still looking around for Sarnia. I need VBO to work because I have other Drupal content types that relate to the Sarnia entity ID's and I need to update those Drupal entities on a bulk level by selecting from a sarnia view...

not sure if there is anything helpful here https://www.drupal.org/node/1123454#comment-10945913
or here https://www.drupal.org/node/1334374#comment-8381773 (VBO to work with Search API)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rulley created an issue. See original summary.

rulley’s picture

Status: Active » Needs review

I added this at the end of the ---- function sarnia_views_data_alter(&$data) within the sarnia.views.inc file and it appears to function properly. I have a custom VBO action that handles the selected entity id's from VBO....

$data[$entity_views_table]['views_bulk_operations'] = array(
'title' => $views_table,
'group' => t('Bulk operations'),
'help' => t('Provide a checkbox to select the row for bulk operations.'),
'real field' => $entity_info['id_field'],
'field' => array(
'handler' => 'views_bulk_operations_handler_field_operations',
'click sortable' => FALSE,
),
);

Also the VBO action has to be run on "Skip Batching" mode.. as VBO calls entity load (its trying to load batches of 10 sarnia entities) and its failing on loading sarnia entities... trying to figure that out?

jmdeleon’s picture

Whipped up a properly-formatted patch for this.

Status: Needs review » Needs work

The last submitted patch, 3: 2691145-sarnia-views_bulk_operations-support-3.patch, failed testing.

jmdeleon’s picture

rulley: You mentioned that you developed a custom VBO action -- does that action modify the Sarnia entity? Does this action update the back-end Solr data? I'm curious to see this. Without knowing too much about your specific use-case, I'm not entirely sure Sarnia is the proper tool to be using, over something like a Migration class. Sarnia entities were meant to be read-only (though that's not enforced) and (in the use-cases where I've used this module) the updates to them were done on the back-end Solr data.

I'm also dubious on adding this patch to a release at this time, as it's dependent on two patches to Search API and VBO that are still in the works.

jmdeleon’s picture

Status: Needs work » Postponed

  • jmdeleon committed ce96dd1 on 7.x-1.x authored by rulley
    Issue #2691145 by jmdeleon, rulley: works with Views Bulk Operations
    
jmdeleon’s picture

Status: Postponed » Reviewed & tested by the community
rulley’s picture

I have other drupal entities stored in the db that have a related sarnia id field. My VBO action gets the id's of the sarnia entities and then processes some rules components on the other drupal entities. I do not modify the solr data it remains as read only.. Thank you for the patch..

jmdeleon’s picture

Status: Reviewed & tested by the community » Closed (fixed)