Need an update path from PIFT 6.x-1.x to PIFT 6.x-2.x. I would like to get a sample data set from d.o or have someone run it on project.drupal.org to see that it functions and it deals with any edge cases.

CommentFileSizeAuthor
#1 pift_update.patch4.19 KBboombatower
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

boombatower’s picture

Status: Active » Needs review
FileSize
4.19 KB

This code should do the trick, but we will lose links to the results on t.d.o. The active tests will regain their links once tested again.

A possible solution would be to set t.d.o in a sort of debug/dead state so that d.o can send file test requests and get the test_id's back and store them, without actually queuing the files for testing. Once complete we can then enable t.d.o for active duty.

I have committed the attached patch.

boombatower’s picture

Status: Needs review » Fixed

Added code to look for files.dump.txt in module root which will contain a map that I will need to export from t.d.o.

boombatower’s picture

Use the following script to export file on t.d.o.

  $result = db_query('SELECT file_id, server_file_id FROM {pifr_file}');
  $dump = '';
  $count = 0;
  while ($file = db_fetch_array($result)) {
    $dump .= $file['file_id'] . ',' . $file['server_file_id'] . "\n"; 
    $count++;
  }
  file_put_contents('files.dump.txt', $dump);
  drupal_set_message('Dumped: ' . $count);

file_id => test_id, and server_file_id => ftid.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.