-
Notifications
You must be signed in to change notification settings - Fork 70
DebugID #1233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DebugID #1233
Conversation
ksp_plugin/part.cpp
Outdated
@@ -144,6 +153,15 @@ not_null<std::unique_ptr<Part>> Part::ReadFromMessage( | |||
return part; | |||
} | |||
|
|||
std::string Part::DebugID() const { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upon reflection I'd call this ShortDebugString
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
ksp_plugin/part.hpp
Outdated
@@ -100,8 +101,12 @@ class Part final { | |||
serialization::Part const& message, | |||
std::function<void()> deletion_callback); | |||
|
|||
// returns "part name (part ID)". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Returns
ksp_plugin/vessel.cpp
Outdated
@@ -281,6 +289,10 @@ not_null<std::unique_ptr<Vessel>> Vessel::ReadFromMessage( | |||
return std::move(vessel); | |||
} | |||
|
|||
std::string Vessel::DebugID() const { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same.
serialization/journal.proto
Outdated
@@ -748,8 +748,9 @@ message InsertOrKeepVessel { | |||
message In { | |||
required fixed64 plugin = 1 [(pointer_to) = "Plugin", (is_subject) = true]; | |||
required string vessel_guid = 2; | |||
required int32 parent_index = 3; | |||
required bool loaded = 4; | |||
required string vessel_name = 3; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't renumber the fields, it's a bad practice, just use 5 for the vessel_name
.
serialization/journal.proto
Outdated
required int32 main_body_index = 5; | ||
required QP main_body_world_degrees_of_freedom = 6; | ||
required QP part_world_degrees_of_freedom = 7; | ||
required string name = 3; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same.
serialization/journal.proto
Outdated
@@ -781,8 +783,9 @@ message InsertUnloadedPart { | |||
message In { | |||
required fixed64 plugin = 1 [(pointer_to) = "Plugin", (is_subject) = true]; | |||
required fixed32 part_id = 2; | |||
required string vessel_guid = 3; | |||
required QP from_parent = 4; | |||
required string name = 3; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here too.
No description provided.