Commit Graph

3719 Commits

Author SHA1 Message Date
Jeremy Stretch
97ad5e541f Release v4.1.1 2024-09-12 14:28:56 -04:00
Brian Tiemann
4865d374b9 Add a step to the release checklist documentation for testing migrations on all supported upgrade paths 2024-09-11 08:40:32 -04:00
Jeremy Stretch
e6208a9c00 Changelog for #16926, #17066, #17347, #17387, #17414 2024-09-10 09:31:46 -04:00
Arthur Hanson
e711dd609d 16349 add warning to custom script docs 2024-09-05 12:52:16 -04:00
Jeremy Stretch
b7457f8529 Changelog for #17332, #17353, #17354, #17364 2024-09-04 17:05:24 -04:00
Jeremy Stretch
a162963e03 Release v4.1.0 2024-09-03 14:45:28 -04:00
Jeremy Stretch
588dccde5e Update changelog 2024-09-03 13:56:29 -04:00
Jeremy Stretch
30f531a1bc Fix broken link 2024-09-03 13:36:39 -04:00
Jeremy Stretch
e71eadf90b #17289: Document new default configuration 2024-09-03 12:17:56 -04:00
Jeremy Stretch
6a8e455294 Merge branch 'develop' into feature 2024-09-03 11:59:59 -04:00
Jeremy Stretch
b352fc5bc2 Release v4.0.11 2024-09-03 10:33:47 -04:00
bctiemann
01ca156f8f Fixes: #17320 - New screenshots for 4.1 UI (#17331)
* New screenshots for 4.1

* Remove footer info

* Add bookmarks to dashboard to match previous

* Reverse ordering of bookmarks

* Fix colors of cables in cable-trace.png

* New screenshots for 4.1

* Recapture screenshots with better rendering gradient

* Better sidebar on cable-trace.png
2024-09-03 09:03:41 -04:00
Jeremy Stretch
b413db87b3 Closes #17288: Limit the number of aliases within a GraphQL API requests to 10 (#17329)
* Closes #17288: Limit the number of aliases within a GraphQL API request to 10

* Introduce GRAPHQL_MAX_ALIASES config parameter
2024-09-02 09:30:41 -04:00
Jeremy Stretch
a0a199cec3 #8198: Rename CustomField.validation_unique to unique (#17325)
* #8198: Rename CustomField.validation_unique to unique

* Update CustomField model documentation
2024-08-30 13:44:03 -04:00
Jeremy Stretch
c8a1ae939a Update changelog 2024-08-30 13:31:41 -04:00
Arthur Hanson
d7f55cc796 11969 remove airflow from racktype (#17324)
* 11969 remove airflow from racktype

* 11969 remove airflow from racktype

* 11969 update docs

* 11969 fix rack edit

* Rename migration

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-08-30 13:30:51 -04:00
Jeremy Stretch
30e7466b5c #17051: Tag ISOLATED_DEPLOYMENT as a v4.1 feature 2024-08-30 10:19:22 -04:00
Jeremy Stretch
2d76f446b7 #17143: Update docs for nested serializer use 2024-08-30 10:18:29 -04:00
Jeremy Stretch
61fc65e60b #14692: Correct VirtualDisk model docs 2024-08-29 16:48:48 -04:00
Jeremy Stretch
0ef02c348d #10500: Cleanup (#17305)
* Use MPTTColumn for module bays

* Fix return URLs

* Omit extraneous relationships from nested serializers

* Add note re: v4.1
2024-08-29 15:38:53 -04:00
Jeremy Stretch
fbdc68851b Merge branch 'develop' into feature 2024-08-29 10:51:38 -04:00
Jeremy Stretch
ac107adb49 Release v4.0.10 2024-08-29 09:25:58 -04:00
Jeremy Stretch
b71087e29d Fix broken intra-page links 2024-08-29 09:13:02 -04:00
Jeremy Stretch
ef65a382a7 Update change log 2024-08-29 09:01:23 -04:00
Jeremy Stretch
1c4a8d0055 Update changelog 2024-08-27 17:09:16 -04:00
Jeremy Stretch
20d0985fb6 Update changelog 2024-08-27 12:08:02 -04:00
Jeremy Stretch
19312c3f9f Update changelog 2024-08-26 15:41:12 -04:00
Arthur Hanson
2eecb8e0c3 17193 update logo in Readme (#17194)
* 17193 update logo in Readme

* 17193 update logo in Readme

* 17193 remove .png

* 17194 favicon, apple
2024-08-19 11:22:40 -04:00
Jeremy Stretch
d5ab693fff Update release checklist for v4.1 2024-08-15 12:59:44 -04:00
Jeremy Stretch
e35c2c8aa4 Update change log 2024-08-15 12:36:53 -04:00
Jeremy Stretch
15e6822071 Merge branch 'develop' into feature 2024-08-14 10:54:31 -04:00
Jeremy Stretch
304d74f3ce PRVB 2024-08-14 10:27:03 -04:00
Jeremy Stretch
274524ac5c Release v4.0.9 2024-08-14 09:30:41 -04:00
Jeremy Stretch
622c2b25fe Changelog for #16692, #17006, #17124, #17131, #17144 2024-08-13 16:12:58 -04:00
Jeremy Stretch
fb429cc2ca Changelog for #13459, #16176, #17038, #17064 2024-08-10 11:49:34 -04:00
Jeremy Stretch
55835219c2 Release v4.1-beta1 2024-08-05 13:34:05 -04:00
Arthur Hanson
e6f5ae4c25 Closes #10500: Introduce support for nested modules (#16983)
* 10500 add ModularComponentModel

* 10500 add ModularComponentModel

* 10500 add to forms

* 10500 add to serializer, tables

* 10500 template

* 10500 add docs

* 10500 check recursion

* 10500 fix graphql

* 10500 fix conflicting migration from merge

* 10500 token resolution

* 10500 don't return reverse

* 10500 don't return reverse / optimize

* Add ModuleTypeModuleBaysView

* Fix replication of module bays on new modules

* Clean up tables & templates

* Adjust uniqueness constraints

* Correct URL

* Clean up docs

* Fix up serializers

* 10500 add filterset tests

* 10500 add nested validation to Module

* Misc cleanup

* 10500 ModuleBay recursion Test

* 10500 ModuleBay recursion Test

* 10500 ModuleBay recursion Test

* 10500 ModuleBay recursion Test

* Enable MPTT for module bays

* Fix tests

* Fix validation of module token in component names

* Misc cleanup

* Merge migrations

* Fix table ordering

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-08-05 13:13:59 -04:00
Arthur Hanson
42244463b6 17061 add new models to docs (#17062)
* 17061 add new models to docs

* Reorder; remove CircuitGroupAssignment

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-08-02 10:00:51 -04:00
Jeremy Stretch
352b0d483e Closes #17051: Introduce the ISOLATED_DEPLOYMENT config parameter (#17067)
* Closes #17051: Introduce ISOLATED_DEPLOYMENT config parameter

* Revert omission of external footer links
2024-08-02 08:05:08 -04:00
Jeremy Stretch
c8c6fcaf8a 16927: Move JobRunner from utilities to netbox 2024-08-01 14:18:33 -04:00
Arthur Hanson
a5a9326dc9 17058 RackType name -> model (#17059)
* 17058 RackType name -> model

* 17058 RackType name -> model

* 17058 fix tests

* 17058 fix tests
2024-08-01 09:06:51 -04:00
Jeremy Stretch
7028adbb9a Documentation updates for v4.1 2024-07-31 16:26:21 -04:00
Jeremy Stretch
52e9c9ed32 #16886: Misc cleanup 2024-07-31 16:02:20 -04:00
Jeremy Stretch
698a2f1d98 #16886: Updated documentation for event types 2024-07-31 15:54:31 -04:00
Jeremy Stretch
af47f70b9c #16886: Rename Event to EventType 2024-07-31 15:39:05 -04:00
Jeremy Stretch
4e492f808d #15621: Add feature documentation for user notifications 2024-07-31 15:11:40 -04:00
Alexander Haase
faf67b3437 15692: Introduce background jobs (#16927)
* Introduce reusable BackgroundJob framework

A new abstract class can be used to implement job function classes. It
handles the necessary logic for starting and stopping jobs, including
exception handling and rescheduling of recurring jobs.

This commit also includes the migration of data source jobs to the new
framework.

* Restore using import_string for jobs

Using the 'import_string()' utility from Django allows the job script
class to be simplified, as module imports no longer need to avoid loops.
This should make it easier to queue and maintain jobs.

* Use SyncDataSourceJob for management command

Instead of maintaining two separate job execution logics, the same job
is now used for both background and interactive execution.

* Implement BackgroundJob for running scripts

The independent implementations of interactive and background script
execution have been merged into a single BackgroundJob implementation.

* Fix documentation of model features

* Ensure consitent code style

* Introduce reusable ScheduledJob

A new abstract class can be used to implement job function classes that
specialize in scheduling. These use the same logic as regular
BackgroundJobs, but ensure that they are only scheduled once at any given
time.

* Introduce reusable SystemJob

A new abstract class can be used to implement job function classes that
specialize in system background tasks (e.g. synchronization or
housekeeping). In addition to the features of the BackgroundJob and
ScheduledJob classes, these implement additional logic to not need to be
bound to an existing NetBox object and to setup job schedules on plugin
load instead of an interactive request.

* Add documentation for jobs framework

* Revert "Use SyncDataSourceJob for management"

This partially reverts commit db591d4. The 'run_now' parameter of
'enqueue()' remains, as its being used by following commits.

* Merge enqueued status into JobStatusChoices

* Fix logger for ScriptJob

* Remove job name for scripts

Because scripts are already linked through the Job Instance field, the
name is displayed twice. Removing this reduces redundancy and opens up
the possibility of simplifying the BackgroundJob framework in future
commits.

* Merge ScheduledJob into BackgroundJob

Instead of using separate classes, the logic of ScheduledJob is now
merged into the generic BackgroundJob class. This allows reusing the
same logic, but dynamically deciding whether to enqueue the same job
once or multiple times.

* Add name attribute for BackgroundJob

Instead of defining individual names on enqueue, BackgroundJob classes
can now set a job name in their meta class. This is equivalent to other
Django classes and NetBox scripts.

* Drop enqueue_sync_job() method from DataSource

* Import ScriptJob directly

* Relax requirement for Jobs to reference a specific object

* Rename 'run_now' arg on Job.enqueue() to 'immediate'

* Fix queue lookup in Job enqueue

* Collapse SystemJob into BackgroundJob

* Remove legacy JobResultStatusChoices

ChoiceSet was moved to core in 6a8ffd9.

* Use queue 'low' for system jobs by default

System jobs usually perform low-priority background tasks and therefore
can use a different queue than 'default', which is used for regular jobs
related to specific objects.

* Add test cases for BackgroundJob handling

* Fix enqueue interval jobs

As the job's name is set by enqueue(), it must not be passed in handle()
to avoid duplicate kwargs with the same name.

* Honor schedule_at for job's enqueue_once

Not only can a job's interval change, but so can the time at which it is
scheduled to run. If a specific scheduled time is set, it will also be
checked against the current job schedule. If there are any changes, the
job is rescheduled with the new time.

* Switch BackgroundJob to regular methods

Instead of using a class method for run(), a regular method is used for
this purpose. This gives the possibility to add more convenience methods
in the future, e.g. for interacting with the job object or for logging,
as implemented for scripts.

* Fix background tasks documentation

* Test enqueue in combination with enqueue_once

* Rename background jobs to tasks (to differentiate from RQ)

* Touch up docs

* Revert "Use queue 'low' for system jobs by default"

This reverts commit b17b2050df.

* Remove system background job

This commit reverts commits 4880d81 and 0b15ecf. Using the database
'connection_created' signal for job registration feels a little wrong at
this point, as it would trigger registration very often. However, the
background job framework is prepared for this use case and can be used
by plugins once the auto-registration of jobs is solved.

* Fix runscript management command

Defining names for background jobs was disabled with fb75389. The
preceeding changes in 257976d did forget the management command.

* Use regular imports for ScriptJob

* Rename BackgroundJob to JobRunner

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-07-30 13:31:21 -04:00
Jeremy Stretch
dcb73687c7 Flesh out v4.1 changelog 2024-07-29 20:58:29 -04:00
samk-acw
a3dd5f8e4d Fixes #16782: Add object filtering for custom fields (#16994)
* Fixes #16782: Add object filtering for custom fields

* Add validation for related_object_filter

* Extend documentation & misc cleanup

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-07-29 15:45:48 -04:00
Jeremy Stretch
c0319de7c6 Merge branch 'develop' into feature 2024-07-26 16:39:58 -04:00