# Provide more details when performing a bulk add to group

**URL:** <https://meta.discourse.org/t/provide-more-details-when-performing-a-bulk-add-to-group/60665>\
**Category:** Feature\
**Tags:** groups\
**Created:** [2017 年4 月 9 日 03:37 UTC](https://meta.discourse.org/t/provide-more-details-when-performing-a-bulk-add-to-group/60665 "2017-04-09T03:37:56Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

作者： ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
发布日期： [2017 年4 月 26 日 17:09 UTC](https://meta.discourse.org/t/provide-more-details-when-performing-a-bulk-add-to-group/60665/5 "2017-04-26T17:09:48Z")

</div>

I sent a PR for this:

[https://github.com/discourse/discourse/pull/4839](https://github.com/discourse/discourse/pull/4839)

I replaced success page with a success alert which informs total users added to group.

 ![](https://global.discourse-cdn.com/meta/original/3X/d/9/d959804f073a7a00542ea6adde2af3a21bfe1b6a.png)

* * *

> [@jomaxro](#):
>
> Ideally, the list of emails (or username) would be displayed with a “success” or “failed” for each. Alternatively, only display the unsuccessful entries.

I spent considerable time on this feature today trying to squeeze the information you asked for, but I realized that it’s not possible without impacting performance.

Initially I thought it will be possible because I have worked on bulk invite feature where we do provide detailed error log via PM. It’s not possible here though because instead of looping through each username/email we simply use [IN condition](https://github.com/discourse/discourse/blob/7a9eee1b71cf298210ee9a258e9f17ae1a8a9af7/app/controllers/admin/groups_controller.rb#L29) to find out the IDs of users you are trying to add to group. So invalid username/email gets ignored, not resulting in further error. Changing this code to loop through each username/emails will result in significant performance hit when bulk adding thousands of users to a group.

I will discuss this further with @eviltrout to see if there is a possibility to add detailed error log here without significant performance hit.

---

_[View the full topic](https://meta.discourse.org/t/provide-more-details-when-performing-a-bulk-add-to-group/60665)._
