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

Views with join on variable values #3437

Open
ymarcon opened this issue Feb 13, 2019 · 1 comment
Open

Views with join on variable values #3437

ymarcon opened this issue Feb 13, 2019 · 1 comment
Labels
new feature pinned Stale bot ignored
Milestone

Comments

@ymarcon
Copy link
Member

ymarcon commented Feb 13, 2019

At the moment a view needs to be created for each entity type, the views exported and then combined afterwards. It would be very useful to have the ability to export views containing data of multiple entity types. This would require one of the tables in the view to have a Referenced Entity Type variable that creates the join between the two entities.

(from @sam-story, "Views with multiple entity types" and "Collapsing view data")

@ymarcon ymarcon added this to the 2.14.0 milestone Feb 13, 2019
@ymarcon
Copy link
Member Author

ymarcon commented Feb 13, 2019

This would be like atomating and optimizing the use of the $join method. When creating a view, a table from another entity type could be added only if there is a variable with the corresponding "referenced entity type" which values would make the join. The selection of the ref variable must be explicit and if there is more than one ref variable for the given entity type, the one to be used must be selected by the view creator.

Then a derivation script such as:

$join('ds.table:var', 'refVar')

would be simplified to (after the join of "ds.table" on "refVar" has been declared):

$('var')

Note that the referred entity type is not necessarily different from the view's entity type. This is for the case where all entities are Participant type but we are interested in there relationship (mother, father, children, sibling, etc.).

@ymarcon ymarcon changed the title Views with multiple entity types Views with join on variable values Feb 13, 2019
@ymarcon ymarcon added the pinned Stale bot ignored label Feb 13, 2019
@ymarcon ymarcon modified the milestones: 2.14.0, 2.15.0 Jul 2, 2019
@ymarcon ymarcon modified the milestones: 2.15.0, 2.16.0 Aug 16, 2019
@ymarcon ymarcon modified the milestones: 2.16.0, 2.17.0 May 11, 2020
@ymarcon ymarcon modified the milestones: 3.0.0, 3.1.0 Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature pinned Stale bot ignored
Projects
None yet
Development

No branches or pull requests

1 participant