Fix pagination attributes not being returned in ungroupable-only pages (#30688)

pull/30689/head
Claire 4 months ago committed by GitHub
parent dd587d29b6
commit 45abddb302
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -45,6 +45,6 @@ class REST::NotificationGroupSerializer < ActiveModel::Serializer
end
def paginated?
instance_options[:group_metadata].present?
!instance_options[:group_metadata].nil?
end
end

@ -58,6 +58,7 @@ RSpec.describe 'Notifications' do
expect(response).to have_http_status(200)
expect(body_json_types.uniq).to eq ['mention']
expect(body_as_json[0][:page_min_id]).to_not be_nil
end
end

Loading…
Cancel
Save