-
Notifications
You must be signed in to change notification settings - Fork 14
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
Versioning_Engine: Add support for custom message on items without an upgrade #2273
Versioning_Engine: Add support for custom message on items without an upgrade #2273
Conversation
@@ -91,7 +91,12 @@ public static BsonDocument ToNewVersion(this BsonDocument document, string versi | |||
// Get the new version back | |||
BsonDocument result = ReadDocument(pipe); | |||
if (result != null) | |||
document = result; | |||
{ | |||
if (result.Contains("_t") && result["_t"] == "NoUpdate" && result.Contains("Message")) |
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.
Maybe a dumb question from not having read in detail everything on the Versioning_TK PR, but if the result contains _t
and that type is of NoUpdate
but the result does not contain a message, do we still want to set the document = result;
?
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.
Thanks @FraserGreenroyd, Good catch. That should never happen since we are responsible for both end of the pipeline but better safe than sorry 😄 . Code updated
f224278
to
f984eb0
Compare
f984eb0
to
745b0d8
Compare
@BHoMBot check copyright |
@adecler to confirm, |
/azp run BHoM_Engine.CheckInstaller |
Azure Pipelines successfully started running 1 pipeline(s). |
@BHoMBot check installer |
@adecler to confirm, |
/azp run BHoM_Engine.CheckInstaller |
Azure Pipelines successfully started running 1 pipeline(s). |
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.
LGTM
Issues addressed by this PR
Supports this PR in the Versioning Toolkit: BHoM/Versioning_Toolkit#134
See that PR for more details