Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

[WEB-5890] migration: added getting_started_checklist, tips, explored_feature fields on the workspace member table (#8489)

Sangeethafa1b4a102a94
diff --git a/apps/api/plane/db/migrations/0116_workspacemember_explored_features_and_more.py b/apps/api/plane/db/migrations/0116_workspacemember_explored_features_and_more.py
new file mode 100644
index 0000000000..38e231e0eb
--- /dev/null
+++ b/apps/api/plane/db/migrations/0116_workspacemember_explored_features_and_more.py
@@ -0,0 +1,38 @@
+# Generated by Django 4.2.27 on 2026-01-13 10:38
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('db', '0115_auto_20260105_1406'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='profile',
+ name='notification_view_mode',
+ field=models.CharField(choices=[('full', 'Full'), ('compact', 'Compact')], default='full', max_length=255),
+ ),
+ migrations.AddField(
+ model_name='user',
+ name='is_password_reset_required',
+ field=models.BooleanField(default=False),
+ ),
+ migrations.AddField(
+ model_name='workspacemember',
+ name='explored_features',
+ field=models.JSONField(default=dict),
+ ),
+ migrations.AddField(
+ model_name='workspacemember',
+ name='getting_started_checklist',
+ field=models.JSONField(default=dict),
+ ),
+ migrations.AddField(
+ model_name='workspacemember',
+ name='tips',
+ field=models.JSONField(default=dict),
+ ),
+ ]
diff --git a/apps/api/plane/db/models/user.py b/apps/api/plane/db/models/user.py
index b0f571be9c..cae98d98d2 100644
--- a/apps/api/plane/db/models/user.py
+++ b/apps/api/plane/db/models/user.py
@@ -84,7 +84,7 @@ class User(AbstractBaseUser, PermissionsMixin):
is_staff = models.BooleanField(default=False)
is_email_verified = models.BooleanField(default=False)
is_password_autoset = models.BooleanField(default=False)
-
+ is_password_reset_required = models.BooleanField(default=False)
# random token generated
token = models.CharField(max_length=64, blank=True)
@@ -192,6 +192,10 @@ class Profile(TimeAuditModel):
FRIDAY = 5
SATURDAY = 6
+ class NotificationViewMode(models.TextChoices):
+ FULL = "full", "Full"
+ COMPACT = "compact", "Compact"
+
START_OF_THE_WEEK_CHOICES = (
(SUNDAY, "Sunday"),
(MONDAY, "Monday"),
@@ -221,7 +225,9 @@ class Profile(TimeAuditModel):
billing_address = models.JSONField(null=True)
has_billing_address = models.BooleanField(default=False)
company_name = models.CharField(max_length=255, blank=True)
-
+ notification_view_mode = models.CharField(
+ max_length=255, choices=NotificationViewMode.choices, default=NotificationViewMode.FULL
+ )
is_smooth_cursor_enabled = models.BooleanField(default=False)
# mobile
is_mobile_onboarded = models.BooleanField(default=False)
diff --git a/apps/api/plane/db/models/workspace.py b/apps/api/plane/db/models/workspace.py
index 9690168a11..fcd34c7b5b 100644
--- a/apps/api/plane/db/models/workspace.py
+++ b/apps/api/plane/db/models/workspace.py
@@ -214,6 +214,9 @@ class WorkspaceMember(BaseModel):
default_props = models.JSONField(default=get_default_props)
issue_props = models.JSONField(default=get_issue_props)
is_active = models.BooleanField(default=True)
+ getting_started_checklist = models.JSONField(default=dict)
+ tips = models.JSONField(default=dict)
+ explored_features = models.JSONField(default=dict)
class Meta:
unique_together = ["workspace", "member", "deleted_at"]