Code Monkey home page Code Monkey logo

Comments (8)

inksword avatar inksword commented on July 24, 2024 1

@DmitriyGeForce Thank you for logging this issue, for discussion. For mock it is easier to support one level master-detail relationship, however to support multiple levels will require some more explorations. The background is that the children field is read-only, and can only be injected values via deserialization. To support children for mock is definitely the goal for next version, since the use case is very important.

For save, save(false), they are used as the same as when you construct sObjects list with code. Even you inserted the sObject with Database.insert, the children won't be retrieved automatically. We have to re-select the children relationship explicitly via SOQL.

from apextestkit.

inksword avatar inksword commented on July 24, 2024 1

@DmitriyGeForce Any preference from your side? I plan to have the next release in Jan next year 2021.

from apextestkit.

inksword avatar inksword commented on July 24, 2024 1

@DmitriyGeForce Just some update to you, the children mock data support is at least 80% done.

Please wait a few more days, I need to write more test cases to cover mock scenarios. And there will be some paragraph in the Readme to describe what are the restrictions to generate children referencing. With all the computation logic added to the new algorithm, the performance goes down a bit. I also need to fine tune it.

Thus, more unit tests and performance are the two key areas I need to focus for now. According to Salesforce documentation, we probably only need to support 1 level of child referencing, with arbitrary levels (~5) parent referencing.

from apextestkit.

inksword avatar inksword commented on July 24, 2024 1

@DmitriyGeForce The feature you requested is released with v3.4. Please check the Readme for more detail.

from apextestkit.

DmitriyGeForce avatar DmitriyGeForce commented on July 24, 2024

@inksword Thank you for response and explanation. Can you tell me when the next version is planned?

from apextestkit.

DmitriyGeForce avatar DmitriyGeForce commented on July 24, 2024

@inksword The only preference is to have this functionality in the nearest future)
It would be great to have this functionality at Jan next year 2021

from apextestkit.

DmitriyGeForce avatar DmitriyGeForce commented on July 24, 2024

@inksword Great, thank you for an update. Look forward to using this functionality.

from apextestkit.

DmitriyGeForce avatar DmitriyGeForce commented on July 24, 2024

@inksword Excellent, thank you for implementation!

from apextestkit.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.