commit/galaxy-central: greg: Do not allow sorting by owner on the RepositoriesReviewedByMeGrid.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/2c50935e70c8/ Changeset: 2c50935e70c8 User: greg Date: 2013-04-19 21:11:00 Summary: Do not allow sorting by owner on the RepositoriesReviewedByMeGrid. Affected #: 1 file diff -r 6ed903aff045656cdfb519c571627af750675aef -r 2c50935e70c8a483bcd09b358765408543a153fb lib/tool_shed/grids/repository_review_grids.py --- a/lib/tool_shed/grids/repository_review_grids.py +++ b/lib/tool_shed/grids/repository_review_grids.py @@ -248,6 +248,23 @@ class RepositoriesReviewedByMeGrid( RepositoriesWithReviewsGrid ): # This grid filters out repositories that have been marked as either deprecated or deleted. + columns = [ + RepositoriesWithReviewsGrid.NameColumn( "Repository name", + key="name", + link=( lambda item: dict( operation="view_or_manage_repository", id=item.id ) ), + attach_popup=True ), + RepositoriesWithReviewsGrid.UserColumn( "Owner", attach_popup=False ), + RepositoriesWithReviewsGrid.WithReviewsRevisionColumn( "Reviewed revisions" ), + RepositoriesWithReviewsGrid.ReviewersColumn( "Reviewers", attach_popup=False ), + RepositoriesWithReviewsGrid.RatingColumn( "Rating", attach_popup=False ), + RepositoriesWithReviewsGrid.ApprovedColumn( "Approved", attach_popup=False ) + ] + columns.append( grids.MulticolFilterColumn( "Search repository name", + cols_to_filter=[ columns[ 0 ] ], + key="free-text-search", + visible=False, + filterable="standard" ) ) + def build_initial_query( self, trans, **kwd ): return trans.sa_session.query( model.Repository ) \ .filter( and_( model.Repository.table.c.deleted == False, Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org