-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added group_by_id field in notifications model (#35137)
- Loading branch information
1 parent
7ae80be
commit e12ec1b
Showing
4 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
|
@@ -5382,7 +5382,7 @@ def _make_locale_paths(settings): # pylint: disable=missing-function-docstring | |
############## NOTIFICATIONS ############## | ||
NOTIFICATIONS_EXPIRY = 60 | ||
EXPIRED_NOTIFICATIONS_DELETE_BATCH_SIZE = 10000 | ||
NOTIFICATION_CREATION_BATCH_SIZE = 83 | ||
NOTIFICATION_CREATION_BATCH_SIZE = 76 | ||
NOTIFICATIONS_DEFAULT_FROM_EMAIL = "[email protected]" | ||
NOTIFICATION_TYPE_ICONS = {} | ||
DEFAULT_NOTIFICATION_ICON_URL = "" | ||
|
18 changes: 18 additions & 0 deletions
18
openedx/core/djangoapps/notifications/migrations/0006_notification_group_by_id.py
This file contains 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 4.2.13 on 2024-07-23 07:59 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('notifications', '0005_notification_email_notification_web'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='notification', | ||
name='group_by_id', | ||
field=models.CharField(db_index=True, default='', max_length=42), | ||
), | ||
] |
This file contains 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