Skip to content

Add versioning to Structural results #78

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

Conversation

IsakNaslundBh
Copy link
Contributor

NOTE: Depends on

BHoM/BHoM#912

Issues addressed by this PR

Adds in ModeNumber as a property to structural results, if not found in the initial dictionary.

This is needed for the serialiser to be able to apply the correct creator map when trying to deserialise the results.

Test files

https://burohappold.sharepoint.com/:f:/s/BHoM/Ep9h3lEyopBBvsnP3_HGzSwBncLyPKvZnn0q6AZBwMRwzA?e=j5DdEe

Changelog

Additional comments

@IsakNaslundBh IsakNaslundBh added status:do-not-merge For instance, test PR, requires further discussion, or dependant PRs not ready for merge type:external-api-changes Imposed changes, including from dependency across other BHoM repos labels Jun 8, 2020
@IsakNaslundBh IsakNaslundBh added this to the BHoM 3.2 β MVP milestone Jun 8, 2020
@IsakNaslundBh IsakNaslundBh self-assigned this Jun 8, 2020
Making sure there is no BHoM_Guid in the properties, as that will make it impossible to deserialise. The GUID is inserted during the fallback atempt of trying to deserialise as a custom object.
Copy link
Member

@adecler adecler left a comment

Choose a reason for hiding this comment

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

Since I can only judge from the code perspective, I will leave @kThorsager to approve so only putting my review as a comment.

This looks good to me in term of following the procedure for upgrading objects.

kThorsager
kThorsager previously approved these changes Jun 9, 2020
Copy link
Contributor

@kThorsager kThorsager left a comment

Choose a reason for hiding this comment

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

Covers all affected objects, doesn't do anything silly and works base on the testfiles.

Small comment on documenting your issues

but LGTM

@adecler
Copy link
Member

adecler commented Jun 10, 2020

/azp run Versioning_Toolkit.CheckInstaller

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@IsakNaslundBh IsakNaslundBh removed the status:do-not-merge For instance, test PR, requires further discussion, or dependant PRs not ready for merge label Jun 10, 2020
@IsakNaslundBh IsakNaslundBh merged commit 45ed877 into master Jun 10, 2020
@IsakNaslundBh IsakNaslundBh deleted the Structure_oM-#783-MakeAllResultsImmutableAndAddMode branch June 10, 2020 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:external-api-changes Imposed changes, including from dependency across other BHoM repos
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants