New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix topic search #892
Fix topic search #892
Conversation
self.assertEqual(len(result), 0) | ||
|
||
def test_empty_search_with_match(self): | ||
'''Should only return no data with at least one tag''' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should only return data matching topic's tag
? Otherwise I don't get the logic?
excluded = VisibleDatasetFactory.create_batch(2, tags=[ | ||
'out', 'filtered' | ||
]) | ||
topic = TopicFactory(tags=['in', 'no-match']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the no-match
required if not tested?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
with self.autoindex(): | ||
included = VisibleDatasetFactory.create_batch(2, tags=['in']) | ||
excluded = VisibleDatasetFactory.create_batch(2, tags=['out']) | ||
topic = TopicFactory(tags=['in', 'no-match']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, is no-match
useful?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, ensures at least
is the condition, not all
This PR ensures dataset or reuse without the required tags are never included in topic search