Fill in update path

boombatower - March 28, 2009 - 20:50
Project:Project issue file test
Version:6.x-2.x-dev
Component:Code
Category:task
Priority:normal
Assigned:boombatower
Status:closed
Description

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.

#1

boombatower - March 31, 2009 - 06:54
Status:active» needs review

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.

AttachmentSizeStatusTest resultOperations
pift_update.patch4.19 KBIgnoredNoneNone

#2

boombatower - April 2, 2009 - 03:15
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.

#3

boombatower - April 2, 2009 - 03:19

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

<?php
  $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.

#4

System Message - April 16, 2009 - 03:30
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.