{
"total": 2,
"max_score": null,
"hits": [
{
"matched_queries": null,
"_id": "05330864-eaf8-11e9-8c7d-90e2ba675364",
"_explanation": null,
"_routing": "",
"highlight": null,
"fields": {
"permission": [
"read"
]
},
"_type": "file",
"_parent": "",
"_score": null,
"_index": "data-1-2017.03.13",
"inner_hits": null,
"_version": null,
"_source": {
"userPermissions": [
{
"user": "aloraine#iplant",
"permission": "own"
},
{
"user": "anonymous#iplant",
"permission": "read"
},
{
"user": "kraveend91#iplant",
"permission": "write"
},
{
"user": "nfreese#iplant",
"permission": "own"
},
{
"user": "nowlanf#iplant",
"permission": "read"
},
{
"user": "public#iplant",
"permission": "read"
},
{
"user": "rodsadmin#iplant",
"permission": "own"
}
],
"path": "/iplant/home/shared/BioViz/rnaseq/A_thaliana_Jun_2009/SRP220157/reads/SRR10060893.bam",
"fileSize": 1730631085,
"creator": "nfreese#iplant",
"fileType": "generic",
"dateModified": 1570665474000,
"label": "SRR10060893.bam",
"id": "05330864-eaf8-11e9-8c7d-90e2ba675364",
"dateCreated": 1570665474000,
"metadata": [
{
"value": "bam",
"unit": "ipc-info-typer",
"attribute": "ipc-filetype"
}
]
},
"_uid": "",
"sort": [
1570665474000
]
},
{
"matched_queries": null,
"_id": "323ab5d4-eae2-11e9-8c7b-90e2ba675364",
"_explanation": null,
"_routing": "",
"highlight": null,
"fields": {
"permission": [
"read"
]
},
"_type": "file",
"_parent": "",
"_score": null,
"_index": "data-1-2017.03.13",
"inner_hits": null,
"_version": null,
"_source": {
"userPermissions": [
{
"user": "aloraine#iplant",
"permission": "own"
},
{
"user": "anonymous#iplant",
"permission": "read"
},
{
"user": "kraveend91#iplant",
"permission": "write"
},
{
"user": "nfreese#iplant",
"permission": "own"
},
{
"user": "nowlanf#iplant",
"permission": "read"
},
{
"user": "public#iplant",
"permission": "read"
},
{
"user": "rodsadmin#iplant",
"permission": "own"
}
],
"path": "/iplant/home/shared/BioViz/rnaseq/A_thaliana_Jun_2009/SRP220157/reads/SRR10060893.bam.bai",
"fileSize": 243280,
"creator": "nfreese#iplant",
"fileType": "generic",
"dateModified": 1570659282000,
"label": "SRR10060893.bam.bai",
"id": "323ab5d4-eae2-11e9-8c7b-90e2ba675364",
"dateCreated": 1570659282000,
"metadata": [
{
"value": "unknown",
"unit": "ipc-info-typer",
"attribute": "ipc-filetype"
}
]
},
"_uid": "",
"sort": [
1570659282000
]
}
]
}
For "View in IGB" button to be added against a file, early in development we used "validateFileExtension" function to check the file extensions in file names. Later, we changed it to use the "isViewable" attribute of a file to check if the file is viewable in IGB and it worked for the most part. However, when the search function is used "isViewable" attribute is set as false for all files. I am not sure if this is new development in the Cyverse API response for files and folders but it seems like it.
To work around this issue, for search function alone, the "validateFileExtension" function from
IGBF-1621was revived which requires rigorous testing as I am not sure why its use was discontinued.