From e6e5dd0e365bfdd241bb1fe907daa0dfb72d28be Mon Sep 17 00:00:00 2001 From: Alfredo Date: Sun, 21 Oct 2018 13:25:51 +0000 Subject: [PATCH 1/4] add policy to adaptor --- .../include/graphene/elasticsearch/elasticsearch_plugin.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/plugins/elasticsearch/include/graphene/elasticsearch/elasticsearch_plugin.hpp b/libraries/plugins/elasticsearch/include/graphene/elasticsearch/elasticsearch_plugin.hpp index 78c1d5cd90..e7fff907ef 100644 --- a/libraries/plugins/elasticsearch/include/graphene/elasticsearch/elasticsearch_plugin.hpp +++ b/libraries/plugins/elasticsearch/include/graphene/elasticsearch/elasticsearch_plugin.hpp @@ -254,6 +254,11 @@ struct adaptor_struct { { o["initializer"] = fc::json::to_string(o["initializer"]); } + if (o.find("policy") != o.end()) + { + o["policy"] = fc::json::to_string(o["policy"]); + } + variant v; fc::to_variant(o, v, FC_PACK_MAX_DEPTH); From bb8a76ddd66f2fd63d87946b1ec467eae019e066 Mon Sep 17 00:00:00 2001 From: Alfredo Date: Sun, 21 Oct 2018 15:20:04 +0000 Subject: [PATCH 2/4] add predicates to adaptor --- .../include/graphene/elasticsearch/elasticsearch_plugin.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/plugins/elasticsearch/include/graphene/elasticsearch/elasticsearch_plugin.hpp b/libraries/plugins/elasticsearch/include/graphene/elasticsearch/elasticsearch_plugin.hpp index e7fff907ef..7efd881491 100644 --- a/libraries/plugins/elasticsearch/include/graphene/elasticsearch/elasticsearch_plugin.hpp +++ b/libraries/plugins/elasticsearch/include/graphene/elasticsearch/elasticsearch_plugin.hpp @@ -258,6 +258,10 @@ struct adaptor_struct { { o["policy"] = fc::json::to_string(o["policy"]); } + if (o.find("predicates") != o.end()) + { + o["predicates"] = fc::json::to_string(o["predicates"]); + } variant v; From 06a48ce84d1bd7bd30c3a99a03323fc94c15d31d Mon Sep 17 00:00:00 2001 From: Alfredo Date: Sun, 21 Oct 2018 16:30:32 +0000 Subject: [PATCH 3/4] add active_special_authority to adaptor --- .../include/graphene/elasticsearch/elasticsearch_plugin.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/plugins/elasticsearch/include/graphene/elasticsearch/elasticsearch_plugin.hpp b/libraries/plugins/elasticsearch/include/graphene/elasticsearch/elasticsearch_plugin.hpp index 7efd881491..0527e112d9 100644 --- a/libraries/plugins/elasticsearch/include/graphene/elasticsearch/elasticsearch_plugin.hpp +++ b/libraries/plugins/elasticsearch/include/graphene/elasticsearch/elasticsearch_plugin.hpp @@ -262,7 +262,10 @@ struct adaptor_struct { { o["predicates"] = fc::json::to_string(o["predicates"]); } - + if (o.find("active_special_authority") != o.end()) + { + o["active_special_authority"] = fc::json::to_string(o["active_special_authority"]); + } variant v; fc::to_variant(o, v, FC_PACK_MAX_DEPTH); From ff0629cc7117c18d3af9a71dd7c1eab541c7854c Mon Sep 17 00:00:00 2001 From: Alfredo Date: Sun, 21 Oct 2018 16:49:33 +0000 Subject: [PATCH 4/4] add owner_special_authority to adaptor --- .../include/graphene/elasticsearch/elasticsearch_plugin.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/plugins/elasticsearch/include/graphene/elasticsearch/elasticsearch_plugin.hpp b/libraries/plugins/elasticsearch/include/graphene/elasticsearch/elasticsearch_plugin.hpp index 0527e112d9..a5ee7417c7 100644 --- a/libraries/plugins/elasticsearch/include/graphene/elasticsearch/elasticsearch_plugin.hpp +++ b/libraries/plugins/elasticsearch/include/graphene/elasticsearch/elasticsearch_plugin.hpp @@ -266,6 +266,11 @@ struct adaptor_struct { { o["active_special_authority"] = fc::json::to_string(o["active_special_authority"]); } + if (o.find("owner_special_authority") != o.end()) + { + o["owner_special_authority"] = fc::json::to_string(o["owner_special_authority"]); + } + variant v; fc::to_variant(o, v, FC_PACK_MAX_DEPTH);