Allura/allura/model/discuss.py
def should_update_index(self, old_doc, new_doc):
        """Skip index update if only `num_views` has changed.

        Value of `num_views` is updated whenever user loads thread page.
        This generates a lot of unnecessary `add_artifacts` tasks.
        """
        old_doc.pop('num_views', None)
        new_doc.pop('num_views', None)
        return old_doc != new_doc
Skip index update if only `num_views` has changed.

        Value of `num_views` is updated whenever user loads thread page.
        This generates a lot of unnecessary `add_artifacts` tasks.
        
Skip index update if only `num_views` has changed.
Value of `num_views` is updated whenever user loads thread page.
This generates a lot of unnecessary `add_artifacts` tasks.
Skip index update if only ` num_views ` has changed . Value of ` num_views ` is updated whenever user loads thread page . This generates a lot of unnecessary ` add_artifacts ` tasks .
def should_update_index(self, old_doc, new_doc):
        old_doc.pop('num_views', None)
        new_doc.pop('num_views', None)
        return old_doc != new_doc
def should_update_index ( self , old_doc , new_doc ) : old_doc . pop ( 'num_views' , None ) new_doc . pop ( 'num_views' , None ) return old_doc != new_doc
Skip index update if only `num_views` has changed.
Skip index update if only ` num_views ` has changed .
"""Skip index update if only `num_views` has changed.

        Value of `num_views` is updated whenever user loads thread page.
        This generates a lot of unnecessary `add_artifacts` tasks.
        """
self
old_doc
new_doc