Opened 13 years ago

Last modified 13 years ago

#150 closed defect (FIXED)

Set deprecated indexing back to keeping index information

Reported by: Christopher Allan Webber Owned by: Christopher Allan Webber
Priority: critical Milestone: 0.0.4
Component: programming Keywords:
Cc: Parent Tickets:

Description

When you create an index in indexes.py it's like:

::

    USER_INDEXES = {
        'username_unique': {
            # Index usernames, and make sure they're unique.
            # ... I guess we might need to adjust this once we're federated :)
            'index': 'username',
            'unique': True},
        'created': {
            # All most recently created users
            'index': 'created'}}

However when you remove it, we just keep track on the key/name
there (like 'username\_unique' and drop the rest of the info
because it isn't immediately needed.

::

    DEPRECATED_USER_INDEXES = ['created']

... that's a shame because then we might forget what the original
index was, and all that useful information. Even though that's not
needed, we should keep it around.

I originally wrote the code to be like that, then I changed it.
Time to change it back!



Change History (2)

comment:1 by Christopher Allan Webber, 13 years ago

Status: NewClosed
Pushed and closed.



comment:2 by Will Kahn-Greene, 13 years ago

The original url for this bug was http://bugs.foocorp.net/issues/440 .

Note: See TracTickets for help on using tickets.