Add support for Process
classes to QueryBuilder.append
#2400
Labels
priority/critical-blocking
must be resolved before next release
topic/orm
topic/query-builder
type/accepted feature
approved feature request
Milestone
If I have the
CalcJob
classPwCalculation
, which has entry pointaiida.calculations:quantumespresso.pw
, callingQueryBuilder.append(PwCalculation).all()
should tell the query builder to return all nodes that have a type stringnode.process.calculation.calcjob.CalcJobNode.
and aprocess_type
stringaiida.calculations:quantumespresso.pw
. This is essentially anAND
statement of these two values. Note that sinceappend
supports adding tuples of classes, e.g.QueryBuilder.append((PwCalculation, ArithmeticAddCalculation))
, this should be unwrapped into two sub filters that areOR
'ed, i.e. in pseudo SQLtechnically since the
process_type
should also support querying for sub classes, the filter on process type should be anOR
ofprocess_type = 'aiida.calculations:quantumespresso.pw'
andprocess_type like 'aiida.calculations:quantumespresso.pw.'
The text was updated successfully, but these errors were encountered: