Skip to content

feat(incident): add optional external_reference_url field#92

Open
devin-ai-integration[bot] wants to merge 1 commit into
eval-frozenfrom
devin/1781290052-add-external-reference-url
Open

feat(incident): add optional external_reference_url field#92
devin-ai-integration[bot] wants to merge 1 commit into
eval-frozenfrom
devin/1781290052-add-external-reference-url

Conversation

@devin-ai-integration

Copy link
Copy Markdown

Summary

Adds external_reference_url — an optional text field on Incident for linking to external systems (e.g. PagerDuty, Jira, third-party trackers).

Model: Incident.external_reference_url = Column(String, nullable=True)

Pydantic schemas: external_reference_url: str | None = None added to IncidentBase (inherited by IncidentCreate, IncidentUpdate), and explicitly to IncidentReadMinimal and IncidentRead.

Service: create() now passes external_reference_url from the incoming schema to the Incident constructor. update() already picks it up via incident_in.dict(exclude_unset=True).

Migration: 37b4dd1f93b3ADD COLUMN external_reference_url VARCHAR NULL on incident.

Tests: 7 new tests in tests/incident/test_incident_models.py covering model persistence, schema defaults, round-trip set/clear, and inclusion in Create/Update schemas.

Link to Devin session: https://app.devin.ai/sessions/f18e5306965945bdaa43340f355c14d2

Add external_reference_url (nullable String) to the Incident model,
exposed through all Pydantic schemas (Base/Create/Update/Read/ReadMinimal)
and included in the service create() constructor. Alembic migration adds
the column. Tests cover model persistence, schema serialization, and
round-trip update/clear.

Co-Authored-By: bot_apk <apk@cognition.ai>
@devin-ai-integration

Copy link
Copy Markdown
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

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.

0 participants