Skip to content

fix: aggregates to_tenant support#2487

Merged
zachdaniel merged 1 commit intoash-project:mainfrom
tmpbeing:main
Jan 20, 2026
Merged

fix: aggregates to_tenant support#2487
zachdaniel merged 1 commit intoash-project:mainfrom
tmpbeing:main

Conversation

@tmpbeing
Copy link
Contributor

@tmpbeing tmpbeing commented Dec 24, 2025

In my project I was trying to do an Ash.count!() with a struct as tenant argument and it would fail with an error telling me the tenant struct doesn't implement Strings.Chars protocol, the issue being that to_tenant wasn't passed correctly, this fixes that.
I took the liberty to remove that tenant variable in the reduce_while as it seems it's always query.tenant and I couldn't understand why it exists.

Contributor checklist

Leave anything that you believe does not apply unchecked.

  • I accept the AI Policy, or AI was not used in the creation of this PR.
  • Bug fixes include regression tests
  • Chores
  • Documentation changes
  • Features include unit/acceptance tests
  • Refactoring
  • Update dependencies

@tmpbeing
Copy link
Contributor Author

tmpbeing commented Jan 20, 2026

@zachdaniel anything I can do to move this forward ? (sorry for the ping but I feel like this slipped through because I had the bad idea to push on christmas eve 😄 )

@zachdaniel zachdaniel merged commit accf3be into ash-project:main Jan 20, 2026
45 checks passed
@zachdaniel
Copy link
Contributor

🚀 Thank you for your contribution! 🚀

(sorry, lost track of this somehow)

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