Skip to content

Commit d8f3048

Browse files
committed
2.4.16
1 parent 45356c4 commit d8f3048

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@
1010

1111
### Bug fixes
1212

13+
# 2.4.16 (1 Apr 2025)
14+
15+
### New features
16+
17+
- Move some more modules into GraphQL::Dashboard #5308 #5310
18+
19+
### Bug fixes
20+
21+
- Parser: raise when variable definitions don't include a type name #5305
22+
- PerfettoTrace: Don't create zombie ActiveSupport::Notifications subscribers #5307
23+
1324
# 2.4.15 (19 Mar 2025)
1425

1526
### New features

lib/graphql/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# frozen_string_literal: true
22
module GraphQL
3-
VERSION = "2.4.15"
3+
VERSION = "2.4.16"
44
end

spec/graphql/tracing/perfetto_trace_spec.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ def thing(id:)
9999
model_name, db_id = id.split("-")
100100
dataload_record(Object.const_get(model_name), db_id)
101101
end
102+
103+
field :crash, Int
104+
def crash
105+
raise "Crash the query"
106+
end
102107
end
103108

104109
query(Query)
@@ -163,6 +168,11 @@ def self.resolve_type(type, obj, ctx)
163168
assert ActiveSupport::Notifications.notifier.listening?("event.nonsense")
164169
trace_instance.end_execute_multiplex(multiplex)
165170
refute ActiveSupport::Notifications.notifier.listening?("event.nonsense")
171+
172+
assert_raises do
173+
PerfettoSchema.execute("{ crash }")
174+
end
175+
refute ActiveSupport::Notifications.notifier.listening?("event.nonsense")
166176
end
167177
end
168178
end

0 commit comments

Comments
 (0)