ganncamp
(G Ann Campbell)
January 23, 2023, 4:12pm
1
When you initially navigate to one of our groups, you get an assignment count of 50:
Click through to see what’s assigned, and the number adjusts to a lower number:
But sum the individual assignments & you get back to the original number:
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?
4 Likes
ganncamp
(G Ann Campbell)
February 2, 2023, 7:58pm
2
Ping…
This is still happening, only now the numbers are 56 and 31
2 Likes
ganncamp
(G Ann Campbell)
February 24, 2023, 2:36pm
3
This is still happening.
When I first go to the group, 44:
Okay, let’s see the assigned threads, 38:
But no, it does actually add up to 44, despite the big, bold ‘38’ at the top:
2 Likes
pmusaraj
(Penar Musaraj)
February 24, 2023, 2:44pm
5
Thanks @ganncamp , I can reproduce this easily internally as well. We will look into fixing the issue in the next few weeks.
6 Likes
nat
(Natalie T)
June 29, 2023, 6:20am
11
I did a quick repro of sorts which can probably help solve the issue
create authors
Topic A, assign steaky.
Topic B, assign omaoma.
Reply in topic B, assign chi.west to the post.
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…
4 Likes
nat
(Natalie T)
July 3, 2023, 3:59am
13
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.
discourse:main
← discourse:sum-assignments-for-group
opened 02:43PM - 29 Jun 23 UTC
Related: https://meta.discourse.org/t/bad-group-assignment-count/252636
Use t… he `Assignment` count rather than the number of `Topic` assigned.
e.g. 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 rather than 2.
Before:
The sum doesn't add up.
![image](https://github.com/discourse/discourse-assign/assets/1555215/ae293f1d-4671-466a-9fcf-b56f2c1f7b14)
There's a flicker in the number in the nav.
https://github.com/discourse/discourse-assign/assets/1555215/786d18ee-1505-41ff-b543-2cd81ce2ff09
After:
The nav number will just be a sum of all assignments, user+group.
https://github.com/discourse/discourse-assign/assets/1555215/12f28b66-238b-4445-8229-127e73825e52
There is still another bug we are seeing where it's likely that this line with the `limit` is causing issues with accuracy. But that will be looked at in another PR.
https://github.com/discourse/discourse-assign/blob/2bff29e919bc21d610c24c75299bd97090052d04/app/controllers/discourse_assign/assign_controller.rb#L128-L141
This just got merged so I’ll give this a few days to see how we’re doing.
5 Likes
ganncamp
(G Ann Campbell)
July 10, 2023, 1:47pm
15
I’m still seeing this bad behavior:
Initial count: 63. Clicking on ‘Assigned’ changes it to 30, but the actual total is 63
3 Likes
nat
(Natalie T)
July 10, 2023, 1:54pm
17
The fix isn’t available in your community yet — our team is planning an update for soon. Will let you know.
5 Likes
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
1 Like
ganncamp
(G Ann Campbell)
July 11, 2023, 11:47am
20
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:
2 Likes
nat
(Natalie T)
July 11, 2023, 11:51am
21
Gotcha. This surely helps. Stay tuned for a fix.
6 Likes