-
Notifications
You must be signed in to change notification settings - Fork 80
Cart analysis changes #1038
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
Cart analysis changes #1038
Conversation
…nalysis-changes
…nalysis-changes
Changes Unknown when pulling ba42c6a on squirrelo:cart-analysis-changes into * on biocore:cart-branch*. |
changed to new branch and ready for review |
ping @biocore/qiita-dev this needs review before I move forward on anything else. |
JOIN qiita.reference USING (reference_id) | ||
WHERE processed_params_id = {1} | ||
""".format(static_info['processed_params_table'], | ||
static_info['processed_params_id']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can these 2 sql be a single left (or right) join?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, since it is dynamic table info so we need the table name and row from the first to do the second query.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I think your method is way simpler even if it requires 2 queries.
👍 |
This pull request creates the carts for each user and the cart viewing page. Major pieces are:
Analysis.get_user_default(User)
function added to get the default analysis for a userprocessed_data.processing_info
added to get processing information needed for cart display.This is the final piece needed before tying everything together from the last few pull requests into a single unified sample selection system.
This is also the first test of the separate branch for large changes system. This will be working on biocore/cart-branch and then merged in when finished.