bugmark / exchange

Bugmark Exchange - Software Issue Marketplace
https://bugmark.github.io/website
Other
13 stars 9 forks source link

Add table names to ActiveRecord scopes to make available after joins #71

Open GeorgLink opened 6 years ago

GeorgLink commented 6 years ago

Run:

Offer.joins(issue: :repo).where(repos: {uuid: proj_uuid}).unassigned

Expected behavior: only show unassigned issues in specified repository.

Actual behavior: error message that column uuid is ambiguous.

Solution: add the table name offers to the scope that defines .unassigned

Note: This issue might exist in other scopes as well.