From: Dawid Juszczak Date: Fri, 5 Apr 2019 11:16:45 +0000 (+0200) Subject: [Content] Deprecate filtering attribute X-Git-Tag: submit/tizen/20190418.053050~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9862bcd4ba8a9523909facc49f4d2df3e975877a;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Content] Deprecate filtering attribute [ACR] http://suprem.sec.samsung.net/jira/browse/TWDAPI-210 Change-Id: Ib0ebdee662d7dbb57ad29e98d2b7e427911f9182 Signed-off-by: Dawid Juszczak --- diff --git a/src/content/content_filter.cc b/src/content/content_filter.cc index cb693109..f9acabd3 100644 --- a/src/content/content_filter.cc +++ b/src/content/content_filter.cc @@ -20,6 +20,7 @@ #include "common/converter.h" #include "common/logger.h" +#include "common/tools.h" using common::AttributeMatchFlag; using common::CompositeFilterType; @@ -84,6 +85,9 @@ PlatformResult ContentFilter::MapField(const std::string& name, std::string* res ScopeLogger(); auto it = attributeNameMap.find(name); if (it != attributeNameMap.end()) { + if (name == "rating" || name == "description") { + common::tools::PrintDeprecationWarningFor("Filtering by attribute '" + name + "'"); + } *result = it->second; } else { return LogAndCreateResult(ErrorCode::INVALID_VALUES_ERR);