hubmapconsortium / search-api

HuBMAP search service and associated pieces to create an index
https://search.api.hubmapconsortium.org
MIT License
2 stars 2 forks source link

Label issue - "No translation" #563

Open bhonick opened 2 years ago

bhonick commented 2 years ago

Originally created by @JAH386:

The following label problem is present on the Portal.

The following datesets shows up as “no translation” on the Portal.

"2 DESI IMS in new - no change (6/27) - NO TRANSLATION label [Joel]"

mccalluc commented 2 years ago

There are two of these unmapped assay types that can be seen when you log in:

This error string is generated by translate.py in search-api:

def _data_types_map(ks):
    assert len(ks) == 1 or (len(ks) == 2 and ('image_pyramid' in ks or 'Image Pyramid' in ks)), \
        f"Maximum 2 types, and one should be image pyramid: {ks}"
    single_key = ks[0] if len(ks) == 1 else ks
    try:
        r = AssayType(single_key).description
    except RuntimeError:
        r = _unexpected(single_key) # <-- From here!
    return [r]

The list of assays used by AssayType comes from assay_types.yaml If entries are added there for these two, and the data is reindexed, the error will go away.

Responsibilities have shifted over time, but my sense is that the process should run something like this:

As far as who needs to be involved:

If this issue is useful to track the problem, feel from to keep it open, but no changes need to be made in the portal-ui code.