Skip to content

Redis#69

Open
sloria wants to merge 20 commits into
cos-archives:developfrom
sloria:redis
Open

Redis#69
sloria wants to merge 20 commits into
cos-archives:developfrom
sloria:redis

Conversation

@sloria

@sloria sloria commented Dec 12, 2013

Copy link
Copy Markdown
Contributor

Implements RedisStorage

Only supports inserting and querying
On branch redis
Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

	modified:   dev-requirements.txt
	modified:   modularodm/storage/__init__.py
	modified:   modularodm/storage/mongostorage.py
	modified:   modularodm/storage/picklestorage.py
	new file:   modularodm/storage/redisstorage.py
	modified:   tests/base.py
	new file:   tests/storage/__init__.py
	new file:   tests/storage/test_redisstorage.py
On branch redis
Changes to be committed:
  (use "git reset HEAD^1 <file>..." to unstage)

	modified:   modularodm/storage/picklestorage.py
	modified:   modularodm/storage/redisstorage.py
	modified:   tests/storage/test_redisstorage.py
Conflicts:
	modularodm/storage/base.py
On branch redis
Your branch is up-to-date with 'origin/redis'.

Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

	modified:   modularodm/storage/redisstorage.py
	modified:   tests/storage/test_redisstorage.py
On branch redis
Your branch is ahead of 'origin/redis' by 1 commit.
  (use "git push" to publish your local commits)

Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

	modified:   modularodm/storage/redisstorage.py
Wrongly assumed concrete implementations have a store attribute
@sloria

sloria commented Dec 12, 2013

Copy link
Copy Markdown
Contributor Author

Note: There are exactly 34 tests that are expected to fail. These have to do with how backends handle offsets and limits, which is TBD.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could some of these tests move into the backend-agnostic suites?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah. A lot of these tests are redundant; I'm sure similar ones were already written. I only wrote them for my own purposes to run while developing the Redis backend. But I'll move the non-redis-specific tests to the multiple-backend tests.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

b5286db makes these changes.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants