Adds immediate migration results in progress

This commit is contained in:
torsten committed 2026-08-19 11:18:24 +02:00
1 parent 8453e104c5
commit 3bb6e89496
2102 files changed
+17482 -15071

No files matched your search

@@ -43,10 +43,10 @@ Core::FunctionReplyObject ObjectIed::createObject(const Database::GimIed &data)
}
// Id is serial -> will be generated by db => inside m_data after db-insert
DEBUG_LOG() << "New IED-Id: " << m_data.id;
DEBUG_LOG(m_logger) << "New IED-Id: " << m_data.id;
}
INFO_LOG() << "Ied created sucessfully.";
INFO_LOG(m_logger) << "Ied created sucessfully.";
// Publish Data via DTS
onPublishData();
@@ -163,10 +163,10 @@ void ObjectIed::onPublishData()
ddsData.symbol(m_data.symbol.toStdString());
ddsData.sampleTime(m_data.sampleTime);
INFO_LOG() << "Publish IED-data to dds (" << m_data.id << ") ...";
INFO_LOG(m_logger) << "Publish IED-data to dds (" << m_data.id << ") ...";
if (!m_ddsHandler->dts()->publish(ddsData))
ERROR_LOG() << "Error publishing IED-data to dds";
ERROR_LOG(m_logger) << "Error publishing IED-data to dds";
}
void ObjectIed::onParticipantPositionChanged(const ParticipantManagement::ParticipantPosition &data, DataModification modType)
@@ -219,15 +219,15 @@ Core::FunctionReplyObject ObjectIed::updateObject()
if (!isValid())
return Core::FunctionReplyObject(m_data.id, tr_lts("dds", "Trying to update an already removed IED object"));
INFO_LOG() << "Trying to updateObject IedData with id = " << m_data.id;
INFO_LOG(m_logger) << "Trying to updateObject IedData with id = " << m_data.id;
if (!m_db->update(m_data))
{
ERROR_LOG() << "Failed to update IedData with id = " << m_data.id;
ERROR_LOG(m_logger) << "Failed to update IedData with id = " << m_data.id;
return Core::FunctionReplyObject(m_data.id, tr_lts("dds", "Error updating IED-data with id %1 in database")).arg(m_data.id);
}
INFO_LOG() << "IED-Data changed sucessfully.";
INFO_LOG(m_logger) << "IED-Data changed sucessfully.";
// Publish Data via DTS
onPublishData();
@@ -238,7 +238,7 @@ Core::FunctionReplyObject ObjectIed::updateObject()
void ObjectIed::publishPosition()
{
if (!m_ddsHandler->dts()->publish(m_position))
ERROR_LOG() << "Error publishing IED-position to dds";
ERROR_LOG(m_logger) << "Error publishing IED-position to dds";
}
bool ObjectIed::isValid() const