Skip to content

Replace DurationChoices by JobIntervalChoices #18286

@alehaa

Description

@alehaa

NetBox version

v4.2-beta1

Feature type

Change to existing functionality

Triage priority

I volunteer to perform this work (if approved)

Proposed functionality

During the implementation of #17716, I added the JobIntervalChoices to simplify job scheduling. At the time of writing this PR, I wasn't aware that there was already a DurationChoices in the extras module used by the script form.

I suggest replacing it with the new JobIntervalChoices and also integrating its missing choices for "12 hours" and "30 days".

Use case

Code deduplication and increasing maintainability.

Database changes

None.

External dependencies

DurationChoices has never been part of a public API, so I think there are no side effects.

Metadata

Metadata

Assignees

Labels

complexity: lowRequires minimal effort to implementstatus: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions