Skip to content

Allow mention.cluster = another_cluster #99

Description

@martinpopel

Moving a mention from one cluster to another cluster is not supported yet (but it seems @dan-zeman would like to use it). We should:

  • remove the NotImplementedError in the setter
  • add self._cluster._mentions.remove(self)
  • decide if cluster._mentions should be always sorted (and if yes, add a sort())
  • if self._bridging and new_cluster in self._bridging.targets: raise ValueError("Bridge cannot self-reference the same cluster")
  • make sure there are no other hidden problems

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