Skip to content
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

Merged
merged 5 commits into from
Feb 3, 2021

Conversation

adecler
Copy link
Member

@adecler adecler commented Jan 22, 2021

Issues addressed by this PR

Supports this PR in the Versioning Toolkit: BHoM/Versioning_Toolkit#134

See that PR for more details

@@ -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"))
Copy link
Contributor

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;?

Copy link
Member Author

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

@adecler adecler force-pushed the Versioning_Toolkit-#117-MessageForItemWithoutUpdate branch 2 times, most recently from f224278 to f984eb0 Compare January 28, 2021 01:52
@adecler adecler force-pushed the Versioning_Toolkit-#117-MessageForItemWithoutUpdate branch from f984eb0 to 745b0d8 Compare January 29, 2021 02:16
@adecler
Copy link
Member Author

adecler commented Feb 2, 2021

@BHoMBot check copyright

@bhombot-ci
Copy link

bhombot-ci bot commented Feb 2, 2021

@adecler to confirm, check-copyright-compliance task is now queued.

@adecler
Copy link
Member Author

adecler commented Feb 2, 2021

/azp run BHoM_Engine.CheckInstaller

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@bhombot-ci
Copy link

bhombot-ci bot commented Feb 2, 2021

@adecler just to let you know, I have provided a check-installer result to this Pull Request as it was detected to be linked to other Pull Requests in a series. The comment which triggered this check came from @adecler on Versioning_Toolkit

@adecler
Copy link
Member Author

adecler commented Feb 2, 2021

@BHoMBot check installer

@bhombot-ci
Copy link

bhombot-ci bot commented Feb 2, 2021

@adecler to confirm, check-installer task is now queued.

@adecler
Copy link
Member Author

adecler commented Feb 2, 2021

/azp run BHoM_Engine.CheckInstaller

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@FraserGreenroyd FraserGreenroyd left a comment

Choose a reason for hiding this comment

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

LGTM

@adecler adecler merged commit e360375 into master Feb 3, 2021
@adecler adecler deleted the Versioning_Toolkit-#117-MessageForItemWithoutUpdate branch February 3, 2021 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:compliance Non-conforming to code guidelines type:feature New capability or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants