Compare commits

..

13 Commits

Author SHA1 Message Date
Ariel Rin
f49ca2bccb Version Bump 2.9.0 2021-10-17 10:15:20 +00:00
Ariel Rin
9c71a8d9a3 Merge branch 'transifex' into 'v2.9.x'
Update from Transifex

See merge request allianceauth/allianceauth!1319
2021-10-17 09:28:37 +00:00
Ariel Rin
0032f91525 Update from Transifex 2021-10-17 09:28:37 +00:00
Ariel Rin
7f3492f978 Merge branch 'analytics' into 'v2.9.x'
Analytics Improvements

See merge request allianceauth/allianceauth!1340
2021-10-17 09:26:11 +00:00
Ariel Rin
2b9110e417 Analytics Improvements 2021-10-17 09:26:11 +00:00
Joel Falknau
98619a0eb8 Require Django-ESI 3.x 2021-10-17 19:13:43 +10:00
Joel Falknau
7a4aa05c39 Merge commit '8486b95917a48d760bb6ba05795a40c19a2440d0' into v2.9.x 2021-10-17 19:11:09 +10:00
Ariel Rin
ba597cd2ad Merge branch 'case-sensitive-filter-fix' into 'v2.9.x'
[FIX] This filter is case sensitive

See merge request allianceauth/allianceauth!1339
2021-10-17 07:28:55 +00:00
Peter Pfeufer
5992ddd48e This filter is case sensitive 2021-10-15 06:06:02 +02:00
Crashtec
8486b95917 Add override to delete the user from discord itself 2021-10-10 15:19:46 -04:00
Ariel Rin
564f4fb5f9 Merge branch 'use-django-3.2' into 'v2.9.x'
Bumped minimum Django version to 3.2.7

See merge request allianceauth/allianceauth!1336
2021-09-22 13:43:51 +00:00
Peter Pfeufer
688c11ff18 bumped min Django version to 3.2.7 2021-09-19 18:05:39 +02:00
Ariel Rin
bb15de6d1a Version Bump v2.8.7 2021-09-14 04:32:37 +00:00
27 changed files with 4466 additions and 1881 deletions

View File

@@ -1,7 +1,7 @@
# This will make sure the app is always imported when
# Django starts so that shared_task will use this app.
__version__ = '2.9.0b1'
__version__ = '2.9.0'
__title__ = 'Alliance Auth'
__url__ = 'https://gitlab.com/allianceauth/allianceauth'
NAME = '%s v%s' % (__title__, __version__)

View File

@@ -4,6 +4,8 @@ from django.utils.deprecation import MiddlewareMixin
from .models import AnalyticsTokens, AnalyticsIdentifier
from .tasks import send_ga_tracking_web_view
import re
class AnalyticsMiddleware(MiddlewareMixin):
def process_response(self, request, response):
@@ -20,7 +22,13 @@ class AnalyticsMiddleware(MiddlewareMixin):
if token.send_page_views is False:
continue
# Check Exclusions
if request.path in token.ignore_paths.all():
ignore = False
for ignore_path in token.ignore_paths.values():
ignore_path_regex = re.compile(ignore_path["ignore_path"])
if re.search(ignore_path_regex, request.path) is not None:
ignore = True
if ignore is True:
continue
tracking_id = token.token

View File

@@ -0,0 +1,31 @@
# Generated by Django 3.1.13 on 2021-10-15 05:02
from django.db import migrations
def modify_aa_team_token_add_page_ignore_paths(apps, schema_editor):
# We can't import the Person model directly as it may be a newer
# version than this migration expects. We use the historical version.
AnalyticsPath = apps.get_model('analytics', 'AnalyticsPath')
admin = AnalyticsPath.objects.create(ignore_path=r"^\/admin\/.*")
user_notifications_count = AnalyticsPath.objects.create(ignore_path=r"^\/user_notifications_count\/.*")
Tokens = apps.get_model('analytics', 'AnalyticsTokens')
token = Tokens.objects.get(token="UA-186249766-2")
token.ignore_paths.add(admin, user_notifications_count)
def undo_modify_aa_team_token_add_page_ignore_paths(apps, schema_editor):
# nothing should need to migrate away here?
return True
class Migration(migrations.Migration):
dependencies = [
('analytics', '0003_Generate_Identifier'),
]
operations = [migrations.RunPython(modify_aa_team_token_add_page_ignore_paths, undo_modify_aa_team_token_add_page_ignore_paths)
]

View File

@@ -20,7 +20,7 @@ class AnalyticsIdentifier(models.Model):
class AnalyticsPath(models.Model):
ignore_path = models.CharField(max_length=254, default="/example/")
ignore_path = models.CharField(max_length=254, default="/example/", help_text="Regex Expression, If matched no Analytics Page View is sent")
class AnalyticsTokens(models.Model):

View File

@@ -20,7 +20,7 @@ def process_failure_signal(
action = sender.__name__
label = f"{exception.__class__.__name__}: {str(exception)}"
label = f"{exception.__class__.__name__}"
analytics_event(category=category,
action=action,

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -93,6 +93,7 @@ LANGUAGES = (
('ko', ugettext('Korean')),
('fr', ugettext('French')),
('ja', ugettext('Japanese')),
('it', ugettext('Italian')),
)
TEMPLATES = [

View File

@@ -30,5 +30,9 @@ class DiscordUserAdmin(ServicesUserAdmin):
else:
return ''
def delete_queryset(self, request, queryset):
for user in queryset:
user.delete_user()
_username.short_description = 'Discord Username'
_username.admin_order_field = 'username'

View File

@@ -58,6 +58,6 @@ class SRPManager:
"""returns the number of open SRP requests for given user
or None if user has no permission"""
if user.has_perm("auth.srp_management"):
return SrpUserRequest.objects.filter(srp_status="pending").count()
return SrpUserRequest.objects.filter(srp_status="Pending").count()
else:
return None

View File

@@ -22,7 +22,7 @@ install_requires = [
'celery>=4.3.0,<6.0.0,!=4.4.4', # 4.4.4 is missing a dependency
'celery_once>=2.0.1',
'django>=3.1.1,<4.0.0',
'django>=3.2.7,<4.0.0',
'django-bootstrap-form',
'django-registration>=3.1',
'django-sortedm2m',
@@ -33,7 +33,7 @@ install_requires = [
'sleekxmpp',
'pydiscourse',
'django-esi>=2.0.4,<3.0'
'django-esi>=3.0.0,<4.0.0'
]
testing_extras = [