You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this eventually will solve itself when we'll have a validation, currently if there is not value pass for a constraint or if that value is not available locally we behave in same way.
This means that if I pass a misspelled model name for example I will get as a result all the model available matching the other constraints, rather then a warning my model doesn't exist.
I think this is the source of the issue:
for key, value in six.iteritems(dataset_constraints):
if len(value) > 0:
filters.append(getattr(C6Dataset,key).ilike(any_([x for x in value])))
# If this key was filtered get a list of the matching values, used
# in the ESGF query
terms[key] = [x[0] for x in (s.query(getattr(C6Dataset,key))
.distinct()
.filter(getattr(C6Dataset,key).ilike(any_([x for x in value]))))]
I suppose this worked fine when we were running local and missing separately. It must have been something to do with changing the workflow
The text was updated successfully, but these errors were encountered:
I think this eventually will solve itself when we'll have a validation, currently if there is not value pass for a constraint or if that value is not available locally we behave in same way.
This means that if I pass a misspelled model name for example I will get as a result all the model available matching the other constraints, rather then a warning my model doesn't exist.
I think this is the source of the issue:
for key, value in six.iteritems(dataset_constraints):
if len(value) > 0:
filters.append(getattr(C6Dataset,key).ilike(any_([x for x in value])))
I suppose this worked fine when we were running local and missing separately. It must have been something to do with changing the workflow
The text was updated successfully, but these errors were encountered: