Vote #75229
完了Count users with a single query on group list
0%
journals
Here is the patch
--------------------------------------------------------------------------------
This patch didn't work for me, as the hash keys are strings (tested with postgresql):
<pre>
irb(main):001:0> User.joins(:groups).group('group_id').count
=> {"98913"=>2}
</pre>
Fix committed in r13149 with test.
--------------------------------------------------------------------------------
Jean-Philippe, thanks to have reviewed this patch.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Hi, you can indicate in the Resolution that's it's *Fixed*, if you have the time to, thanks a lot.
--------------------------------------------------------------------------------
Jérôme BATAILLE wrote:
> Hi, you can indicate in the Resolution that's it's *Fixed*, if you have the time to, thanks a lot.
"patch" tracker does not have "resolution" filed.
--------------------------------------------------------------------------------
Admin Redmine さんが3年以上前に更新
- カテゴリ を Code cleanup/refactoring_30 にセット
- 対象バージョン を 2.6.0_81 にセット