Skip to content

Add DSL for the deletion #3

@kanevk

Description

@kanevk

Add DSL feature for the deleting service.

Currently the deletions are described through the Dalek::Exterminate.deletion_tree method via data structure.

It will be nice to have DSL build over the deletion tree structure.

Example

class DeleteUser
  include Dalek::Exterminate
  
  delete User do
    before { ... }
    
    delete :posts do
      delete :comments

      after { ... }
    end

    delete :comments do
      skip :images
      delete :tags
    end
    
    handle(:avatars) { ... }
  end
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions