# Bad group assignment count

**URL:** https://meta.discourse.org/t/bad-group-assignment-count/252636
**Category:** Bug
**Tags:** assign
**Created:** [January 23, 2023, 4:12pm UTC](https://meta.discourse.org/t/bad-group-assignment-count/252636 "2023-01-23T16:12:46Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![ganncamp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ganncamp/32/106199_2.png) [@ganncamp](https://meta.discourse.org/u/ganncamp)
#### Post date: [January 23, 2023, 4:12pm UTC](https://meta.discourse.org/t/bad-group-assignment-count/252636/1 "2023-01-23T16:12:46Z")

</div>

When you initially navigate to one of our groups, you get an assignment count of 50:

 ![Selection_717](https://global.discourse-cdn.com/meta/original/4X/d/d/c/ddcc87146c98440f99835c344ea58f0ee53c850c.png)

Click through to see what’s assigned, and the number adjusts to a lower number:

 ![Selection_718](https://global.discourse-cdn.com/meta/original/4X/a/e/7/ae717927b280c12842b7e4d43209cafb0430ed94.png)

But sum the individual assignments & you get back to the original number:

 ![Selection_719](https://global.discourse-cdn.com/meta/original/4X/7/a/e/7aedea9c2be574d2e169243bef5bc3a3bb6cd57f.png)

Now, if I navigate back to the default group page, the count is updated to 30 - for a while. Attend a meeting & then go back to the group page and it all starts again at 50. In the words of one of our staff users:

> This is boring and confuses us in our community meetings… is there a way to fix this?

---

<div class="post-metadata">

### Author: ![ganncamp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ganncamp/32/106199_2.png) [@ganncamp](https://meta.discourse.org/u/ganncamp)
#### Post date: [February 2, 2023, 7:58pm UTC](https://meta.discourse.org/t/bad-group-assignment-count/252636/2 "2023-02-02T19:58:15Z")

</div>

Ping…

This is still happening, only now the numbers are 56 and 31

---

<div class="post-metadata">

### Author: ![ganncamp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ganncamp/32/106199_2.png) [@ganncamp](https://meta.discourse.org/u/ganncamp)
#### Post date: [February 24, 2023, 2:36pm UTC](https://meta.discourse.org/t/bad-group-assignment-count/252636/3 "2023-02-24T14:36:30Z")

</div>

This is still happening.

When I first go to the group, 44:

 ![Selection_828](https://global.discourse-cdn.com/meta/original/4X/5/b/e/5beb98f7a1e1cc847bf35e409ecc7213a21575a5.png)

Okay, let’s see the assigned threads, 38:

 ![Selection_829](https://global.discourse-cdn.com/meta/original/4X/b/3/0/b30034db9da7a4483f5c2fe647f5eaf03d055ba9.png)

But no, it does actually add up to 44, despite the big, bold ‘38’ at the top:

 ![Selection_830](https://global.discourse-cdn.com/meta/original/4X/2/b/3/2b31ee1343e0a7ba64e0d280e6da2fe53ec47a73.png)

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [February 24, 2023, 2:44pm UTC](https://meta.discourse.org/t/bad-group-assignment-count/252636/5 "2023-02-24T14:44:45Z")

</div>

Thanks @ganncamp, I can reproduce this easily internally as well. We will look into fixing the issue in the next few weeks.

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [June 29, 2023, 6:20am UTC](https://meta.discourse.org/t/bad-group-assignment-count/252636/11 "2023-06-29T06:20:27Z")

</div>

I did a quick repro of sorts which can probably help solve the issue

1. create `authors`
2. Topic A, assign steaky.
3. Topic B, assign omaoma.
4. Reply in topic B, assign chi.west to the post.

 ![group assigned page](https://global.discourse-cdn.com/meta/original/4X/3/6/9/369edd6f8dd78bc4f42810bc3f1755f62c7faf6f.png)

The highlighted “Assigned (2)” goes briefly from “Assigned (3)” then back to “Assigned (2)”. I think it’s fighting itself 😮‍💨

I think we can go about this based on “total number of assignments” rather than “how many topics were assigned”.

Let’s see if I can get this in…

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [July 3, 2023, 3:59am UTC](https://meta.discourse.org/t/bad-group-assignment-count/252636/13 "2023-07-03T03:59:01Z")

</div>

I’ve got one fix in regarding the number in the nav. The PR description shares the scenario

> John can be assigned to topic\_id: 1, and Jane can be assigned to a post within topic\_id: 1. This will result in 1 assignment rather than 2.

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/f/c/cfcb545352a694a59fdce9950c6b4d61555236e6.png)

[https://github.com/discourse/discourse-assign/pull/482](https://github.com/discourse/discourse-assign/pull/482)

This just got merged so I’ll give this a few days to see how we’re doing.

---

<div class="post-metadata">

### Author: ![ganncamp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ganncamp/32/106199_2.png) [@ganncamp](https://meta.discourse.org/u/ganncamp)
#### Post date: [July 10, 2023, 1:47pm UTC](https://meta.discourse.org/t/bad-group-assignment-count/252636/15 "2023-07-10T13:47:51Z")

</div>

I’m still seeing this bad behavior:

 ![Selection_1185](https://global.discourse-cdn.com/meta/original/4X/1/0/b/10b3bd70c7737bad9a99f0c0e2515bc2052a5016.png)

Initial count: 63. Clicking on ‘Assigned’ changes it to 30, but the actual total is 63

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [July 10, 2023, 1:54pm UTC](https://meta.discourse.org/t/bad-group-assignment-count/252636/17 "2023-07-10T13:54:38Z")

</div>

The fix isn’t available in your community yet — our team is planning an update for soon. Will let you know.

---

<div class="post-metadata">

### Author: ![MarkDoerr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/markdoerr/32/549630_2.png) [@MarkDoerr](https://meta.discourse.org/u/MarkDoerr)
#### Post date: [July 10, 2023, 10:09pm UTC](https://meta.discourse.org/t/bad-group-assignment-count/252636/19 "2023-07-10T22:09:57Z")

</div>

Hi G Ann,

The site has been deployed so the fix should now be in place. Please let us know whether or not that resolves the issue for you.

Mark

---

<div class="post-metadata">

### Author: ![ganncamp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ganncamp/32/106199_2.png) [@ganncamp](https://meta.discourse.org/u/ganncamp)
#### Post date: [July 11, 2023, 11:47am UTC](https://meta.discourse.org/t/bad-group-assignment-count/252636/20 "2023-07-11T11:47:54Z")

</div>

Thanks!

It’s better, but still not quite right:

And in case it helps, I think the one-off is probably the one assigned to the group itself:

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

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [July 11, 2023, 11:51am UTC](https://meta.discourse.org/t/bad-group-assignment-count/252636/21 "2023-07-11T11:51:11Z")

</div>

> [@ganncamp](#):
>
> in case it helps, I think the one-off is probably the one assigned to the group itself

Gotcha. This surely helps. Stay tuned for a fix.
