#8069 Ticket search error: undefined field assigned_to

v1.4.0
closed
None
General
Heith Seewald
2016-03-24
2016-03-18
No

Ticket searches may sometimes error out with "undefined field assigned_to", since searches grab one arbitrary ticket and call index() on it to determine what fields exist (to append _s etc to match solr naming). But index() on Ticket doesn't always include assigned_to_s.

Easiest way to reproduce is with a fresh data set (or db.ticket.remove({})) and then create a ticket without an owner. Then search for assigned_to:foo and get the error.

Discussion

  • Dave Brondsema

    Dave Brondsema - 2016-03-23
    • status: in-progress --> review
     
  • Dave Brondsema

    Dave Brondsema - 2016-03-23

    Fixed on db/8069 branch.

     
  • Heith Seewald

    Heith Seewald - 2016-03-24
    • status: review --> closed
    • Reviewer: Heith Seewald
     
  • Heith Seewald

    Heith Seewald - 2016-03-24

    Looks good :)

     
  • Dave Brondsema

    Dave Brondsema - 2016-04-11
    • Milestone: unreleased --> v1.4.0
     

Log in to post a comment.