Arthur
c2a3275c79
9856 merge feature
2024-03-12 10:12:09 -07:00
Arthur
a36cc0abb6
9856 first filterset
2024-03-12 09:35:53 -07:00
Arthur
4784829477
9856 core test sans DjangoModelType
2024-03-06 15:48:02 -08:00
Arthur
2f719269e8
9856 single item query for schema
2024-03-06 09:53:46 -08:00
Arthur
0312ec3249
Merge branch 'feature' into 9856-strawberry-2
2024-03-06 07:43:16 -08:00
Jeremy Stretch
6f6d483ca5
Merge branch 'feature' into 15277-object-types
2024-03-05 08:52:07 -05:00
Arthur
13bf2c1940
9856 merge feature
2024-03-04 14:18:58 -08:00
Jeremy Stretch
0df68bf291
Rename ContentType proxy model to ObjectType
2024-03-04 08:33:44 -05:00
Jeremy Stretch
c382ba0ae0
Refactor REST API serializers to avoid circular imports
2024-02-27 13:26:43 -05:00
Jeremy Stretch
c146f5e1b5
Replace nested serializers with primary serializers where possible
2024-02-26 16:49:30 -05:00
Jeremy Stretch
d042e6f69d
Closes #15238 : Include description field in brief mode
2024-02-26 11:39:31 -05:00
Arthur
69134dbb50
9856 update types
2024-02-23 14:36:41 -08:00
Jeremy Stretch
3f3bcc5eb5
Closes #15235 : Use primary serializers for REST API "brief" mode ( #15246 )
...
* Use primary serializers for brief mode
* Remove BriefModeMixin
* Correct ModuleBayTest brief_fields (see #15243 )
2024-02-23 14:21:25 -05:00
Jeremy Stretch
3ddacf4b88
Merge branch 'develop' into feature
2024-02-21 16:24:23 -05:00
Jeremy Stretch
5f159795dd
Closes #15042 : Move model registration logic to AppConfigs ( #15203 )
...
* Closes #15042 : Move model registration logic to AppConfigs
* Refactor register_model() to accept multiple models
2024-02-21 14:22:13 -05:00
Arthur
9b9afdcf79
15192 fix config revision if no revisions
2024-02-20 14:28:04 -05:00
Arthur Hanson
af27bf5eff
15094 Add missing gettext to error strings for internationalization ( #15155 )
...
* 15049 add missing gettext to error strings
* 15049 add missing gettext to error strings
* 15094 review change
* 15094 review change
* Formatting cleanup
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2024-02-20 09:44:02 -05:00
Arthur
3c24cf97b6
Merge branch 'feature' into 9856-strawberry-2
2024-02-15 16:04:45 -08:00
Abhimanyu Saharan
2e74952ac6
added missing import #15058
2024-02-16 01:20:54 +05:30
Jeremy Stretch
7abb2b2ab5
Closes #15131 : Dynamic queryset annotations for REST API endpoints ( #15152 )
...
* Introduce RelatedObjectCountField
* Introduce get_annotations_for_serializer() and enable dynamic annotations
* Add RelatedObjectCountFields to serializers; remove static annotations from querysets
* Remove annotations cleanup logic from BriefModeMixin
* Annotate type for RelatedObjectCountField
* Remove redundant field on TagSerializer
* Add missing reverse relationship for power feeds to rack
* Refactor RelatedObjectCountField to take a single relationship name
2024-02-15 14:49:27 -05:00
Arthur
cc5703c9dd
Merge branch 'feature' into 9856-strawberry-2
2024-02-14 10:43:21 -08:00
Jeremy Stretch
b3f25a400b
Closes #15087 : Support for specifying a subset of API serializer fields ( #15122 )
...
* Enable dynamic field inclusion for REST API serializers
* Recurse through nested serializer when resolving prefetches
* Remove obsolete calls to prefetch_related() for API views
* Remove support for brief_prefetch_fields viewset attribute
* Rename query parameter
* Fixes #15133 : Fix FHRP group representation on assignments endpoint under brief mode (#15134 )
* Fixes #15133 : Fix FHRP group representation on assignments endpoint under brief mode
* Update API test
* Restore get_queryset() on BriefModeMixin, minus prefetch logic
* get_prefetches_for_serializer() should reference serializer field source if set
2024-02-14 09:28:37 -05:00
Arthur
a171a02844
Merge branch 'feature' into 9856-strawberry-2
2024-02-12 11:24:10 -08:00
Jeremy Stretch
d63e1dacbf
Closes #14917 : Replace slim-select with tom-select ( #15080 )
...
* Experimenting
* Remove testing resources
* Replace ApiSelect with TomSelect
* Add color support
* Add clear button
* Clear cached options when searching dynamic selects
* Add support for static parameters
* Refactor TomSelect implementation
* Add dynamic parameter support
* Limit number of options to 100
* Remove redundant api_url definitions for user model
* Add support for disabled indicator
* Remove obsolete value-field attr on dynamic select widgets
* Remove obsolete fetch_trigger kwarg from dynamic model choice widgets
* Remove obsolete empty_label kwarg from dynamic model choice widgets
* Add support for API path variables
* Add support for setting a 'null' option
* Annotate depth for recursive hierarchies
* Misc cleanup
* Remove obsolete APISelect code
* Remove slim-select & just-debounce-it
* Clean up type validation
* Closes #14237 : Clear child selections on change to parent selection
* Use an MD icon for the clear button
* Use an MD icon for the clear button
* Explain why noUnusedParameters is disabled
2024-02-08 15:07:04 -05:00
Arthur
cdcaa9055e
9856 core schema
2024-02-06 14:52:29 -08:00
Arthur
663af64ec1
9856 update strawberry types
2024-02-06 13:52:41 -08:00
Jeremy Stretch
74e67afa41
Merge branch 'develop' into feature
2024-02-05 14:38:26 -05:00
Jeremy Stretch
fde9c1664a
Closes #13729 : Censor sensitive data source parameters in change log ( #15032 )
2024-02-05 11:35:12 -05:00
Arthur Hanson
93b77cb4f0
14729 Move background tasks list from admin UI to Primary UI ( #14825 )
...
* 14729 rq table
* 14729 rq table
* 14729 rq table
* 14729 rq table
* 14729 jobs table
* 14729 jobs detail
* 14729 formatting fixup
* 14729 formatting fixup
* 14729 format datetime in tables
* 14729 display job id
* Update templates for #12128
* 14729 review fixes
* 14729 review fixes
* 14729 review fixes
* 14729 review fixes
* 14729 merge feature
* 14729 add modal
* 14729 review changes
* 14729 url fixup
* 14729 no queue param on task
* 14729 queue pages
* 14729 job status handling
* 14729 worker list
* 14729 exec detail and common view
* 14729 worker detail
* 14729 background task delete
* 14729 background task delete
* 14729 background task requeue
* 14729 background task enqueue stop
* 14729 review changes
* 14729 remove rq from admin
* 14729 add tests
* 14729 add tests
* Clean up HTML templates
* Clean up tables
* Clean up views
* Fix tests
* Clean up tests
* Move navigation menu entry for background tasks
* Remove custom deletion form
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2024-02-01 11:44:07 -05:00
Jeremy Stretch
b554e70eda
Squash migrations
2024-01-25 12:35:04 -05:00
teapot
441e24bca7
Fixes #14934 : Correct typo in label
2024-01-25 12:20:21 -05:00
Jeremy Stretch
cd8e977418
Fixes #14879 : Include custom fields in REST API representation of data sources
2024-01-22 15:54:26 -05:00
Jeremy Stretch
222388b988
Revert "Closes #13647 : Squash all migrations prior to v3.7 ( #14853 )"
...
This reverts commit 874685fd6f
.
2024-01-22 13:15:43 -05:00
Jeremy Stretch
1651a307c8
#14872 : Permit makemigrations --check without setting DEVELOPER=True
2024-01-19 16:08:58 -05:00
Jeremy Stretch
da085e60c2
Closes #14740 : Remove BootstrapMixin ( #14841 )
...
* Introduce custom form widget templates to apply CSS classes
* Apply both mandatory and optional CSS classes to form widgets
* Omit required & placeholder attrs
* Move annotation of field validation failures to CSS
* Remove BootstrapMixin class
* Remove obsolete ComponentTemplateImportForm class
* Remove obsolete custom forms for login & password change
* Clean up obsolete accommodations for 'required' widget attr
2024-01-19 14:02:33 -05:00
Jeremy Stretch
874685fd6f
Closes #13647 : Squash all migrations prior to v3.7 ( #14853 )
...
* Regenerate pre-v3.7 migrations
* Annotate replaced migrations
* Rename dependencies; remove FeatureQuery references
* Add missed replacement
2024-01-19 13:55:22 -05:00
Arthur Hanson
ef5e10d360
14728 Move installed plugins list from admin UI to NetBox UI ( #14768 )
...
* 14728 move plugins view from admin
* 14728 move plugins view from admin
* 14728 remove plugins view from admin
* Update template for #12128
* 14728 review fixes
* 14728 review fixes
* 14728 review fixes
* 14728 review fixes
* 14728 configure table
* Clean up table columns
* Fix app config lookup for plugins referenced by dotted path
* Move template; fix table display
* Fix user table configuration
* Remove nonfunctional quick search
* Limit PluginListView to staff users
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2024-01-19 11:27:15 -05:00
Arthur Hanson
58227293f3
14637 update to Django 5 ( #14675 )
...
* 14637 update to Django 5
* 14637 fix tests
* 14637 remove extra assignment
* Syntax tweak
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2024-01-05 13:30:04 -05:00
Jeremy Stretch
d5c1cb0ef6
Merge branch 'develop' into feature
2023-12-28 14:20:04 -05:00
Jeremy Stretch
3ef2db81e8
Closes #14629 : Add filter tests for all q and description filters
2023-12-28 13:53:16 -05:00
Jeremy Stretch
3bacee16bd
Closes #14631 : Ensure description filters are available on all relevant models
2023-12-28 13:53:16 -05:00
Jeremy Stretch
1f2f0860fe
Merge branch 'develop' into feature
2023-12-27 16:34:38 -05:00
Jeremy Stretch
0613e8e95c
Fixes #14613 : Fix display of current configuration parameters
2023-12-27 15:32:11 -05:00
Jeremy Stretch
a67236fc3c
Fixes #13812 : Record data source sync failure when run via syncdatasource command
2023-12-27 12:51:03 -05:00
Jeremy Stretch
58f925c261
Closes #14503 : Include additional display attributes for search indexers
2023-12-21 14:36:42 -05:00
Jeremy Stretch
b532435a6d
Closes #14436 : Add indexes for all GenericForeignKey fields ( #14463 )
...
* Closes #14436 : Add PostgreSQL indexes for all GenericForeignKeys
* Add note about GFK indexes to developer docs
2023-12-07 14:02:51 -05:00
Jeremy Stretch
2d1f882724
Closes #14458 : Remove the clearcache management command
2023-12-07 13:45:50 -05:00
Jeremy Stretch
42ab8ee0a2
#14153 : Import proxy ContentType for nbshell
2023-12-01 11:50:48 -05:00
Jeremy Stretch
0c9919a5e8
#13334 : Capture exception class when recording job error
2023-12-01 10:54:46 -05:00
Jeremy Stretch
4fc0a999ea
Closes #14365 : Introduce job_start and job_end signals ( #14393 )
...
* Introduce job_start and job_end signals, and receivers to process event rules
* Complete signals documentation
2023-11-30 19:36:41 -05:00