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
The DatasetResult.file_context function (see results.py) doesn't allow a facets keyword argument, but we might want to set the facets property of the FileSearchContext object that is returned (especially in order to avoid the default facets='*').
Currently we have to monkey-patch it:
fc = result.file_context()
fc.facets = 'project'
but it would be nice to be able to do:
fc = result.file_context(facets='project')
Should be a simple fix to just add the argument and pass it through.
The text was updated successfully, but these errors were encountered:
alaniwi
changed the title
add "facets" keyword argument to file_context()
add "facets" keyword argument to DatasetResult.file_context
Dec 2, 2021
The
DatasetResult.file_context
function (seeresults.py
) doesn't allow afacets
keyword argument, but we might want to set thefacets
property of theFileSearchContext
object that is returned (especially in order to avoid the defaultfacets='*'
).Currently we have to monkey-patch it:
but it would be nice to be able to do:
Should be a simple fix to just add the argument and pass it through.
The text was updated successfully, but these errors were encountered: