Skip to content

Spike - encapsulate Segments API into an overridable class #51

Open

Description

@akesterson

Currently everything about dpath's 2.0 behavior is wrapped up in the segments library, or virtually all of it. We'd like to be able to easily specify whether the v1 or v2 API is being used. We could easily break this out into "v1" and "v2" submodules, but that would break backwards compatibility for 1.x users who expect everything to be in dpath.utils (and, frankly, it gets in the way of dpath's simplicity - ultimately this is a utility library of only a few methods).

Let's see how it looks when we take the segments API and move it into some kind of "DPathBehavior" class, which is (by default) 2.0 behavior. Then let's see how easy that is to subclass to v1.0 and make the API accept a behavior implementation class, instead of a ton of flags.

Activity

  1. added and removed on Dec 30, 2019
  2. calebcase commented on Dec 30, 2019

    @calebcase
    Collaborator

    Moved to a possible solution for 3.x.

  3. akesterson commented on Jul 27, 2020

    @akesterson
    CollaboratorAuthor

    Blocked by #136

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions