From 69c19df3cb3e38241f876f0100c555fe02b6e7c0 Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Mon, 2 Sep 2024 20:14:38 +0200 Subject: [PATCH] Fix export_serializer_spec and update changelog --- CHANGELOG.md | 1 + spec/serializers/export_serializer_spec.rb | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b2b0b346..c8264072 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ deploy: ### Changed - A notification about an existing import with the same name will now show the import name +- Export file now also will contain `raw_dat` field for each point. This field contains the original data that was imported to the application. ## [0.12.2] — 2024-08-28 diff --git a/spec/serializers/export_serializer_spec.rb b/spec/serializers/export_serializer_spec.rb index 17efbfb3..e77acff5 100644 --- a/spec/serializers/export_serializer_spec.rb +++ b/spec/serializers/export_serializer_spec.rb @@ -30,7 +30,8 @@ RSpec.describe ExportSerializer do tst: points.first.timestamp.to_i, inrids: points.first.inrids, inregions: points.first.in_regions, - topic: points.first.topic + topic: points.first.topic, + raw_data: points.first.raw_data }, { lat: points.second.latitude, @@ -50,7 +51,8 @@ RSpec.describe ExportSerializer do tst: points.second.timestamp.to_i, inrids: points.second.inrids, inregions: points.second.in_regions, - topic: points.second.topic + topic: points.second.topic, + raw_data: points.second.raw_data } ] }