Skip to content

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

Merged
merged 24 commits into from
Apr 7, 2015

Conversation

squirrelo
Copy link
Contributor

This pull request creates the carts for each user and the cart viewing page. Major pieces are:

  • Default user analyses added to act as carts
  • Analysis.get_user_default(User) function added to get the default analysis for a user
  • processed_data.processing_info added to get processing information needed for cart display.
  • Cart viewing page added at http://localhost:21174/analysis/selected/ Logging in as test@foo.bar using the test database will prepopulate it with a few samples selected so you can view the page. Currently the page can only be accessed through direct URL.

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.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling ba42c6a on squirrelo:cart-analysis-changes into * on biocore:cart-branch*.

@squirrelo
Copy link
Contributor Author

changed to new branch and ready for review

@squirrelo
Copy link
Contributor Author

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'])
Copy link
Member

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?

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, since it is dynamic table info so we need the table name and row from the first to do the second query.

Copy link
Member

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.

@josenavas
Copy link
Contributor

👍

antgonza added a commit that referenced this pull request Apr 7, 2015
@antgonza antgonza merged commit 79b1101 into qiita-spots:cart-branch Apr 7, 2015
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.

4 participants