<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 115: Invalid columns in metrics download</title><link href="https://sourceforge.net/p/codestriker/bugs/115/" rel="alternate"/><link href="https://sourceforge.net/p/codestriker/bugs/115/feed.atom" rel="self"/><id>https://sourceforge.net/p/codestriker/bugs/115/</id><updated>2010-07-16T14:22:43Z</updated><subtitle>Recent changes to 115: Invalid columns in metrics download</subtitle><entry><title>Invalid columns in metrics download</title><link href="https://sourceforge.net/p/codestriker/bugs/115/" rel="alternate"/><published>2010-07-16T14:22:43Z</published><updated>2010-07-16T14:22:43Z</updated><author><name>elmugrat</name><uri>https://sourceforge.net/u/elmugrat/</uri></author><id>https://sourceforge.net570bead7172c0cc4149f64c300c976c594467f5c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The data below the "Comment Threads" and "Submitted Comments" headers in the downloaded metrics.csv is invalid (all zeros).  The correct data is shifted 2 columns to the right, thus offsetting all of the other columns by 2 as well.  The problem is in lib/Codestriker/Model/MetricStats.pm, around line 300 in the get_raw_metric_data function.  The foreach my $metric (@{$headers-&amp;gt;{comment}}) {} loop will attempt to fill both of the problematic columns, but will be unable to find them in the database so it just fills in zeroes.  The correct data is obtained immediately after the foreach using seperate database queries.  Skipping those two fields in the foreach solves the problem.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>