Skip to content
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

Set related to true when filtering #44

Merged
merged 1 commit into from
Aug 5, 2021
Merged

Set related to true when filtering #44

merged 1 commit into from
Aug 5, 2021

Conversation

kelvinqian00
Copy link
Contributor

Before, when filtering on non-Actor agents or non-Object activities, the query would fail to retrieve statements correctly because related_agents and related_activities, respectively, were not set to true.

In this mini-PR, we set those two params to true automatically, even for Actor agents and Object activities. Partly because I'm not sure how to predicate on the agent/activity usage, but also because there may be cases where, for instance, an Object activity is also used as a Context activity in another statement. Thus, automatically setting related to true allows for maximum flexibility.

@kelvinqian00 kelvinqian00 requested a review from milt August 5, 2021 15:54
Copy link
Member

@milt milt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the reasoning is sound here.

@milt milt merged commit 4100ad4 into LRS-34 Aug 5, 2021
@milt milt deleted the LRS-34-related branch August 5, 2021 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants