Skip to content

feat: added group_by_id field in notifications model#35137

Merged
muhammadadeeltajamul merged 4 commits intomasterfrom
inf-1471
Jul 23, 2024
Merged

feat: added group_by_id field in notifications model#35137
muhammadadeeltajamul merged 4 commits intomasterfrom
inf-1471

Conversation

@muhammadadeeltajamul
Copy link
Copy Markdown
Contributor

Added group_by_id field in notification model

Ticket Link: INF-1471

email = models.BooleanField(default=False, null=False, blank=False)
last_read = models.DateTimeField(null=True, blank=True)
last_seen = models.DateTimeField(null=True, blank=True)
group_by_id = models.CharField(max_length=255, null=True, default="")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that charfield 225 is too much for id, and max_length 20 would be sufficient.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

32 characters I think to be safe

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will be running queries on this field so might be a good idea to index it

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am planning to set it to 36 characters (equal to length of UUID)

@muhammadadeeltajamul muhammadadeeltajamul merged commit e12ec1b into master Jul 23, 2024
@muhammadadeeltajamul muhammadadeeltajamul deleted the inf-1471 branch July 23, 2024 09:28
@edx-pipeline-bot
Copy link
Copy Markdown
Contributor

2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production.

@edx-pipeline-bot
Copy link
Copy Markdown
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

mudassir-hafeez pushed a commit to mudassir-hafeez/edx-platform that referenced this pull request Jul 24, 2024
mudassir-hafeez pushed a commit to mudassir-hafeez/edx-platform that referenced this pull request Jul 24, 2024
mudassir-hafeez pushed a commit to mudassir-hafeez/edx-platform that referenced this pull request Jul 24, 2024
mudassir-hafeez pushed a commit to mudassir-hafeez/edx-platform that referenced this pull request Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants