improve docs

Amine Hilaly created

Change summary

cache/filter.go | 12 ++++++------
doc/queries.md  |  2 +-
2 files changed, 7 insertions(+), 7 deletions(-)

Detailed changes

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
 	}
 }

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                                                                                            |
 | ---                 | ---                                                                                                |