Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to discover/create indexes from child classes via parent. #27

Open
amcgregor opened this issue Jan 31, 2017 · 0 comments
Open
Labels
2.enhancement New ideas or improvements. area:index Issues relating to index declaration or construction. org:help-wanted These issues may make for good entry points into working on the codebase.
Milestone

Comments

@amcgregor
Copy link
Member

Given the following test case:

from marrow.mongo import Document, Index
from marrow.mongo.field import String

class Base(Document):
    foo = String()
    _foo = Index('foo')

class Sub(Base):
    bar = String()
    _bar = Index('bar')

Indexes provided by this class and all subclasses should be made available as an attribute, and calls to create_collection or create_indexes should accept an additional argument (defaulting to True) to create subclass indexes in addition to the primary class indexes.

@amcgregor amcgregor added 2.enhancement New ideas or improvements. org:help-wanted These issues may make for good entry points into working on the codebase. labels Jan 31, 2017
@amcgregor amcgregor added this to the 1.1.1 Release milestone Jan 31, 2017
@amcgregor amcgregor added the area:index Issues relating to index declaration or construction. label May 19, 2017
@amcgregor amcgregor modified the milestones: 1.2.0 Release, 1.1.2 Release Sep 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.enhancement New ideas or improvements. area:index Issues relating to index declaration or construction. org:help-wanted These issues may make for good entry points into working on the codebase.
Projects
None yet
Development

No branches or pull requests

1 participant