Skip to content

Commit

Permalink
Merge pull request #1105 from griffithlab/source-browse-fixes
Browse files Browse the repository at this point in the history
Filter out sources without citations from browse view
  • Loading branch information
acoffman authored Aug 22, 2024
2 parents 771a9f8 + fd60e64 commit 1571ab8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/app/graphql/resolvers/browse_sources.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class Resolvers::BrowseSources < GraphQL::Schema::Resolver

scope do
MaterializedViews::SourceBrowseTableRow.order('source_suggestion_count desc')
.where.not(citation: nil)
.order('evidence_item_count desc')
.all
end
Expand Down

0 comments on commit 1571ab8

Please sign in to comment.