Skip to content

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

Merged
merged 6 commits into from
Mar 8, 2017
Merged

DebugID #1233

merged 6 commits into from
Mar 8, 2017

Conversation

eggrobin
Copy link
Member

@eggrobin eggrobin commented Mar 8, 2017

No description provided.

eggrobin added 5 commits March 8, 2017 19:03

Partially verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.

Partially verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
@eggrobin eggrobin changed the base branch from master to Cardano March 8, 2017 21:23
@@ -144,6 +153,15 @@ not_null<std::unique_ptr<Part>> Part::ReadFromMessage(
return part;
}

std::string Part::DebugID() const {
Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@@ -100,8 +101,12 @@ class Part final {
serialization::Part const& message,
std::function<void()> deletion_callback);

// returns "part name (part ID)".
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Returns

@@ -281,6 +289,10 @@ not_null<std::unique_ptr<Vessel>> Vessel::ReadFromMessage(
return std::move(vessel);
}

std::string Vessel::DebugID() const {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same.

@@ -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;
Copy link
Member

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.

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;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same.

@@ -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;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And here too.

@eggrobin eggrobin merged commit b8ebc64 into mockingbirdnest:Cardano Mar 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants