Skip to content

Provide a dry run #79

@gruberrolandvaltech

Description

@gruberrolandvaltech

It would be great if Groovy Console could provide a dry-run method. So some second button to run the script without saving any changes.

This could be done by using a wrapper around the used ResourceResolver and its session object. This could then ignore calls to resolver.commit() and session.save().

On the other hand, for non-dry-runs the session.save() could be called directly by Groovy Console. This way there is no more need for session.save() at the end of all scripts.

Bindings also need to know about the dry-run. So the information needs to be provided to them, too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions