Qqwy/elixir-map_diff

I think there is an issue somewhere when array is presented

Closed this issue · 2 comments

creative_previous = %{
"CreativeId" => "aamer95b",
"Description" => nil,
"AdvertiserId" => "scr2fkb",
"Availability" => "Available",
"CreatedAtUTC" => "2017-10-26T13:17:37.877",
"CreativeName" => "asdsadsadsasa",
"CreativeType" => "ThirdPartyTag",
"FlightEndDateUTC" => nil,
"FlightStartDateUTC" => nil,
"CreativeAuditStatuses" => [
%{
"AuditStatus" => "pending",
"CreativeAuditor" => "Google",
"ReasonForStatus" => "Submitted for approval"
},
%{
"AuditStatus" => "pending",
"CreativeAuditor" => "AppNexus",
"ReasonForStatus" => nil
},
%{
"AuditStatus" => "pending",
"CreativeAuditor" => "Microsoft",
"ReasonForStatus" => nil
},
%{
"AuditStatus" => "approved",
"CreativeAuditor" => "BrightRoll",
"ReasonForStatus" => "Approved."
},
%{
"AuditStatus" => "pending",
"CreativeAuditor" => "RightMedia",
"ReasonForStatus" => "Pending approval."
}
],
"ThirdPartyTagAttributes" => %{
"AdTag" => "<script id='boo-banner-1296' src='//cdn.boo.live/campaigns/test2/banners/1296/embed.js?click_macro=%%TTD_CLK_ESC%%&referral_url=%%TTD_SITE%%&boostid=393'></script>",
"Width" => 300,
"Height" => 250,
"IsSecurable" => true,
"AdServerName" => "Other",
"MraidVersion" => "Nonmraid",
"AdTechnologyIds" => [],
"LandingPageUrls" => [
"http://www.boo.live"
],
"AdServerCreativeId" => nil,
"RightMediaOfferTypeId" => 3
}
}

current_previous = %{
"CreativeId" => "aamer95b",
"Description" => nil,
"AdvertiserId" => "scr2fkb",
"Availability" => "Available",
"CreatedAtUTC" => "2017-10-26T13:17:37.877",
"CreativeName" => "asdsadsadsasa",
"CreativeType" => "ThirdPartyTag",
"FlightEndDateUTC" => nil,
"FlightStartDateUTC" => nil,
"CreativeAuditStatuses" => [
%{
"AuditStatus" => "pending",
"CreativeAuditor" => "Google",
"ReasonForStatus" => "Google flagged this as needing manual approval."
},
%{
"AuditStatus" => "pending",
"CreativeAuditor" => "AppNexus",
"ReasonForStatus" => nil
},
%{
"AuditStatus" => "pending",
"CreativeAuditor" => "Microsoft",
"ReasonForStatus" => nil
},
%{
"AuditStatus" => "approved",
"CreativeAuditor" => "BrightRoll",
"ReasonForStatus" => "Approved."
},
%{
"AuditStatus" => "pending",
"CreativeAuditor" => "RightMedia",
"ReasonForStatus" => "Pending approval."
}
],
"ThirdPartyTagAttributes" => %{
"AdTag" => "<script id='boo-banner-1296' src='//cdn.boo.live/campaigns/test2/banners/1296/embed.js?click_macro=%%TTD_CLK_ESC%%&referral_url=%%TTD_SITE%%&boostid=393'></script>",
"Width" => 300,
"Height" => 250,
"IsSecurable" => true,
"AdServerName" => "Other",
"MraidVersion" => "Nonmraid",
"AdTechnologyIds" => [],
"LandingPageUrls" => [
"http://www.boo.live"
],
"AdServerCreativeId" => nil,
"RightMediaOfferTypeId" => 3
}
}

result = MapDiff.diff(creative_previous, current_previous)

Qqwy commented

Can you explain in more detail what the exact problem is?

Qqwy commented

Closing because of inactivity.