From: simonbrandhof Date: Tue, 4 Jan 2011 12:51:03 +0000 (+0000) Subject: remove libraries from timemachine calendar X-Git-Tag: 2.6~196 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4856fc0de5e25f655fb6ff91be1a798882dd029b;p=sonarqube.git remove libraries from timemachine calendar --- diff --git a/sonar-server/src/main/webapp/WEB-INF/app/models/project.rb b/sonar-server/src/main/webapp/WEB-INF/app/models/project.rb index de2a7aa9bec..d4762df86ad 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/models/project.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/models/project.rb @@ -22,7 +22,7 @@ class Project < ActiveRecord::Base include Resourceable has_many :snapshots - has_many :processed_snapshots, :class_name => 'Snapshot', :conditions => "status='#{Snapshot::STATUS_PROCESSED}'", :order => 'created_at asc' + has_many :processed_snapshots, :class_name => 'Snapshot', :conditions => "status='#{Snapshot::STATUS_PROCESSED}' AND qualifier<>'LIB'", :order => 'created_at asc' has_many :events, :foreign_key => 'resource_id', :order => 'event_date DESC' has_many :project_links, :dependent => :delete_all, :order => 'link_type' belongs_to :profile, :class_name => 'Profile', :foreign_key => 'profile_id'