-
Notifications
You must be signed in to change notification settings - Fork 18
feat(moderation): implement moderator management interface with automatic logging #379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
C4ptainCrunch
merged 14 commits into
DocHub-ULB:main
from
mnietona:feat/moderation-dashboard
Apr 27, 2026
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
4160599
feat(moderation): implement moderator management interface with logging
mnietona 4d6ffb9
chore(admin): display readable target object in ModerationLog admin
mnietona 7e3738f
feat(moderation): integrate requests processing on the dashboard
mnietona a8edb29
feat(moderation): add rejection reason to requests and improve logging
mnietona d24e065
refactor(moderation): use form for request processing, rename view, a…
mnietona fcaf91a
refactor(moderation): split moderator management into 3 distinct view…
mnietona 7c06edf
feat(moderation): add paginated public transparency logs
mnietona 15322de
fix(moderation): implement robust OOP fallbacks for legacy logs and c…
mnietona fbbcdec
refactor(moderation): clean up legacy log fallbacks and enforce defau…
mnietona d29c05a
refactor(moderation): implement strict 403 permissions, forms validat…
mnietona 54dab41
style: fix broken SVG icon rendering as a checkbox
mnietona ce55759
refactor(moderation): simplify log fetching in public_logs by removin…
mnietona ae841b4
perf: add prefetch_related for generic foreign key to fix N+1
mnietona 01d198f
refactor(moderation): replace confirm dialog with Turbo confirmation …
mnietona File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
moderation/migrations/0004_representativerequest_rejection_reason.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # Generated by Django 6.0 on 2026-04-02 09:52 | ||
|
|
||
| from django.db import migrations, models | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
|
|
||
| dependencies = [ | ||
| ("moderation", "0003_moderationlog_and_more"), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AddField( | ||
| model_name="representativerequest", | ||
| name="rejection_reason", | ||
| field=models.TextField(blank=True, verbose_name="Raison du refus"), | ||
| ), | ||
| ] |
20 changes: 20 additions & 0 deletions
20
moderation/migrations/0005_alter_representativerequest_rejection_reason.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # Generated by Django 6.0 on 2026-04-21 19:45 | ||
|
|
||
| from django.db import migrations, models | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
|
|
||
| dependencies = [ | ||
| ("moderation", "0004_representativerequest_rejection_reason"), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AlterField( | ||
| model_name="representativerequest", | ||
| name="rejection_reason", | ||
| field=models.TextField( | ||
| blank=True, default="", verbose_name="Raison du refus" | ||
| ), | ||
| ), | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.