[proxy] storage: storage fields overspecified
Bug #1230390 reported by
Allele Dev
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zaqar |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In the marconi/
Schema fields overspecified - use {'_id': 0} instead. Example of current state:
```python
fields = {'p': 1, 'q': 1, 'n': 1, 'h': 1, 'm': 1, '_id': 0}
```
description: | updated |
Changed in marconi: | |
milestone: | none → icehouse-1 |
status: | Fix Committed → Fix Released |
Changed in marconi: | |
milestone: | icehouse-1 → 2014.1 |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/50305 github. com/openstack/ marconi/ commit/ cb408d8d01757ab 8929fb007db41c1 f76d2cbe47
Committed: http://
Submitter: Jenkins
Branch: master
commit cb408d8d01757ab 8929fb007db41c1 f76d2cbe47
Author: Alejandro Cabrera <email address hidden>
Date: Tue Oct 8 07:58:12 2013 -0400
fix: proxy mongodb storage fields overspecified
It's unnecessary to specify all the fields that should be returned by
a mongodb query, because by default, it will return all the
fields. This patch makes it so that only the '_id' field is mentioned
specifically, and that's because we don't want it leaking into the
transport layer.
Change-Id: Ib59e551b0c85f2 972de86baeaa2c7 e65738a9a47
Closes-Bug: 1230390