Skip to content

Conversation

@IsakNaslundBh
Copy link
Contributor

@IsakNaslundBh IsakNaslundBh commented Apr 1, 2025

Issues addressed by this PR

Closes #3487

Fix issues with types failing to deserialise in newer runtimes.

  • Always call the Base.Create.Type() method for all non-engine types. This was already done for the case that the type was serialised as a string. No reason we should be using the method for when type is serialised as a document as well
    Type type = BH.Engine.Base.Create.Type(bson.AsString, true, true);
  • The above handles problems with the m_ExplicitSystemTypes not caught before in the GetType method
  • Fix handling of ref (out) types to handle the case for:
    • Qualified name (check contains rather than ends with)
    • Generic types
  • Add missing explicit system types shown to be failing

Test files

Test file on SharePoint

Changelog

Additional comments

Fraser Greenroyd and others added 12 commits September 21, 2023 10:55
…pe method

That method is handlign far more than just oM classes. Should be used for other types as well.
Only keeping the check for IsEngineNamespace as that still should work fine
Changing from checking that the string ends with & to instead contains to handle the case of qualified ref type
…t before running into the rest of all the checks
@IsakNaslundBh IsakNaslundBh added the type:bug Error or unexpected behaviour label Apr 1, 2025
@IsakNaslundBh IsakNaslundBh self-assigned this Apr 1, 2025
@IsakNaslundBh IsakNaslundBh requested a review from pawelbaran April 1, 2025 10:39
@michaelhoehn michaelhoehn removed the request for review from FraserGreenroyd April 1, 2025 12:18
@IsakNaslundBh IsakNaslundBh changed the base branch from main to develop April 3, 2025 07:47
@IsakNaslundBh
Copy link
Contributor Author

Replaced by #3489

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:bug Error or unexpected behaviour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BHoM_Engine: Issues deserialising some system types from later runtime in older runtime

3 participants