From cd6537b3f760f4f9f3f33206c8c46be991715efd Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Tue, 16 Jan 2024 15:17:54 -0600 Subject: [PATCH] scope gene variants query to exclude deprecated variants --- server/app/graphql/resolvers/variants.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/app/graphql/resolvers/variants.rb b/server/app/graphql/resolvers/variants.rb index 44b439cd6..ccf042021 100644 --- a/server/app/graphql/resolvers/variants.rb +++ b/server/app/graphql/resolvers/variants.rb @@ -8,7 +8,7 @@ class Resolvers::Variants < GraphQL::Schema::Resolver description 'List and filter variants.' - scope { object.variants.order('variants.name ASC').distinct } + scope { object.variants.where(deprecated: false).order('variants.name ASC').distinct } option(:name, type: GraphQL::Types::String, description: 'Left anchored filtering for variant name and aliases.') do |scope, value| scope.left_joins(:variant_aliases)