chore: webhook, comments migration (#6523)
* chore: migration changes * chore: renamed the display value * chore: reverted the accounts code
This commit is contained in:
parent
0deec92d91
commit
9f4dd771fc
7 changed files with 44 additions and 8 deletions
|
|
@ -467,6 +467,7 @@ class IssueComment(ProjectBaseModel):
|
|||
)
|
||||
external_source = models.CharField(max_length=255, null=True, blank=True)
|
||||
external_id = models.CharField(max_length=255, blank=True, null=True)
|
||||
edited_at = models.DateTimeField(null=True, blank=True)
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
self.comment_stripped = (
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ class EntityNameEnum(models.TextChoices):
|
|||
|
||||
class UserRecentVisit(WorkspaceBaseModel):
|
||||
entity_identifier = models.UUIDField(null=True)
|
||||
entity_name = models.CharField(max_length=30, choices=EntityNameEnum.choices)
|
||||
entity_name = models.CharField(max_length=30)
|
||||
user = models.ForeignKey(
|
||||
settings.AUTH_USER_MODEL,
|
||||
on_delete=models.CASCADE,
|
||||
|
|
|
|||
|
|
@ -186,6 +186,8 @@ 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)
|
||||
|
||||
is_smooth_cursor_enabled = models.BooleanField(default=False)
|
||||
# mobile
|
||||
is_mobile_onboarded = models.BooleanField(default=False)
|
||||
mobile_onboarding_step = models.JSONField(default=get_mobile_default_onboarding)
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ class WebhookLog(BaseModel):
|
|||
"db.Workspace", on_delete=models.CASCADE, related_name="webhook_logs"
|
||||
)
|
||||
# Associated webhook
|
||||
webhook = models.ForeignKey(Webhook, on_delete=models.CASCADE, related_name="logs")
|
||||
webhook = models.UUIDField()
|
||||
|
||||
# Basic request details
|
||||
event_type = models.CharField(max_length=255, blank=True, null=True)
|
||||
|
|
@ -89,4 +89,4 @@ class WebhookLog(BaseModel):
|
|||
ordering = ("-created_at",)
|
||||
|
||||
def __str__(self):
|
||||
return f"{self.event_type} {str(self.webhook.url)}"
|
||||
return f"{self.event_type} {str(self.webhook)}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue