InlineEdit: Add "has:edit" search operator

Index a field "editby" with a value for each account ID that has an
edit on this change. Intentionally don't expose editby:'USER' because
only change edit owners can see them.

Given that "has:edit" predicate outcome depends on the existence of
the change edit ref and not on its content, only reindex the changes
on change edit ref creation and deletion, but not on its mutation.

Bug: Issue 3291
Change-Id: I2d541c781d057cdf9dcacfc02f81591ce6872595
This commit is contained in:
David Ostrovsky
2015-04-30 23:48:35 +02:00
parent 7dc16f2154
commit 9952870b5e
13 changed files with 197 additions and 7 deletions

View File

@@ -246,6 +246,10 @@ has:star::
Same as 'is:starred', true if the change has been starred by the
current user.
has:edit::
+
True if the change has inline edit created by the current user.
[[is]]
is:starred::
+