Skip to content

Commit

Permalink
Merge branch 'main' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
acoffman committed Jan 16, 2024
2 parents ec79d07 + 3d72dae commit 5b84fb6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
9 changes: 4 additions & 5 deletions server/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ GEM
method_source (1.0.0)
mini_magick (4.12.0)
mini_mime (1.1.5)
mini_portile2 (2.8.5)
minitest (5.20.0)
msgpack (1.7.2)
multi_json (1.15.0)
Expand All @@ -248,11 +249,8 @@ GEM
net-protocol
net-ssh (7.2.0)
nio4r (2.7.0)
nokogiri (1.15.4-arm64-darwin)
racc (~> 1.4)
nokogiri (1.15.4-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.15.4-x86_64-linux)
nokogiri (1.15.4)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
oauth2 (1.4.11)
faraday (>= 0.17.3, < 3.0)
Expand Down Expand Up @@ -478,6 +476,7 @@ GEM
PLATFORMS
arm64-darwin-21
arm64-darwin-22
arm64-darwin-23
x86_64-darwin-22
x86_64-linux

Expand Down
2 changes: 1 addition & 1 deletion server/app/graphql/resolvers/variants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions server/app/graphql/types/interfaces/activity_interface.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def hash_key_from_object(object)
Types::Activities::AcceptRevisionsActivityType,
Types::Activities::CreateVariantActivityType,
Types::Activities::DeprecateComplexMolecularProfileActivityType,
Types::Activities::CreateComplexMolecularProfileActivityType
)

definition_methods do
Expand Down Expand Up @@ -91,6 +92,8 @@ def resolve_type(object, context)
Types::Activities::CreateVariantActivityType
when DeprecateComplexMolecularProfileActivity
Types::Activities::DeprecateComplexMolecularProfileActivityType
when CreateComplexMolecularProfileActivity
Types::Activities::CreateComplexMolecularProfileActivityType
else
raise "Unexpected Activity type #{object.class}"
end
Expand Down

0 comments on commit 5b84fb6

Please sign in to comment.