From 06155c7de08c30fd3dc2abaf506ea4046eafda95 Mon Sep 17 00:00:00 2001 From: Kory Draughn Date: Thu, 22 Feb 2024 16:44:11 -0500 Subject: [PATCH] squash. clang-format --- libirods_rule_engine_plugin-indexing.cpp | 104 +++++++++++------------ 1 file changed, 52 insertions(+), 52 deletions(-) diff --git a/libirods_rule_engine_plugin-indexing.cpp b/libirods_rule_engine_plugin-indexing.cpp index 86d1302..fe0bd35 100644 --- a/libirods_rule_engine_plugin-indexing.cpp +++ b/libirods_rule_engine_plugin-indexing.cpp @@ -838,8 +838,8 @@ namespace if (end == std::string_view::npos) { auto msg = fmt::format("Received malformed rule text. " - "Expected closing curly brace following rule text [{}].", - rule_text); + "Expected closing curly brace following rule text [{}].", + rule_text); log_re::error(msg); return ERROR(SYS_INVALID_INPUT_PARAM, std::move(msg)); } @@ -855,8 +855,8 @@ namespace if (end == std::string_view::npos) { auto msg = fmt::format("Received malformed rule text. " - "Expected closing curly brace following rule text [{}].", - rule_text); + "Expected closing curly brace following rule text [{}].", + rule_text); log_re::error(msg); return ERROR(SYS_INVALID_INPUT_PARAM, std::move(msg)); } @@ -888,36 +888,36 @@ namespace const auto& op = rule_obj.at("rule-engine-operation").get_ref(); if (irods::indexing::policy::object::index == op) { - // proxy for provided user name - //const std::string& user_name = rule_obj["user-name"]; - //rstrcpy(rei->rsComm->clientUser.userName, user_name.c_str(), NAME_LEN); + // proxy for provided user name + //const std::string& user_name = rule_obj["user-name"]; + //rstrcpy(rei->rsComm->clientUser.userName, user_name.c_str(), NAME_LEN); - // - implement (full-text?) indexing on an individual object - // - as a delayed task. - // - - apply_object_policy(rei, - irods::indexing::policy::object::index, - rule_obj.at("object-path").get_ref(), - rule_obj.at("source-resource").get_ref(), - rule_obj.at("indexer").get_ref(), - rule_obj.at("index-name").get_ref(), - rule_obj.at("index-type").get_ref()); + // - implement (full-text?) indexing on an individual object + // - as a delayed task. + // - + apply_object_policy(rei, + irods::indexing::policy::object::index, + rule_obj.at("object-path").get_ref(), + rule_obj.at("source-resource").get_ref(), + rule_obj.at("indexer").get_ref(), + rule_obj.at("index-name").get_ref(), + rule_obj.at("index-type").get_ref()); } else if (irods::indexing::policy::object::purge == op) { - // proxy for provided user name - //const std::string& user_name = rule_obj["user-name"]; - //rstrcpy(rei->rsComm->clientUser.userName, user_name.c_str(), NAME_LEN); + // proxy for provided user name + //const std::string& user_name = rule_obj["user-name"]; + //rstrcpy(rei->rsComm->clientUser.userName, user_name.c_str(), NAME_LEN); - // - implement index purge on an individual object - // - as a delayed task. - // - - apply_object_policy(rei, - irods::indexing::policy::object::purge, - rule_obj.at("object-path").get_ref(), - rule_obj.at("source-resource").get_ref(), - rule_obj.at("indexer").get_ref(), - rule_obj.at("index-name").get_ref(), - rule_obj.at("index-type").get_ref()); + // - implement index purge on an individual object + // - as a delayed task. + // - + apply_object_policy(rei, + irods::indexing::policy::object::purge, + rule_obj.at("object-path").get_ref(), + rule_obj.at("source-resource").get_ref(), + rule_obj.at("indexer").get_ref(), + rule_obj.at("index-name").get_ref(), + rule_obj.at("index-type").get_ref()); } else if (irods::indexing::policy::collection::index == op) { // - launch delayed task to handle indexing events under a collection @@ -944,32 +944,32 @@ namespace rule_obj.at("index-type").get_ref()); } else if (irods::indexing::policy::metadata::index == op) { - // proxy for provided user name - //const std::string& user_name = rule_obj["user-name"]; - //rstrcpy(rei->rsComm->clientUser.userName, user_name.c_str(), NAME_LEN); + // proxy for provided user name + //const std::string& user_name = rule_obj["user-name"]; + //rstrcpy(rei->rsComm->clientUser.userName, user_name.c_str(), NAME_LEN); - apply_metadata_policy(rei, - irods::indexing::policy::metadata::index, - rule_obj.at("object-path").get_ref(), - rule_obj.at("indexer").get_ref(), - rule_obj.at("index-name").get_ref(), - rule_obj.at("attribute").get_ref(), - rule_obj.at("value").get_ref(), - rule_obj.at("units").get_ref()); + apply_metadata_policy(rei, + irods::indexing::policy::metadata::index, + rule_obj.at("object-path").get_ref(), + rule_obj.at("indexer").get_ref(), + rule_obj.at("index-name").get_ref(), + rule_obj.at("attribute").get_ref(), + rule_obj.at("value").get_ref(), + rule_obj.at("units").get_ref()); } else if (irods::indexing::policy::metadata::purge == op) { - // proxy for provided user name - //const std::string& user_name = rule_obj["user-name"]; - //rstrcpy(rei->rsComm->clientUser.userName, user_name.c_str(), NAME_LEN); + // proxy for provided user name + //const std::string& user_name = rule_obj["user-name"]; + //rstrcpy(rei->rsComm->clientUser.userName, user_name.c_str(), NAME_LEN); - apply_metadata_policy(rei, - irods::indexing::policy::metadata::purge, - rule_obj.at("object-path").get_ref(), - rule_obj.at("indexer").get_ref(), - rule_obj.at("index-name").get_ref(), - rule_obj.at("attribute").get_ref(), - rule_obj.at("value").get_ref(), - rule_obj.at("units").get_ref()); + apply_metadata_policy(rei, + irods::indexing::policy::metadata::purge, + rule_obj.at("object-path").get_ref(), + rule_obj.at("indexer").get_ref(), + rule_obj.at("index-name").get_ref(), + rule_obj.at("attribute").get_ref(), + rule_obj.at("value").get_ref(), + rule_obj.at("units").get_ref()); } else if ("irods_policy_recursive_rm_object_by_path" == op) { //const std::string& user_name = rule_obj["user-name"];