File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,8 @@ gs::Result<bool> WorkDirManipulator::DumpGraphSchema(
105
105
YAML::Node plugin_node;
106
106
plugin_node[" name" ] = plugin.name ;
107
107
plugin_node[" library" ] = plugin.library ;
108
- plugin_node[" description" ] = plugin.description ;
108
+ // quote the description, since it may contain space.
109
+ plugin_node[" description" ] = " \" " + plugin.description + " \" " ;
109
110
if (plugin.params .size () > 0 ) {
110
111
YAML::Node params_node;
111
112
for (auto & param : plugin.params ) {
@@ -525,7 +526,9 @@ gs::Result<seastar::sstring> WorkDirManipulator::UpdateProcedure(
525
526
auto new_description = json[" description" ];
526
527
VLOG (10 ) << " Update description: "
527
528
<< new_description; // update description
528
- plugin_node[" description" ] = new_description.get <std::string>();
529
+ // quote the description, since it may contain space.
530
+ plugin_node[" description" ] =
531
+ " \" " + new_description.get <std::string>() + " \" " ;
529
532
}
530
533
531
534
bool enabled;
Original file line number Diff line number Diff line change @@ -150,6 +150,11 @@ Result<std::vector<PluginMeta>> DefaultGraphMetaStore::GetAllPluginMeta(
150
150
metas.push_back (plugin_meta);
151
151
}
152
152
}
153
+ // Sort the plugin metas by create time.
154
+ std::sort (metas.begin (), metas.end (),
155
+ [](const PluginMeta& a, const PluginMeta& b) {
156
+ return a.creation_time < b.creation_time ;
157
+ });
153
158
return Result<std::vector<PluginMeta>>(metas);
154
159
}
155
160
You can’t perform that action at this time.
0 commit comments