clarity-h2020 / docker-drupal

Drupal 8 Project for implememting the CLARTIY CSIS Platform.
https://csis.myclimateservice.eu
GNU Lesser General Public License v3.0
3 stars 0 forks source link

Twins tab: No view results for unused relationships #123

Closed patrickkaleta closed 4 years ago

patrickkaleta commented 4 years ago

I stumbled upon a weird bug. Non-admin users weren't able to see the "Available twins for study" table on the Twins tab (e.g. this one). The map and the "included in study" table are being displayed as expected. For admins this problem does not occur and there are also no error messages in the log files or browser console.

At first I thought this might be an permission problem in the attachment view, that is responsible for the problematic table. But in the end i found out that it was caused by a relationsship, that was set inside the view, although it wasn't actually used in any of the fields or filters. error-unused-relationship

After I removed this relationship, non-admin users were able to see the "Available twins for study" table as expected. So, this bug is now fixed, however I would still like to highlight this problem in general, since it could also occur in other places. I have no idea why this unused relationsship is even causing such problems. @fgeyer16 and @DenoBeno do you have any clue what might be going on here?

patrickkaleta commented 4 years ago

Not relevant anymore. Such bugs never occured in any other places.