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

Bug on Tag count #521

Open
Nuxor3000 opened this issue Oct 8, 2021 · 3 comments
Open

Bug on Tag count #521

Nuxor3000 opened this issue Oct 8, 2021 · 3 comments

Comments

@Nuxor3000
Copy link
Contributor

If a tag has the same name in 2 applications, the counter of conversations tagged with that tag show the number of all the conversations tagged within the 2 apps and not only from the current one.

@michelson
Copy link
Member

Uhm... good catch @Nuxor3000, maybe we could consider to use the tenant option of acts as taggable https://github.com/mbleigh/acts-as-taggable-on#tag-tenancy

@Nuxor3000
Copy link
Contributor Author

Hi, I'm gonna try it, I will let you know.

@michelson
Copy link
Member

also we could see the way to build a query as follows:

app -> conversations -> joins (taggins) -> joins (tag) -> group_by(tag) -> select(tag, distinct(tagging.tag_id))

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

No branches or pull requests

2 participants