They will be included with the response from GET /templates web service if includeBroken: true is included in the request params. However, there is no way to ascertain whether a template is broken other than by validating it against the model. If we want to show broken templates in BG, the WS should be updated to include a broken: true flag to the broken template objects.
Once this is done, we can change :assets/fetch-templates to include broken, and ensure everywhere templates are shown filters to the non-broken ones. Except for the manage templates admin panel, which should show the broken templates distinctly, to allow users to export and delete them, so they can reupload after manually fixing the query XML.
This is how it's shown in the JSP webapp mymine templates page:
To create a broken template on Biotestmine:
userprofile-biotestmine=> insert into savedtemplatequery (id, userprofileid, templatequery) VALUES(68000010, 1000001, '<template name="TestBroken" title="Gene --> Proteins." comment="test"><query name="TestBroken" model="genomic" view="Gene.primaryIdentifier Gene.test Gene.proteins.primaryIdentifier Gene.proteins.primaryAccession" longDescription="Show the proteins for a particular gene." sortOrder="Gene.primaryIdentifier asc"><pathDescription pathString="Gene.proteins" description="Protein"/><constraint path="Gene" editable="true" description="test the constraint description" op="LOOKUP" value="ABRA"/></query></template>');
They will be included with the response from
GET /templates
web service ifincludeBroken: true
is included in the request params. However, there is no way to ascertain whether a template is broken other than by validating it against the model. If we want to show broken templates in BG, the WS should be updated to include abroken: true
flag to the broken template objects.Once this is done, we can change
:assets/fetch-templates
to include broken, and ensure everywhere templates are shown filters to the non-broken ones. Except for the manage templates admin panel, which should show the broken templates distinctly, to allow users to export and delete them, so they can reupload after manually fixing the query XML.This is how it's shown in the JSP webapp mymine templates page:
To create a broken template on Biotestmine: