<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -2,22 +2,12 @@ class AdminController &lt; ApplicationController
 
   def index
     require_auth 'admin'
-    @bugs = Bug.find(:all)
-    @errors = @bugs.select{|bug| bug.level == Bug::ERROR and bug.status == Bug::NEW}
-    @warnings = @bugs.select{|bug| bug.level == Bug::WARNING and bug.status == Bug::NEW}
-    
-    @percent_error    = (@errors.size * 100.0) / @bugs.size
-    @percent_warning  = (@warnings.size * 100.0) / @bugs.size
-    @percent_working  = 100.0 - (@percent_warning + @percent_error)
-    
     @pingers = Ping.find(:all)
   end
   
   def feeds
     require_auth 'admin'
-    @feeds, @page = Feed.paginate(:all, 
-                                  :include =&gt; [:bugs], 
-                                  :page =&gt; params[:page])
+    @feeds, @page = Feed.paginate(:all, :page =&gt; params[:page])
     @nb_pages = Feed.count
   end
   
@@ -27,27 +17,13 @@ class AdminController &lt; ApplicationController
     condition = [&quot;feeds.href LIKE ? OR feeds.title LIKE ? OR feeds.link LIKE ?&quot;, search, search, search]
     
     @feeds, @page = Feed.paginate(:all, 
-                                  :include =&gt; [:bugs], 
                                   :conditions =&gt; condition,
                                   :page =&gt; params[:page])        
     @nb_pages = Feed.find(:all,
                           :conditions =&gt; condition).size
     render :action =&gt; 'feeds'
   end
-  
-  def bogus_feeds
-    require_auth 'admin'
-    condition = [&quot;is_bogus = 1 or is_warning = 1&quot;]
-    @feeds, @page = Feed.paginate(:all, 
-                                  :include =&gt; [:bugs], 
-                                  :conditions =&gt; condition, 
-                                  :page =&gt; params[:page])        
-    @nb_pages = Feed.find(:all, 
-                          :include =&gt; [:bugs], 
-                          :conditions =&gt; condition).size
-    render :action =&gt; 'feeds'
-  end
-  
+
   def feed_repair
     require_auth 'admin'
     @feeds = Feed.find(:all)
@@ -58,7 +34,7 @@ class AdminController &lt; ApplicationController
   
   def edit_feed
     require_auth 'admin'
-    @feed = Feed.find params[:id], :include =&gt; [:bugs]
+    @feed = Feed.find params[:id]
     if request.post?
       @feed.update_attributes params[:feed]
     end
@@ -98,15 +74,12 @@ class AdminController &lt; ApplicationController
     @posts.each do |post|
       # get post base url
       base_url = post.url.slice(/^(http:\/\/).[^\/]*/)
-      logger.debug &quot;base_url: #{base_url}&quot;
       unless base_url.nil?
         if @similars.has_key?(base_url)
           if not @similars[base_url].include?(post.feed_id)
-            logger.debug &quot;adding to array#{@similars[base_url].size}: #{post.feed_id}&quot;
             @similars[base_url] &lt;&lt; post.feed_id
           end
         else
-          logger.debug &quot;creating new array: #{post.feed_id}&quot;
           @similars[base_url] = [post.feed_id]
         end
       end
@@ -139,8 +112,6 @@ class AdminController &lt; ApplicationController
     @feed.update_attribute 'link', params[:feed][:link]
     # update title if nil
     @feed.fix_with_rss
-    # resolve bugs
-    Bug.resolve_feed(@feed)
     redirect_to :action =&gt; 'feed_repair'
   end
   
@@ -152,8 +123,6 @@ class AdminController &lt; ApplicationController
       feed.update_attribute 'link', feed.href
       # update title if nil
       feed.fix_with_rss
-      # resolve bugs
-      Bug.resolve_feed(feed)
     end
     redirect_to :action =&gt; 'feed_repair'
   end
@@ -175,12 +144,4 @@ class AdminController &lt; ApplicationController
       @feed.destroy
     end
   end
-  
-  def no_more_bogus
-    require_auth 'admin'
-    @headers[&quot;Content-Type&quot;] = &quot;text/javascript&quot;
-    @feed = Feed.find params[:id]
-    # resolve bugs
-    Bug.resolve_feed(@feed)
-  end
 end
\ No newline at end of file</diff>
      <filename>app/controllers/admin_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -170,7 +170,6 @@ class ManageController &lt; ApplicationController
     @headers[&quot;Content-Type&quot;] = &quot;text/javascript&quot;
     subscription = Subscription.find(params[:id])
     @deleted_blog = &quot;blog_&quot; &lt;&lt; params[:id]
-    @deleted_bogus = &quot;bogus_&quot; &lt;&lt; params[:id] if subscription.feed.is_bogus?
     subscription.destroy
   end
   </diff>
      <filename>app/controllers/manage_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -11,7 +11,6 @@ class Feed &lt; ActiveRecord::Base
 
   has_many :subscriptions
   has_many :users, :through =&gt; :subscriptions
-  has_many :bugs
   has_many :posts, :order =&gt; 'created_at DESC'
   has_one :latest_post, :class_name =&gt; 'Post', :order =&gt; 'id DESC'
   belongs_to :avatar
@@ -22,14 +21,7 @@ class Feed &lt; ActiveRecord::Base
   
   # Discover avatar.txt file to update avatar
   def Feed.update_avatars
-    Feed.find(:all).each { |feed| 
-      unless feed.is_bogus?
-        logger.info &quot;+++ Refresh avatar: #{feed.href}&quot;
-        feed.discover_avatar_txt
-      else
-        logger.info &quot;--- Not refreshing avatar: #{feed.href}&quot;
-      end
-    }
+    Feed.find(:all).each { |feed| feed.discover_avatar_txt }
   end
 
   def Feed.create_from_blog(input_url)
@@ -127,39 +119,24 @@ class Feed &lt; ActiveRecord::Base
   end
   
   def refresh(forced=false)
-    unless is_bogus?
-      begin
-        # Get first item
-        Timeout::timeout(30) do
-          entry = Rfeedreader.read_first(link).entries[0]
-          
-          if !entry.nil? and !entry.link.nil? and (forced or latest_post.nil? or entry.link != latest_post.url)        
-            # Save new post
-            Post.create(:url =&gt; entry.link, 
-                        :title =&gt; entry.title, 
-                        :description =&gt; entry.description, 
-                        :feed_id =&gt; id)
-          end
+    begin
+      # Get first item
+      Timeout::timeout(30) do
+        entry = Rfeedreader.read_first(link).entries[0]
+        
+        if !entry.nil? and !entry.link.nil? and (forced or latest_post.nil? or entry.link != latest_post.url)        
+          # Save new post
+          Post.create(:url =&gt; entry.link, 
+                      :title =&gt; entry.title, 
+                      :description =&gt; entry.description, 
+                      :feed_id =&gt; id)
         end
-      rescue Timeout::Error
-        Bug.raise_feed_bug(self, &quot;timeout&quot;, Bug::WARNING)
-      rescue =&gt; err
-        Bug.raise_feed_bug(self, err) unless self.is_bogus?
       end
+    rescue Timeout::Error
+    rescue =&gt; err
     end
   end
   
-  def has_error
-    return self.is_bogus == 1 ? true : false
-  end
-  
-  alias is_bogus? has_error
-  alias bogus has_error
-  
-  def has_warnings
-    return self.is_warning == 1 ? true : false
-  end
-  
   # Return the rss item link
   def read_link(item)
     link = item.search(&quot;link:first&quot;)
@@ -240,7 +217,6 @@ class Feed &lt; ActiveRecord::Base
       
       return file
     rescue =&gt; error
-      Bug.raise_feed_bug(self, error, Bug::WARNING)
       return nil
     end
   end
@@ -257,7 +233,6 @@ class Feed &lt; ActiveRecord::Base
                               :href =&gt; rss.channel.link
       end
     rescue =&gt; err
-      Bug.raise_feed_bug(self, err)
     end
   end
   
@@ -398,7 +373,6 @@ class Feed &lt; ActiveRecord::Base
     
   private
   def destroy_relationship
-    Bug.destroy_all &quot;feed_id = #{self.id}&quot;
     Post.destroy_all &quot;feed_id = #{self.id}&quot;
     Subscription.destroy_all &quot;feed_id = #{self.id}&quot;
   end</diff>
      <filename>app/models/feed.rb</filename>
    </modified>
    <modified>
      <diff>@@ -71,7 +71,7 @@ class User &lt; ActiveRecord::Base
       end
       subscriptions.each do |subscription|
         feed = subscription.feed
-        if !feed.nil? and !feed.is_bogus? then
+        if !feed.nil? then
           #post = Post.from_google_api(feed) unless feed.link.nil?
           post = feed.latest_post
           unless post.nil? or post.created_at.nil?</diff>
      <filename>app/models/user.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,15 +1,11 @@
 &lt;% unless feed_row.nil? -%&gt;
-&lt;tr id='row_&lt;%= feed_row.id %&gt;' class=&quot;bogus_&lt;%= feed_row.bogus %&gt;&quot;&gt;
+&lt;tr id='row_&lt;%= feed_row.id %&gt;'&gt;
   &lt;td&gt;&lt;%= feed_row.id %&gt;&lt;/td&gt;
   &lt;td&gt;&lt;%= &quot;&lt;a href='#{feed_row.href}'&gt;#{truncate(feed_row.title, 50)}&lt;/a&gt;&quot; %&gt;&lt;/td&gt;
   &lt;td&gt;&lt;%= &quot;&lt;a href='#{feed_row.link}'&gt;#{truncate(feed_row.link, 50)}&lt;/a&gt;&quot; %&gt;&lt;/td&gt;
   &lt;td&gt;
     &lt;%= link_to 'Edit', {:action =&gt; 'edit_feed', :id =&gt; feed_row.id} %&gt;&lt;br/&gt;
     &lt;%= link_to_remote 'Delete', {:url =&gt; {:action =&gt; 'delete_feed', :id =&gt; feed_row.id}} %&gt;
-    &lt;% if feed_row.bogus -%&gt;
-      &lt;br/&gt;
-      &lt;%= link_to_remote &quot;No more bogus&quot;, :url =&gt; {:action =&gt; 'no_more_bogus', :id =&gt; feed_row.id} %&gt;
-    &lt;% end -%&gt;
   &lt;/td&gt;
 &lt;/tr&gt;
 &lt;% end -%&gt;
\ No newline at end of file</diff>
      <filename>app/views/admin/_feed_row.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -1,16 +1,3 @@
-&lt;h1&gt;Status&lt;/h1&gt;
-Warning: &lt;%= @warnings.size %&gt;&lt;br/&gt;
-Errors: &lt;%= @errors.size %&gt;&lt;br/&gt;
-&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; style='width:800px;'&gt;
-  &lt;tr&gt;
-    &lt;% unless @percent_working &lt; 1 %&gt;
-    &lt;td style='width:&lt;%= @percent_working %&gt;%;background-color:#DFD;color:#060;height:20px;'&gt;&lt;/td&gt;
-    &lt;% end %&gt;
-    &lt;td style='width:&lt;%= @percent_warning %&gt;%;background-color:#CAA;color:#300;height:20px;'&gt;&lt;/td&gt;
-    &lt;td style='width:&lt;%= @percent_error %&gt;%;background-color:#933;color:#600;height:20px;'&gt;&lt;/td&gt;
-  &lt;/tr&gt;
-&lt;/table&gt;
-
 &lt;h1&gt;Feeds&lt;/h1&gt;
 &lt;form action='/admin/search_feed' method='post'&gt;
   &lt;input type=&quot;text&quot; name=&quot;search&quot; value=&quot;&quot; id=&quot;search&quot;&gt;&lt;input type=&quot;submit&quot; value=&quot;Search &amp;raquo;&quot; id=&quot;some_name&quot;&gt;
@@ -18,7 +5,6 @@ Errors: &lt;%= @errors.size %&gt;&lt;br/&gt;
 &lt;br/&gt;
 &lt;ul&gt;
   &lt;li&gt;&lt;%= link_to &quot;Display all feeds&quot;, :action =&gt; &quot;feeds&quot; %&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;%= link_to &quot;Display bogus feeds&quot;, :action =&gt; &quot;bogus_feeds&quot; %&gt;&lt;/li&gt;
   &lt;li&gt;&lt;%= link_to &quot;Repair feeds&quot;, :action =&gt; &quot;feed_repair&quot; %&gt;&lt;/li&gt;
   &lt;li&gt;&lt;%= link_to &quot;Remove duplicates&quot;, :action =&gt; &quot;remove_duplicate_feeds&quot; %&gt;&lt;/li&gt;
 &lt;/ul&gt;</diff>
      <filename>app/views/admin/index.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,6 @@
 &lt;!-- show blog --&gt;
 &lt;% feed = subscription.feed %&gt;
 &lt;% unless feed.nil? %&gt;
-&lt;% if !feed.is_bogus?  %&gt;
 &lt;div id=&quot;blog_&lt;%= subscription.id %&gt;&quot; class=&quot;caja1&quot;&gt;
   &lt;!-- caja redondeada negra --&gt;
   &lt;div class=&quot;xsnazzy&quot;&gt;
@@ -31,42 +30,4 @@
   &lt;!-- end caja redondeada --&gt;
 &lt;/div&gt;
 &lt;!-- end caja! --&gt;
-&lt;% else %&gt;
-&lt;div id=&quot;bogus_&lt;%= subscription.id %&gt;&quot; class='bogus_message'&gt;
-  &lt;h1&gt;This blog is not working :-(&lt;/h1&gt;
-  &lt;p&gt;The feed seems to be broken&lt;/p&gt;
-  &lt;p&gt;Feevy team is working on it&lt;/p&gt;
-&lt;/div&gt;
-&lt;!-- show blog --&gt;
-&lt;div id=&quot;blog_&lt;%= subscription.id %&gt;&quot; class=&quot;caja1&quot;&gt;
-  &lt;!-- caja redondeada negra --&gt;
-  &lt;div class=&quot;bogus_feed&quot;&gt;
-    &lt;b class=&quot;bogus_top&quot;&gt;&lt;b class=&quot;bogus_1&quot;&gt;&lt;/b&gt;&lt;b class=&quot;bogus_2&quot;&gt;&lt;/b&gt;&lt;b class=&quot;bogus_3&quot;&gt;&lt;/b&gt;&lt;b class=&quot;bogus_4&quot;&gt;&lt;/b&gt;&lt;/b&gt;
-    &lt;div class=&quot;bogus_content&quot;&gt;
-      &lt;!-- capa contenedora --&gt;
-      &lt;div class=&quot;show_blog&quot;&gt;
-        &lt;br/&gt;
-        &lt;% if feed.avatar_locked == 1 %&gt;
-          &lt;img src='&lt;%= feed.avatar.url %&gt;' alt='current avatar' style='float:left;padding-right:5px;'/&gt;
-        &lt;% else %&gt;
-          &lt;img src='&lt;%= subscription.avatar.url %&gt;' alt='current avatar' style='float:left;padding-right:5px;'/&gt;
-        &lt;% end %&gt;
-        &lt;h3&gt;&lt;%= &quot;#{index}. #{feed.title}&quot; %&gt;&lt;/h3&gt;
-        &lt;h5&gt;&lt;%= truncate(feed.href, 50) %&gt;&lt;/h5&gt;
-        &lt;p&gt;tags: &lt;span id='tag_list_&lt;%= subscription.id %&gt;' class='tag_list'&gt;&lt;%= subscription.tag_list %&gt; &lt;%= link_to_remote &quot;edit tags&quot;, {:url =&gt; {:action =&gt; &quot;tag_blog&quot;, :id =&gt; subscription.id }} %&gt;&lt;/span&gt;&lt;/p&gt;
-        &lt;div id=&quot;blog_control_&lt;%= subscription.id %&gt;&quot; class='right'&gt;
-          &lt;%= link_to_remote &quot;tag&quot;, {:url =&gt; {:action =&gt; &quot;tag_blog&quot;, :id =&gt; subscription.id }} %&gt;
-          &lt;%= link_to_remote(&quot;change avatar&quot;, {:url =&gt; {:action =&gt; &quot;edit_blog&quot;, :id =&gt; subscription.id }}) unless feed.avatar_locked == 1 %&gt;
-          &lt;%= link_to_remote &quot;delete&quot;, {:url =&gt; {:action =&gt; &quot;delete_blog&quot;, :id =&gt; subscription.id }} %&gt;
-        &lt;/div&gt;
-        &lt;br/&gt;
-      &lt;/div&gt;
-      &lt;br/&gt;
-    &lt;/div&gt;
-    &lt;b class=&quot;bogus_bottom&quot;&gt;&lt;b class=&quot;bogus_4&quot;&gt;&lt;/b&gt;&lt;b class=&quot;bogus_3&quot;&gt;&lt;/b&gt;&lt;b class=&quot;bogus_2&quot;&gt;&lt;/b&gt;&lt;b class=&quot;bogus_1&quot;&gt;&lt;/b&gt;&lt;/b&gt;
-  &lt;/div&gt;
-  &lt;!-- end caja redondeada --&gt;
-&lt;/div&gt;
-&lt;!-- end caja! --&gt;   
-&lt;% end %&gt;
 &lt;% end %&gt;
\ No newline at end of file</diff>
      <filename>app/views/manage/_show_blog.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,4 @@
 page.visual_effect :fade, &quot;#{@deleted_blog}&quot;, :duration=&gt;1
-page.visual_effect(:fade, &quot;#{@deleted_bogus}&quot;, :duration=&gt;1) unless @deleted_bogus.nil?
 page.delay(1) do
   page.remove &quot;#{@deleted_blog}&quot;
-  page.remove(&quot;#{@deleted_bogus}&quot;) unless @deleted_bogus.nil?
 end
\ No newline at end of file</diff>
      <filename>app/views/manage/delete_blog.rjs</filename>
    </modified>
    <modified>
      <diff>@@ -9,15 +9,6 @@ ActiveRecord::Schema.define(:version =&gt; 32) do
     t.column &quot;url&quot;,  :string
   end
 
-  create_table &quot;bugs&quot;, :force =&gt; true do |t|
-    t.column &quot;level&quot;,       :integer
-    t.column &quot;status&quot;,      :integer,  :default =&gt; 0
-    t.column &quot;description&quot;, :text
-    t.column &quot;created_at&quot;,  :datetime
-    t.column &quot;updated_at&quot;,  :datetime
-    t.column &quot;feed_id&quot;,     :integer
-  end
-
   create_table &quot;cached_feeds&quot;, :force =&gt; true do |t|
     t.column &quot;href&quot;,           :string
     t.column &quot;title&quot;,          :string</diff>
      <filename>db/schema.rb</filename>
    </modified>
    <modified>
      <diff>@@ -868,50 +868,6 @@ width:400px;
 color: #FFF;
 }
 
-
-
-/**
-* Bogus blog display
-**/
-
-.bogus_feed h1, .bogus_feed h2, .bogus_feed p { margin: 0 10px }
-.bogus_feed h1 { font-size: 2.5em; color: #ffffff; }
-.bogus_feed h2 { font-size: 1em; color: #ffffff; border: 0; }
-.bogus_feed p { font:11px Helvetica, Arial, Sans-Serif; color: #cccccc;padding-bottom: 0.5em; }
-.bogus_feed h2 { padding-top: 0.5em; }
-.bogus_feed h5 {margin:0 0 10px 0; color: #ccc;}
-.bogus_feed h4  { font-size: 20px; color: #ccc; float: left; margin:0; margin-right: 5px;}
-.bogus_feed h3 {margin: 0}
-.bogus_feed a {color: #ccc;}
-.bogus_feed { background: transparent; margin: 1em; }
-
-.bogus_top, .bogus_bottom {display:block; background:transparent; font-size:1px;}
-.bogus_1, .bogus_2, .bogus_3, .bogus_4 {display:block; overflow:hidden;}
-.bogus_1, .bogus_2, .bogus_3 {height:1px;}
-.bogus_2, .bogus_3, .bogus_4 {background:#8F1E19; border-left:2px solid #8F1E19; border-right:2px solid #8F1E19;}
-.bogus_1 {margin:0 5px; background:#8F1E19;}
-.bogus_2 {margin:0 3px; border-width:0 10px;}
-.bogus_3 {margin:0 2px;}
-.bogus_4 {height:2px; margin:0 1px;}
-.bogus_content { display: table;display:block; background:#8F1E19; border:0 solid #8F1E19; border-width:0 2px;}
-
-.bogus_message{
-  float:left;
-  position:relative;
-  top:30px;
-  left:-180px;
-  height:0px;
-  text-align:right;
-}
-
-.bogus_message h1{
-  font-size:16px;
-}
-
-.bogus_message p{
-  font-size:12px;
-  color:#CCC;
-}
 /*CAMBIOS*/
 .navenlace {
    </diff>
      <filename>public/stylesheets/style.css</filename>
    </modified>
    <modified>
      <diff>@@ -12,11 +12,10 @@ while true
   @feeds[@offset, @range].each {|feed|
     begin
       Timeout::timeout(@timeout) {
-        feed.refresh(true) unless feed.bogus == true
+        feed.refresh(true)
       }
     rescue Timeout::Error
       unless feed.nil?
-        feed.raise_bug(&quot;timeout&quot;, Bug::WARNING)
         puts &quot;Timeout on feed ##{feed.id}: #{feed.link}&quot;
       end
     end</diff>
      <filename>script/update_feeds</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>app/controllers/bug_controller.rb</filename>
    </removed>
    <removed>
      <filename>app/helpers/bug_helper.rb</filename>
    </removed>
    <removed>
      <filename>app/models/bug.rb</filename>
    </removed>
    <removed>
      <filename>app/models/error_notifier.rb</filename>
    </removed>
    <removed>
      <filename>app/views/admin/_bug_row.rhtml</filename>
    </removed>
    <removed>
      <filename>app/views/bug/_bogus_feed.rhtml</filename>
    </removed>
    <removed>
      <filename>app/views/bug/bogus_resolve.rjs</filename>
    </removed>
    <removed>
      <filename>app/views/bug/bogus_test.rjs</filename>
    </removed>
    <removed>
      <filename>app/views/bug/index.rhtml</filename>
    </removed>
    <removed>
      <filename>test/fixtures/bugs.yml</filename>
    </removed>
    <removed>
      <filename>test/functional/bug_controller_test.rb</filename>
    </removed>
    <removed>
      <filename>test/unit/bug_test.rb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>65111fe0f9cf1604a898e824703dd838b3b470ad</id>
    </parent>
  </parents>
  <author>
    <name>Alexandre Girard</name>
    <email>alx.girard@gmail.com</email>
  </author>
  <url>http://github.com/alx/feevy/commit/9da12264bfa815d317e46d7f54f94881d62d0286</url>
  <id>9da12264bfa815d317e46d7f54f94881d62d0286</id>
  <committed-date>2008-06-18T14:05:44-07:00</committed-date>
  <authored-date>2008-06-18T14:05:44-07:00</authored-date>
  <message>Remove bug monitoring</message>
  <tree>86f2119b70bcc28c4aece29bca8b0c33eb172852</tree>
  <committer>
    <name>Alexandre Girard</name>
    <email>alx.girard@gmail.com</email>
  </committer>
</commit>
