Chunlei Wu

Results 98 issues of Chunlei Wu

See this warning from Google Analytics: Relevant code here: https://github.com/biothings/biothings.api/blob/bba25acb07180abde91aebf043aad465098621ff/biothings/web/analytics/channels.py#L51-L55 Since we now send hits in batch with async, we should make sure event and pageview hits send together if...

bug

Current default `cache` setting (7 days) is defined in `BaseAPIHandler`: https://github.com/biothings/biothings.api/blob/7131379975e8f8aafafa5858ea274dc8181bc863/biothings/web/handlers/base.py#L67 To make it more flexible to customize, we can allow * set a global caching time in `config.py` to...

enhancement

* update `biothings.web` auto-generated API document * create a tutorial for `biothings.web` module

enhancement

When the order of the hits and _score values do not matter, the filtered query can be preferred. There are several ways to make such queries: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-bool-query.html#score-bool-filter We can potentially...

enhancement

Relevant existing docs: * MyGene.info: https://docs.mygene.info/en/latest/doc/query_service.html#query-syntax * ES query string syntax: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#query-string-syntax We would like to create a generic API query syntax page at the BioThings SDK document (https://docs.biothings.io), so...

If a command (e.g. merge, dump, etc) executes from the hub shell. Its output goes to the logging file, not the console output. Ideally, it should go to both the...

enhancement

both `BaseSourceUploader` and `DataBuilder` have a `keep_archive` property (default is `10`) for the number of old data builds to keep: https://github.com/biothings/biothings.api/blob/621887f04aae13c3a775aea9aa7daacb92ae7ef0/biothings/hub/dataload/uploader.py#L105 https://github.com/biothings/biothings.api/blob/8e0416b95661b8539d66d4978e859aef005b7ae5/biothings/hub/databuild/builder.py#L59 We should expose them as two separate config...

enhancement

Similar to `BioThingsTestCase` class, but only used for each data plugin to provide certain tests against the latest MongoDB collection after the "upload" step.

enhancement

The hub creates timestamps (e.g. various `started_at` values) with proper timezone info, when it writes to MongoDB, it's stored as `ISODate` which is in UTC. Hub API currently returns these...

Upon the completion of these scheduled autobuild, autopublish and autorelease jobs, we should send slack notifications (similar to those data src dump and upload jobs). I don't see such notifications...

enhancement