Skip to content

Commit

Permalink
IOS-2350 Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
mgolovko committed Apr 3, 2024
1 parent 4609dd7 commit 3c7e27f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ final class ActiveSpaceParticipantStorage: ActiveSpaceParticipantStorageProtocol
)

let filters: [DataviewFilter] = .builder {
SearchHelper.notHiddenFilters(allowHiddenDiscovery: false)
SearchHelper.notHiddenFilters(includeHiddenDiscovery: false)
SearchHelper.spaceId(spaceId)
SearchHelper.layoutFilter([.participant])
SearchHelper.participantStatusFilter(.active, .joining, .removing)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ final class SearchService: SearchServiceProtocol {
)
let filters: [DataviewFilter] = .builder {
SearchHelper.includeIdsFilter(limitObjectIds)
SearchHelper.notHiddenFilters(allowHiddenDiscovery: false)
SearchHelper.notHiddenFilters(includeHiddenDiscovery: false)
}

return try await searchMiddleService.search(filters: filters, sorts: [sort], fullText: text)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,10 @@ public class SearchHelper {
return filter
}

public static func notHiddenFilters(isArchive: Bool = false, allowHiddenDiscovery: Bool = true) -> [DataviewFilter] {
public static func notHiddenFilters(isArchive: Bool = false, includeHiddenDiscovery: Bool = true) -> [DataviewFilter] {
.builder {
SearchHelper.isHidden(false)
if allowHiddenDiscovery {
if includeHiddenDiscovery {
SearchHelper.isHiddenDiscovery(false)
}
SearchHelper.isDeletedFilter(isDeleted: false)
Expand Down

0 comments on commit 3c7e27f

Please sign in to comment.