Skip to content

Commit

Permalink
add missing activity subclass to list
Browse files Browse the repository at this point in the history
  • Loading branch information
acoffman committed Jan 11, 2024
1 parent 3443f8d commit 4d4d7ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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
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 4d4d7ee

Please sign in to comment.