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

some stock optimizations #6838

Merged
merged 2 commits into from Jun 1, 2015
Merged

some stock optimizations #6838

merged 2 commits into from Jun 1, 2015

Conversation

snopoke
Copy link
Contributor

@snopoke snopoke commented May 26, 2015

@snopoke snopoke added the reindex/migration Reindex or migration will be required during or before deploy label May 26, 2015
@@ -39,7 +39,7 @@ pytz==2014.10
PyYAML==3.10
raven==3.1.17
requests==2.0.0
south==0.7.3
south==1.0.2
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tested this on staging and was able to deploy without any issues. Also reviewed the change log and didn't see anything that should break (so did @emord: https://github.com/dimagi/commcare-hq/pull/6794/files#r30916913)

@czue
Copy link
Member

czue commented May 28, 2015

👍 from me once tests pass (didn't review super closely though)

@snopoke
Copy link
Contributor Author

snopoke commented Jun 1, 2015

Updated to remove the new index (will make a separate PR). This should be gtg.

@snopoke snopoke removed the reindex/migration Reindex or migration will be required during or before deploy label Jun 1, 2015

ret = {}
for case_id, section_id, product_id in results:
sections = ret.setdefault(section_id, {})
Copy link
Member

Choose a reason for hiding this comment

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

just for my own education, any reason to use this over defaultdict?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No reason in this case.

@czue
Copy link
Member

czue commented Jun 1, 2015

good to merge once tests pass

@czue
Copy link
Member

czue commented Jun 1, 2015

kicked build

czue added a commit that referenced this pull request Jun 1, 2015
@czue czue merged commit 8f2bb5d into master Jun 1, 2015
@czue czue deleted the optimize-stock branch June 1, 2015 16:39
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.

None yet

3 participants