Giter VIP home page Giter VIP logo

Comments (6)

davejtoews avatar davejtoews commented on June 12, 2024 1

It's not an array because it's undefined unless you set a value in your app.yml. Ran into the same issue myself. If you don't want to truncate anything you can set an empty array in app.yml to prevent the error.

DNADesign\Populate\Populate:
  truncate_objects: []

from silverstripe-populate.

michalkleiner avatar michalkleiner commented on June 12, 2024 1

Is there a way to truncate only the objects created using the module?

No. There's no record or a way of knowing which objects were created by this module and which existed before or after.

from silverstripe-populate.

LiamKearn avatar LiamKearn commented on June 12, 2024

EG. https://github.com/silverstripe/silverstripe-populate/pull/32/files#diff-93dc79eb6bab3a17b4ea782351fd413f3b01e654949378c6b8dd974acdbc26ecR81 Foreach expects to iterate but doesn't get an iterable. Probably because it was removed here: https://github.com/silverstripe/silverstripe-populate/pull/32/files#diff-93dc79eb6bab3a17b4ea782351fd413f3b01e654949378c6b8dd974acdbc26ecL38.

Not sure what config returns if the config option is never set but It might be the cause.

from silverstripe-populate.

LiamKearn avatar LiamKearn commented on June 12, 2024

Thanks @davejtoews, should have moved to fix this when I discovered it!

This will make our CI a little cleaner if when we update next :)

from silverstripe-populate.

DanielTate avatar DanielTate commented on June 12, 2024

This should be in the readme.

from silverstripe-populate.

DanielTate avatar DanielTate commented on June 12, 2024

Is there a way to truncate only the objects created using the module?

from silverstripe-populate.

Related Issues (16)

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.