Skip to content

Fetching remote band data can fail due to CDN rewriting query string #99

@eweitz

Description

@eweitz

Fetching remote band data fails in Ideogram.js 1.1.0 using the default CDN, unpkg.com, because the CDN strips query string parameters. This bug does not manifest locally or in unit tests, but breaks the examples hosted externally on GitHub Pages.

The cause was an updated approach of getting cytogenetic band data in version 1.1.0. That version used query string parameters to associate a taxid (NCBI Taxonomy ID) between a request object and its corresponding response. The association had previously been made by adding a simple property to the d3 request object. That was no longer possible when Ideogram shifted from using the deprecated d3 request module to the standard fetch API, making query strings an appealing (but evidently brittle) solution.

This bug warrants a patch release, v1.1.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions