ChangeJson: Eliminate patch set loading in search results
Normal search results do not require patch sets, since they do not set
any REVISIONS or MESSAGES options. (The exception is the My Changes
dashboard, which needs messages to determine whether to bold changes.)
They do need to evaluate submit rules, but the only thing the
SubmitRuleEvaluator needs the patch set object for is to check if it
is a draft. If drafts are allowed, which is the case in ChangeJson, it
doesn't need the patch set at all.
Change-Id: Ia4bb97abb79e7552ac4086b00ede5962d9f1bc6a
2 files changed