psu-libraries / researcher-metadata

Penn State University's faculty and research metadata repository
https://metadata.libraries.psu.edu/
MIT License
7 stars 0 forks source link

Hotfix: `distinct` AI File scopes #867

Closed ajkiessl closed 1 year ago

ajkiessl commented 1 year ago

It appears the double left_outer_joins cause duplicates in the ActivityInsightOAFile scopes. I added distincts to the end of the scopes to get rid of the duplicates. I also added some oa locations to some of the test fixtures to test that the duplicates are removed by the distinct.

I'm not sure if there's another way to fix this. Changing one, or both, of the outer joins to regular joins doesn't fix it.