Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions Model/bin/needsUpdateSampleDisplayInfoTT
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/usr/bin/perl

use strict;
use lib "$ENV{GUS_HOME}/lib/perl";

use Getopt::Long qw(GetOptions);
use Time::Local;

use EbrcModelCommon::Model::tmUtils;
use EbrcModelCommon::Model::DatasetPresenterTTUtils qw(getProjectListFromDb getPresenterFilePaths);

use DBI;

my ($propfile, $instance, $schema, $debug, $timestamp, $unixTimestamp);
Getopt::Long::Configure("pass_through");
GetOptions("propfile=s" => \$propfile,
"instance=s" => \$instance,
"schema=s" => \$schema,
"debug!" => \$debug,
"timestamp=s" => \$timestamp,
"unixtimestamp=s" => \$unixTimestamp,
);

die "required parameter missing" unless ($unixTimestamp);

my $filePath = "EbrcModelCommon/Model/data/SampleDisplayInfo.xls";

my $gitTimestamp = EbrcModelCommon::Model::tmUtils::getGitTimestamp($filePath, $ENV{PROJECT_HOME});

if ($gitTimestamp > $unixTimestamp) {
print "out of date\n";
} else {
print "up to date\n";
}

exit 0;
4 changes: 2 additions & 2 deletions Model/lib/xml/tuningManager/apiTuningManager.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1941,11 +1941,11 @@ create index Organism_projectId_idx&1 ON OrganismAttributes&1 (project_id, sourc
</tuningTable>


<!-- <tuningTable name="SampleDisplayInfo" alwaysUpdate="true">-->
<tuningTable name="SampleDisplayInfo" alwaysUpdate="true" >
<tuningTable name="SampleDisplayInfo">
<comment> Used by the model and GBrowse, as well as an input in the creation of
the tuning tables like MSModifiedPeptideSummary and MSPeptideSummary.
</comment>
<needsUpdateProgram commandLine="needsUpdateSampleDisplayInfoTT"/>
<program commandLine="buildSampleDisplayInfoTT"/>
</tuningTable>

Expand Down