Closed pr-pilot-ai[bot] closed 2 months ago
The following tests failed:
The errors are caused by the missing accounts_sentryintegration
table. This is due to the addition of the SentryIntegration
model in the PR. Here are the relevant code changes:
class SentryIntegration(models.Model):
api_key = models.TextField(null=True, blank=False)
class PilotUser(AbstractUser):
linear_integration = models.OneToOneField(
LinearIntegration, on_delete=models.CASCADE, null=True, blank=True
)
slack_integration = models.OneToOneField(
SlackIntegration, on_delete=models.CASCADE, null=True, blank=True
)
sentry_integration = models.OneToOneField(
SentryIntegration, on_delete=models.CASCADE, null=True, blank=True
)
To fix the issue, you need to create and apply a new database migration for the SentryIntegration
model. You can do this by running the following commands:
python manage.py makemigrations
python manage.py migrate
This will create the necessary database table and resolve the test errors.
accounts/models.py
to understand the existing models.SentryIntegration
model to store the Sentry API key.PilotUser
to include a one-to-one relationship withSentryIntegration
.Sub-task 1/4 is complete.