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

Fix broken interactions controller #629

Merged
merged 1 commit into from
May 1, 2024

Conversation

fosterfarrell9
Copy link
Collaborator

@fosterfarrell9 fosterfarrell9 commented Apr 27, 2024

When clicking the Export statistics button in the admin view (corresponding to the /interactions route), we got an error. In this PR we fix the broken interactions controller by adding the missing current_ability method.

@fosterfarrell9 fosterfarrell9 requested a review from Splines April 27, 2024 16:21
Copy link
Member

@Splines Splines left a comment

Choose a reason for hiding this comment

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

For posterity: current_ability docsstrings are available here. The change in this PR makes sense according to the CanCanCan docs.

I confirm that the /interactions route now works again in the frontend 🎉

Proposal: it'd be great to put PRs in context as much as possible. E.g. for this PR, I had to go back to basecamp to figure out which button in the frontend I should click to verify the code is working. This would be nice to have available in the PR description itself (I've edited it).

@Splines
Copy link
Member

Splines commented Apr 30, 2024

Use Squash and merge to merge into dev.

@fosterfarrell9 fosterfarrell9 merged commit f6d4720 into dev May 1, 2024
3 checks passed
@fosterfarrell9 fosterfarrell9 deleted the fix/interactions-controller branch May 1, 2024 08: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