Import YAML
- Implemented the import-yaml.pl external script. - Added unit tests. - Fixed problem where the pending tasks were not loaded prior to uuid verification.
This commit is contained in:
@@ -1771,13 +1771,11 @@ int TDB2::id (const std::string& uuid)
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Make sure the specified UUID does not already exist in the data.
|
||||
bool TDB2::verifyUniqueUUID (const std::string& uuid)
|
||||
{
|
||||
if (pending.id (uuid) != 0 ||
|
||||
completed.id (uuid) != 0)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
pending.get_tasks ();
|
||||
return pending.id (uuid) != 0 ? false : true;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -174,19 +174,12 @@ int CmdImport::execute (std::string& output)
|
||||
task.setAnnotations (annos);
|
||||
}
|
||||
|
||||
// TODO Implement
|
||||
else if (i->first == "parent")
|
||||
{
|
||||
}
|
||||
|
||||
// TODO Implement
|
||||
else if (i->first == "mask")
|
||||
{
|
||||
}
|
||||
|
||||
// TODO Implement
|
||||
else if (i->first == "imask")
|
||||
// Attributes without columns are simply added.
|
||||
else if (i->first == "parent" ||
|
||||
i->first == "mask" ||
|
||||
i->first == "imask")
|
||||
{
|
||||
task.set (i->first, unquoteText (i->second->dump ()));
|
||||
}
|
||||
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user