Re-introduce `application_id` in `ScheduledStatusSerializer` (#33505)

pull/33452/merge
Claire 3 days ago committed by GitHub
parent 51a92427ce
commit 91c75a6361
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -8,8 +8,4 @@ class REST::ScheduledStatusSerializer < ActiveModel::Serializer
def id def id
object.id.to_s object.id.to_s
end end
def params
object.params.without('application_id')
end
end end

@ -17,7 +17,7 @@ RSpec.describe REST::ScheduledStatusSerializer do
expect(subject.deep_symbolize_keys) expect(subject.deep_symbolize_keys)
.to include( .to include(
scheduled_at: be_a(String).and(match_api_datetime_format), scheduled_at: be_a(String).and(match_api_datetime_format),
params: not_include(:application_id) params: include(:application_id)
) )
end end
end end

Loading…
Cancel
Save