Skip to content

Commit 890743e

Browse files
committed
refactor(auditlog-extra): replace internal auditlog extra with external
KK-1401. The `hel_django_auditlog_extra` app is now in it's own new repository: https://github.com/City-of-Helsinki/django-auditlog-extra/. At this point, it should be a drop in replacement (and only the app name and the imports needs to be changed).
1 parent 2ba177c commit 890743e

36 files changed

+27
-1753
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,11 +332,11 @@ This approach allows for realistic browser testing while safeguarding sensitive
332332
333333
## Audit logging
334334
335-
Audit logging is implemented with `django-auditlog`, but it has some extended features applied with [hel_django_auditlog_extra](./hel_django_auditlog_extra/) -app. To see documentation related to that, read its [README](./hel_django_auditlog_extra/README.md) and [FAQ](./hel_django_auditlog_extra/docs/FAQ.md).
335+
Audit logging is implemented with `django-auditlog`, but it has some extended features applied with [auditlog_extra](https://github.com/City-of-Helsinki/django-auditlog-extra) -app.
336336
337337
The configuration to define which models are in the scope of the audit logging can be found in [auditlog_settings.py](./kukkuu/auditlog_settings.py).
338338
339-
The GraphQL query/mutation and admin site views can be logged by using the mixins and decorators that `hel_django_auditlog_extra` provides (see: [README](./hel_django_auditlog_extra/README.md#features)).
339+
The GraphQL query/mutation and admin site views can be logged by using the mixins and decorators that `auditlog_extra` provides.
340340
341341
**References**:
342342

children/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
from auditlog_extra.mixins import AuditlogAdminViewAccessLogMixin
12
from django.contrib import admin
23
from django.utils.translation import gettext_lazy as _
34

45
from events.models import Enrolment, TicketSystemPassword
5-
from hel_django_auditlog_extra.mixins import AuditlogAdminViewAccessLogMixin
66
from languages.models import Language
77
from subscriptions.models import FreeSpotNotificationSubscription
88

children/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from datetime import datetime, timedelta, timezone
44

55
import graphene
6+
from auditlog_extra.graphene_decorators import auditlog_access
67
from django.conf import settings
78
from django.contrib.auth import get_user_model
89
from django.core.exceptions import ValidationError
@@ -23,7 +24,6 @@
2324
)
2425
from common.utils import login_required, map_enums_to_values_in_kwargs, update_object
2526
from events.models import Event, EventGroup, EventQueryset, Occurrence
26-
from hel_django_auditlog_extra.graphene_decorators import auditlog_access
2727
from kukkuu.exceptions import (
2828
ApiUsageError,
2929
DataValidationError,

events/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from auditlog_extra.mixins import AuditlogAdminViewAccessLogMixin
12
from django.conf import settings
23
from django.contrib import admin, messages
34
from django.contrib.admin.widgets import FilteredSelectMultiple
@@ -9,7 +10,6 @@
910
from parler.forms import TranslatableModelForm
1011

1112
from events.ticket_service import check_ticket_validity
12-
from hel_django_auditlog_extra.mixins import AuditlogAdminViewAccessLogMixin
1313
from subscriptions.models import FreeSpotNotificationSubscription
1414

1515
from .models import Enrolment, Event, EventGroup, Occurrence, TicketSystemPassword

events/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from typing import List, Optional
44

55
import graphene
6+
from auditlog_extra.graphene_decorators import auditlog_access
67
from django.apps import apps
78
from django.core.exceptions import PermissionDenied, ValidationError
89
from django.db import transaction
@@ -35,7 +36,6 @@
3536
from events.filters import EventFilter, OccurrenceFilter
3637
from events.models import Enrolment, Event, EventGroup, Occurrence, TicketSystemPassword
3738
from events.ticket_service import check_ticket_validity
38-
from hel_django_auditlog_extra.graphene_decorators import auditlog_access
3939
from kukkuu.exceptions import (
4040
ChildAlreadyJoinedEventError,
4141
DataValidationError,

0 commit comments

Comments
 (0)