Giter VIP home page Giter VIP logo

cghub's People

Contributors

alexanderad avatar dudarev avatar eh1k0 avatar gmt-git avatar ktqj avatar marilyna avatar mpopelo avatar nanvel avatar postatum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cghub's Issues

#60 Show latest BAMs on main page

From Mark:

Instead of the initial page with just the search box, just
enter the results page with the full list of BAMs sorted
newest to oldest

What to do:

On main page show results for a query

last_modified=[NOW-3MONTH TO NOW]

(no search_xml parameter). Sorted by latest to oldest. Paginated.

#81 Replace "Select all" links with checkboxes

From Mark:
in filters, "select all" and "deselect all" could be replaced with a global checkbox on the same line as the filter section label, as is done in the list of files. Or, at least putting them at the top of each section would make them easier to find before you start checking/unchecking boxes.

Artem's note:
Experiment and see where the checkboxes would look better.

#84 Add a link to table header that toggles column width

Do only after every ticket before #82 is closed!

A link at the bottom of each header in the form ">>>" or "Expand>", which makes table width fit the data. It becomes "<<<" or "Compress<" when expanded and allows to make the column narrow.

This is an alternative to dragging a line between columns.

#82 Cart text clean up

From Mark:

Cart:
drop "You can manage contents of your cart"
"Download XML" button should be "Download metadata"

#66 Hack validation of XML so that analysis_xml is parsed

From Makr:

SRA XSD problems are caused by what is suppose to be
the same schema as part of an international agreement between
the US, UK, and Japan, not being the same.
Please used the attached script to get the NCBI version.

#!/bin/bash

#ver=1-3
ver=1-4
fetchXsd() {
   local w=$1
   wget -nv http://www.ncbi.nlm.nih.gov/viewvc/v1/trunk/sra/doc/SRA_$ver/SRA.$w.xsd?view=co -O SRA.$w.xsd
}
fetchXsd analysis
fetchXsd common
fetchXsd experiment
fetchXsd run

Plan:

#61 Make filtering in sidebar multi-select

From Mark:

The filters should be multi-select.  With the filters in on
category being 'or-ed' and then between categories 'and-ed'.
For example:    (Baylor or Havard) and (DNA or WGA).

What to do:

Create checkboxes in sidebar. If several items are selected in one category
use them in query with OR. In WSI API documentation links to Solr syntax is given

http://wiki.apache.org/solr/SolrQuerySyntax

Try composing OR queries with it.

#80 Filter menus stay open when filtering

From Mark:
may be better for the filter sections to stay as is after pressing apply,
rather than collapsing. Could be irritating for a user to have to keep opening
these if they are refining a search.

Artem's note:
Open filter categories where selections were made.

#59 Introduce XMLSyntaxError exception handling

Mark gets an error occasionally:

XMLSyntaxError at /search/
None
Request Method: GET
Request URL:    https://stage.cghub.ucsc.edu/gui/search/?q=gbm
Django Version: 1.4
Exception Type: XMLSyntaxError
Exception Value:
None
...
 Local vars
/usr/local/lib/python2.7/site-packages/django/views/generic/base.py in view
            return self.dispatch(request, *args, **kwargs) ...
 Local vars
/usr/local/lib/python2.7/site-packages/django/views/generic/base.py in dispatch
        return handler(request, *args, **kwargs) ...
 Local vars
/usr/local/lib/python2.7/site-packages/django/views/generic/base.py in get
        context = self.get_context_data(**kwargs) ...
 Local vars
/cghub/home/cwilks/42cups/cghub/cghub/apps/core/views.py in get_context_data
            results = api_request(query=query, sort_by=sort_by, offset=offset, limit=limit) ...
 Local vars
/cghub/home/cwilks/42cups/cghub/cghub/cghub_api/api.py in request
        results = objectify.fromstring(open(cache_file_name, 'r').read()) ...
 Local vars
Request information

The problem seems to be in cghub_api/api.py. Introduce handling exception before:

results = objectify.fromstring(open(cache_file_name, 'r').read()) ...

The exception is XMLSyntaxError probably from lxml.

If this exception is raised download query from server, not use it from cache.

#63 Make use of cache optional

From Mark:

Use of a cache should be optional and be implementable
independent of specific caching technology (abstract API).  For instance,
we might want to do memcached in the future.

Introduce a variable in request function to use or not to use cache. Describe it in documentation. Update documentation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.