Skip to content

New Feature: Record expiration#831

Merged
peteeckel merged 5 commits into
mainfrom
feature/record-expiration
Jun 7, 2026
Merged

New Feature: Record expiration#831
peteeckel merged 5 commits into
mainfrom
feature/record-expiration

Conversation

@peteeckel
Copy link
Copy Markdown
Collaborator

This PR adds a new field expiration_date to the Record model. It can be set to a date when a record should be considered expired and no longer be used in DNS zone deployments.

  • For objects of the Record model, there is a new property is_expired that returns True if a record hasexpiration_date set and the date in that field is in the past.
  • The API response for Record objects contains the expiration date and an expired field that becomes true for expired records as defined above.
  • The detail view for Record objects shows expiration_date if it is defined, and a "Record is expired" warning when the expiration date is in the past.
  • Filtering is possible by using the expiration_date_before and expiration_date_after filters or by using the boolean expired filter. The filter form also presents these options.

@peteeckel peteeckel merged commit 3154ca3 into main Jun 7, 2026
11 checks passed
@peteeckel peteeckel deleted the feature/record-expiration branch June 7, 2026 13:05
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.

1 participant