Add statistics about group to group view #1874

Merged
hansegucker merged 7 commits from group-stats into master 2020-11-08 15:16:37 +01:00
Owner

This MR also includes a small fix to avoid calculating age_at for persons where date_of_birth is None.

This MR also includes a small fix to avoid calculating `age_at` for persons where `date_of_birth` is `None`.
Owner

Please commit this fix separately.

Please commit this fix separately.
Owner

I am not sure this should go directly in this template.

I am not sure this should go directly in this template.
Owner

This should be a method on the Group model.

This should be a method on the `Group` model.
Owner

I am not sure we should enable this by default and in the standard group view, as aggregating data is a separate use case in terms of privacy regulations. At the very least, there must be a separate permission (so I propose doing this after the permissions got merged).

I am not sure we should enable this by default and in the standard group view, as aggregating data is a separate use case in terms of privacy regulations. At the very least, there must be a separate permission (so I propose doing this after the permissions got merged).
Author
Owner

What do you mean, @hansegucker

What do you mean, @hansegucker
Author
Owner

changed this line in version 2 of the diff

changed this line in [version 2 of the diff](/AlekSIS/official/AlekSIS/-/merge_requests/229/diffs?diff_id=1837&start_sha=f44fc23c5384bc8893b435f614331a308e9bc7bf#da19f63ebfaac02d499250824afd90af20b474a2_19_19)
Author
Owner

changed this line in version 2 of the diff

changed this line in [version 2 of the diff](/AlekSIS/official/AlekSIS/-/merge_requests/229/diffs?diff_id=1837&start_sha=f44fc23c5384bc8893b435f614331a308e9bc7bf#8c15ef90a05145592bdded0de1ca9faad06ca049_176_174)
Author
Owner

added 3 commits

Compare with previous version

added 3 commits <ul><li>42999209 - Add get_group_stats method to Group model</li><li>3a2f141f - Add stats to template</li><li>b501b333 - Fix age_at method</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS/-/merge_requests/229/diffs?diff_id=1837&start_sha=f44fc23c5384bc8893b435f614331a308e9bc7bf)
Author
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>0896cccf - Use isnull instead Q</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS/-/merge_requests/229/diffs?diff_id=1838&start_sha=b501b33347409a91c1a765809af0f10413075135)
Owner

I think there is no problem doing that. Maybe we can make it optional (by settings), but I see no reason why not.

I think there is no problem doing that. Maybe we can make it optional (by settings), but I see no reason why not.
Author
Owner

resolved all threads

resolved all threads
Author
Owner

So this is waiting for !1852

~"workflow::blocked"

So this is waiting for !1852 ~"workflow::blocked"
Author
Owner

marked as a Work In Progress

marked as a **Work In Progress**
Owner

No longer blocked by AlekSIS!1852

No longer blocked by AlekSIS!1852
Owner

resolved all threads

resolved all threads
Author
Owner

added 538 commits

  • 0896cccf...d6a0b2bd - 537 commits from branch master
  • 929d12b6 - Merge branch 'master' into group-stats

Compare with previous version

added 538 commits <ul><li>0896cccf...d6a0b2bd - 537 commits from branch <code>master</code></li><li>929d12b6 - Merge branch &#39;master&#39; into group-stats</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS/-/merge_requests/229/diffs?diff_id=2718&start_sha=0896cccf6847f7b4f7e035b972be720530bb067a)
Author
Owner

unmarked as a Work In Progress

unmarked as a **Work In Progress**
Owner

Seems to be fine. Any comments left on this, @nik?

Seems to be fine. Any comments left on this, @nik?
Author
Owner

Anything wrong with this?

Anything wrong with this?
Author
Owner

added 154 commits

  • 929d12b6...b0ffe11b - 153 commits from branch master
  • 9d5bc0a1 - Merge branch 'master' into group-stats

Compare with previous version

added 154 commits <ul><li>929d12b6...b0ffe11b - 153 commits from branch <code>master</code></li><li>9d5bc0a1 - Merge branch &#39;master&#39; into group-stats</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS/-/merge_requests/229/diffs?diff_id=3579&start_sha=929d12b69b088d37396b99f2cd742802ede7bb25)
Owner

assigned to @nik and unassigned @hansegucker

assigned to @nik and unassigned @hansegucker
Owner

approved this merge request

approved this merge request
Author
Owner

approved this merge request

approved this merge request
Owner

I don;t know if it's just me but for instane there seems to be a strikingly obvious absence of screenshots :)!

I don;t know if it's just me but for instane there seems to be a strikingly obvious absence of screenshots :)!
Author
Owner

added 10 commits

  • 9d5bc0a1...f90161bc - 9 commits from branch master
  • 35de8737 - Merge branch 'master' into group-stats

Compare with previous version

added 10 commits <ul><li>9d5bc0a1...f90161bc - 9 commits from branch <code>master</code></li><li>35de8737 - Merge branch &#39;master&#39; into group-stats</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS/-/merge_requests/229/diffs?diff_id=3621&start_sha=9d5bc0a1aef5640881d9ef3f9e63c4340fa13558)
Author
Owner

Screenshot_20201108_150550

![Screenshot_20201108_150550](/uploads/e9a6fc10cad4571a84bfb70ef0c1f109/Screenshot_20201108_150550.png)
Author
Owner

resolved all threads

resolved all threads
Owner

assigned to @hansegucker and unassigned @nik

assigned to @hansegucker and unassigned @nik
Owner

mentioned in commit efe7b67d45

mentioned in commit efe7b67d4595a92a2829197db2b03fd51d256a2b
Author
Owner

mentioned in merge request Teckids/ticdesk!1700

mentioned in merge request Teckids/ticdesk!1700
tteichler approved these changes 2026-07-30 18:40:32 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aleksis/AlekSIS-Core!1874
No description provided.