-
Couldn't load subscription status.
- Fork 79
Base for new study page #1571
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
Base for new study page #1571
Conversation
qiita_db/study.py
Outdated
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.
If optional and not present this is going to fail.
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.
The wording is bad, but I think it's supposed to mean it could be part of the main info, but we thought no. I'll reword, since really it's removed because it's redundant to the study id already stored in the object.
|
Some comments but good start. I guess the idea is to merge this once comments are addressed + other reviewer and start building from there, right? |
|
Exactly. This framework allows the rest of things to be done in parallel. The only thing that may get merge conflicts is adding the ajax functions to the top of the main study html page. |
|
👍 |
|
Tests are expected to fail since the study description page has been removed and replaced by this skeleton, which is missing most of the functionality at this moment. |
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.
This is missing a space between the description and the Returns header.
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.
Done
a153137 to
f251b7b
Compare
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.
Seems like this could return None, should this be checking and instead returning an empty list? Otherwise it would probably be worth updating the docstring. My preference would be to return an empty list, not sure what others think about that.
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.
This will return an empty list if nothing is in the SQL.
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.
Got it, then I'm confused what you are checking for in line 89 of api_proxy.py, maybe that's unnecessary then?
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.
ah, yes that's a redundant check.
qiita_pet/templates/study_base.html
Outdated
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.
Only owners of the study should see "all" the information, right, this should be filtered for things the user can see, which are presumably only "public" artifacts right?
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.
I'm leveraging the API on this one, since this design keeps with the current assumption that the API call object only returns what information is viewable by the user.
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, got it, that makes perfect sense, we should really keep an eye
opened for this as otherwise it will lead to a rather strange-looking
UI.
On (Dec-14-15|12:50), Joshua Shorenstein wrote:
Data Types
<div class="panel panel-default">{% for dt in prep_info %}{% set cleaned_dt = dt.replace(' ', '_') %}<div class="panel-heading" role="tab" id="heading{{cleaned_dt}}"><h4 class="panel-title"><a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapse{{cleaned_dt}}" aria-expanded="true" aria-controls="collapse{{cleaned_dt}}">{{dt}}</a></h4></div>{% end %}{% for prep in prep_info[dt] %}I'm leveraging the API on this one, since this design keeps with the current assumption that the API call object only returns what information is viewable by the user.
Reply to this email directly or view it on GitHub:
https://github.com/biocore/qiita/pull/1571/files#r47555626
|
Comments addressed |
|
Thanks @squirrelo |
This adds in the base HTML and index handler for the study pages, and a single example of the AJAX-call-based updates done on the page. The idea is that we load the minimal information to show the first page, and then lazy load each bit of information needed as it is called for, so we save a lot of time and database calls that would be duplicated if we just reloaded the page for every link click. It also means we no longer need to load all information for all files when the page is accessed.