Rename JobResult to Job and move to the "core" app #7798

Closed
opened 2025-12-29 20:28:20 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Mar 27, 2023).

Originally assigned to: @jeremystretch on GitHub.

Proposed Changes

This proposal entails two changes:

  1. Name the JobResult class to Job
  2. Move the class from extras to the new core app

The REST API endpoint for jobs would thus move from /api/extras/job-results to /api/core/jobs/. Similarly, the JOBRESULT_RETENTION configuration parameter will be renamed to JOB_RETENTION.

Justification

The core app being introduced in v3.5 serves to hold models which are not directly useful but empower other functionality in NetBox. Jobs meet this criteria, similar to other models which are being introduced in core: DataSource, DataFile, and ManagedFile.

Renaming the class also feels appropriate as the model is used to track the entire lifecycle of a job, not just its result.

Originally created by @jeremystretch on GitHub (Mar 27, 2023). Originally assigned to: @jeremystretch on GitHub. ### Proposed Changes This proposal entails two changes: 1. Name the `JobResult` class to `Job` 2. Move the class from `extras` to the new `core` app The REST API endpoint for jobs would thus move from `/api/extras/job-results` to `/api/core/jobs/`. Similarly, the `JOBRESULT_RETENTION` configuration parameter will be renamed to `JOB_RETENTION`. ### Justification The `core` app being introduced in v3.5 serves to hold models which are not directly useful but empower other functionality in NetBox. Jobs meet this criteria, similar to other models which are being introduced in core: `DataSource`, `DataFile`, and `ManagedFile`. Renaming the class also feels appropriate as the model is used to track the entire lifecycle of a job, not just its result.
adam added the status: acceptedtype: housekeeping labels 2025-12-29 20:28:20 +01:00
adam closed this issue 2025-12-29 20:28:20 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7798