Skip to content

Add dataset locking mechanism to Command builder #1653

@Panaetius

Description

@Panaetius

Add a mechanism to lock a project for a single dataset.

Since this has to be done in a hook but we don't know the dataset name at command build time, we could do something like:

command = Command().command(dataset_add).with_dataset_lock(lambda (a,k): a[0]).[...]

And pass the args/kwargs of the wrapped commands to the hooks. Then the hook can use the lambda (a,k) above to extract the dataset name and lock on that. This way we can deal with different positions of the dataset name in different commands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions