Investigate industry filters
There is a strange behavior that makes the tests to pass but something seems wrong to me.
The ICAT query produced is:
http://localhost:8080/icat/entityManager?sessionId={sessionId}&query=select investigation from Investigation investigation JOIN investigation.investigationInstruments investigationInstruments JOIN investigationInstruments.instrument instrument JOIN investigation.investigationUsers as investigationUserPivot JOIN investigationUserPivot.user as investigationUser WHERE (LOWER(investigation.title) LIKE '%title%' OR LOWER(investigation.summary) LIKE '%title%' OR LOWER(investigation.doi) LIKE '%title%' OR LOWER(investigation.name) LIKE '%title%' OR LOWER(instrument.name) LIKE '%title%' )AND investigationUser.name = 'undefined' order by investigation.startDate DESC include investigation.type type, investigation.investigationInstruments investigationInstruments, investigationInstruments.instrument instrument, investigation.parameters p, p.type LIMIT 0, 1000000
Note that:
investigationUser.name = 'undefined'
How to reproduce:
npm run test:compose -- --grep "Investigation user gets all industry investigations"
Edited by Alejandro De Maria Antolinos