[allura:tickets] Re: #8059 Ticket search's dropdown filter choices should not show options from deleted tickets

2017-03-15 Thread Dave Brondsema
Cool - if it all works, submit a merge request and I can take a better look at it that way. --- ** [tickets:#8059] Ticket search's dropdown filter choices should not show options from deleted tickets** **Status:** open **Milestone:** unreleased **Created:** Mon Feb 22, 2016 11:16 PM UTC by

[allura:tickets] Re: #8059 Ticket search's dropdown filter choices should not show options from deleted tickets

2017-03-15 Thread huzaifafaruqui
In class `Ticket`, I can add a class method ~~~ @classmethod def not_deleted_query(cls,search_query): """Update search query to not include deleted tickets search_query - query in solr syntax """ return search_query + ' && deleted: False' ~~~ Then, in

[allura:tickets] Re: #8059 Ticket search's dropdown filter choices should not show options from deleted tickets

2017-03-14 Thread Dave Brondsema
What about other pages like a search or when you click on a milestone? Those run from different controllers than `index`. And admins have a "Show deleted tickets" link, so we'll want that option to continue to work for them. --- ** [tickets:#8059] Ticket search's dropdown filter choices