Skip to content

Commit

Permalink
Merge pull request #2258 from openedx/bbeggs/ENT-9585
Browse files Browse the repository at this point in the history
Add index on the username field in Consent model (high edx-platform apdex alert)
  • Loading branch information
macdiesel authored Oct 7, 2024
2 parents 4ff2441 + b486bf5 commit 0024644
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ Unreleased
----------
* nothing unreleased

[4.27.0]
---------
* chore: Add index to the username field in the `Consent` model

[4.26.1]
---------
* feat: proxy login now redirects to LMS register page instead of login page
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 4.2.15 on 2024-10-07 14:33

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('consent', '0006_alter_historicaldatasharingconsent_options'),
]

operations = [
migrations.AddIndex(
model_name='datasharingconsent',
index=models.Index(fields=['username'], name='consent_dat_usernam_fae23a_idx'),
),
]
3 changes: 3 additions & 0 deletions consent/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ class Meta:

abstract = True
app_label = 'consent'
indexes = [
models.Index(fields=['username'])
]

enterprise_customer = models.ForeignKey(
EnterpriseCustomer,
Expand Down
2 changes: 1 addition & 1 deletion enterprise/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Your project description goes here.
"""

__version__ = "4.26.1"
__version__ = "4.27.0"

0 comments on commit 0024644

Please sign in to comment.