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

Let '.count' work when tagged_with is accompanied by a group clause #417

Merged
merged 1 commit into from
Jan 27, 2014

Conversation

rgould
Copy link
Contributor

@rgould rgould commented Oct 5, 2013

Give group a default of [], which will later evaluate into a no-op by Rails. Previously this would be nil, which Rails translates to " AS " in SQL, generating an invalid statement.

@bf4
Copy link
Collaborator

bf4 commented Dec 10, 2013

Can you rebase against master and force push?

@rgould
Copy link
Contributor Author

rgould commented Jan 23, 2014

@bf4 Just saw this now. I have rebase and forced-push the branch again.

@bf4
Copy link
Collaborator

bf4 commented Jan 23, 2014

Thanks, will review. Can you update your spec to the expect syntax?

@rgould
Copy link
Contributor Author

rgould commented Jan 25, 2014

@bf4 done!

@ryanwood
Copy link

Just got bit by this one. Would love to see the fix merged into master. Thanks.

@seuros
Copy link
Collaborator

seuros commented Jan 27, 2014

@rgould Can you add your change to changelog.md and force push ? I will merge it once you do that.

@rgould
Copy link
Contributor Author

rgould commented Jan 27, 2014

@seuros Done! Thanks!

@seuros
Copy link
Collaborator

seuros commented Jan 27, 2014

@rgould could you rebase ? the Actual change-log is different than yours. Thanks

@rgould
Copy link
Contributor Author

rgould commented Jan 27, 2014

@seuros Derp, sorry about that. I've rebased and force-pushed.

seuros added a commit that referenced this pull request Jan 27, 2014
Fix: Let '.count' work when tagged_with is accompanied by a group clause
@seuros seuros merged commit aab6927 into mbleigh:master Jan 27, 2014
rgarner added a commit to alphagov/transition that referenced this pull request May 2, 2014
* This fixes the issue where the Mapping.with_traffic_summary scope
  would not chain with Mapping.tagged_with, generating invalid SQL when
  a `count` was required (falling over on `any?` and the like)
* While we initially patched AATO ourselves, it turns out a fix was
  already merged for AATO 3.1.0
  (mbleigh/acts-as-taggable-on#417)
* 3.1.1 also had a tag counting performance improvement, which in
  truth doesn't do much for us but requires a migration
rgarner added a commit to alphagov/transition that referenced this pull request May 2, 2014
* This fixes the issue where the Mapping.with_traffic_summary scope
  would not chain with Mapping.tagged_with, generating invalid SQL when
  a `count` was required (falling over on `any?` and the like)
* While we initially patched AATO ourselves, it turns out a fix was
  already merged for AATO 3.1.0
  (mbleigh/acts-as-taggable-on#417)
* 3.1.1 also had a tag counting performance improvement, which in
  truth doesn't do much for us but requires a migration
rgarner added a commit to alphagov/transition that referenced this pull request May 6, 2014
* This fixes the issue where the Mapping.with_traffic_summary scope
  would not chain with Mapping.tagged_with, generating invalid SQL when
  a `count` was required (falling over on `any?` and the like)
* While we initially patched AATO ourselves, it turns out a fix was
  already merged for AATO 3.1.0
  (mbleigh/acts-as-taggable-on#417)
* 3.1.1 also had a tag counting performance improvement, which in
  truth doesn't do much for us but requires a migration
rgarner added a commit to alphagov/transition that referenced this pull request May 6, 2014
* This fixes the issue where the Mapping.with_traffic_summary scope
  would not chain with Mapping.tagged_with, generating invalid SQL when
  a `count` was required (falling over on `any?` and the like)
* While we initially patched AATO ourselves, it turns out a fix was
  already merged for AATO 3.1.0
  (mbleigh/acts-as-taggable-on#417)
* 3.1.1 also had a tag counting performance improvement, which in
  truth doesn't do much for us but requires a migration
tekniklr pushed a commit to tekniklr/acts-as-taggable-on that referenced this pull request Mar 19, 2021
Fix: Let '.count' work when tagged_with is accompanied by a group clause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants