Skip to content

Node Privacy #2146

Open
Open
@alex-courtis

Description

@alex-courtis

Nodes should not be exposed to the user. They are internal representations and should not be mutated by the user.

api.tree.get_nodes and sort_by return/are passed cloned partial nodes.

api.tree.get_node_under_cursor returns the internal node. API functions that take {node} expect a real node.

Proposal:

  1. add a node identifier like a UUID
  2. all API returns a cloned node containing UUID
  3. existing api that takes {node} maps to the internal node via identifier

1 may could achieved via absolute_path, similar to sort_by.

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIAPI or Event

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions