From 57f0c2f25da3316efbff63f7f8dc73df20705320 Mon Sep 17 00:00:00 2001 From: Amine Hilaly Date: Fri, 5 Apr 2019 00:01:08 +0200 Subject: [PATCH] improve docs --- cache/filter.go | 12 ++++++------ doc/queries.md | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cache/filter.go b/cache/filter.go index 7b1a60545c6c1bcf3e9f4817e71d66ab08d97229..b26e7ae164ba4f1ff84dc15b72428052e9caf312 100644 --- a/cache/filter.go +++ b/cache/filter.go @@ -66,12 +66,12 @@ func ActorFilter(query string) Filter { panic("missing identity in the cache") } - if strings.Contains(strings.ToLower(identityExcerpt.Name), query) || - query == identityExcerpt.Id || query == strings.ToLower(identityExcerpt.Login) { + if query == identityExcerpt.Id || + strings.Contains(strings.ToLower(identityExcerpt.Name), query) || + query == strings.ToLower(identityExcerpt.Login) { return true } } - return false } } @@ -87,12 +87,12 @@ func ParticipantFilter(query string) Filter { panic("missing identity in the cache") } - if strings.Contains(strings.ToLower(identityExcerpt.Name), query) || - query == identityExcerpt.Id || query == strings.ToLower(identityExcerpt.Login) { + if query == identityExcerpt.Id || + strings.Contains(strings.ToLower(identityExcerpt.Name), query) || + query == strings.ToLower(identityExcerpt.Login) { return true } } - return false } } diff --git a/doc/queries.md b/doc/queries.md index 857600e81e5e6a76ab674d8c6c17ab177056f028..b93941d17ffd4615088073a818f0867258a9d76a 100644 --- a/doc/queries.md +++ b/doc/queries.md @@ -35,7 +35,7 @@ You can filter based on the person who opened the bug. ### Filtering by participant -You can filter based on the person who participated in the bug (Opened the bug or added a comment). +You can filter based on the person who participated in any activity related to the bug (Opened bug or added a comment). | Qualifier | Example | | --- | --- |