1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

189 Commits

Author SHA1 Message Date
94dd07e1e6 #10560: Build search index as part of migration 2022-11-15 10:37:16 -05:00
a5308ea28e Closes #10851: New staging mechanism (#10890)
* WIP

* Convert checkout() context manager to a class

* Misc cleanup

* Drop unique constraint from Change model

* Extend staging tests

* Misc cleanup

* Incorporate M2M changes

* Don't cancel wipe out creation records when an object is deleted

* Rename Change to StagedChange

* Add documentation for change staging
2022-11-14 13:55:03 -05:00
484efdaf75 Closes #9623: Implement saved filters (#10801)
* Initial work on saved filters

* Return only enabled/shared filters

* Add tests

* Clean up filtering of usable SavedFilters
2022-11-02 12:27:53 -04:00
16919cc1d9 Closes #10761: Enable associating an export template with multiple object types 2022-10-26 13:30:45 -04:00
9e8234bb45 Closes #8274: Enable associating a custom link with multiple object types 2022-10-26 11:39:26 -04:00
9628dead07 Closes #10560: New global search (#10676)
* Initial work on new search backend

* Clean up search backends

* Return only the most relevant result per object

* Clear any pre-existing cached entries on cache()

* #6003: Implement global search functionality for custom field values

* Tweak field weights & document guidance

* Extend search() to accept a lookup type

* Move get_registry() out of SearchBackend

* Enforce object permissions when returning search results

* Add indexers for remaining models

* Avoid calling remove() on non-cacheable objects

* Use new search backend by default

* Extend search backend to filter by object type

* Clean up search view form

* Enable specifying lookup logic

* Add indexes for value field

* Remove object type selector from search bar

* Introduce SearchTable and enable HTMX for results

* Enable pagination

* Remove legacy search backend

* Cleanup

* Use a UUID for CachedValue primary key

* Refactoring search methods

* Define max search results limit

* Extend reindex command to support specifying particular models

* Add clear() and size to SearchBackend

* Optimize bulk caching performance

* Highlight matched portion of field value

* Performance improvements for reindexing

* Started on search tests

* Cleanup & docs

* Documentation updates

* Clean up SearchIndex

* Flatten search registry to register by app_label.model_name

* Clean up search backend classes

* Clean up RestrictedGenericForeignKey and RestrictedPrefetch

* Resolve migrations conflict
2022-10-21 13:16:16 -04:00
1d9808a92a Added scheduled_time field to JobResult model 2022-10-16 13:42:28 +02:00
679a9e839b Work on job scheduling:
* Added JobResult form filtersets
* Change housekeeping cleanup delete from `_raw_delete` to `delete` to make sure scheduled tasks are cancelled
* Change default sort of JobResult table to -created
* Added `delete` override to `JobResult` to remove scheduled tasks from RQ when a JobResult is deleted
* Updated js/css dist files. Will need to be redone when develop is merged to feature.
2022-10-09 21:05:31 +02:00
af8bb0c4b9 10348 add decimal custom field (#10422)
* 10348 add decimal custom field

* 10348 fix tests

* 10348 add documentation

* Rearrange custom fields to be ordered consistently

* Rename number_field to integer_field for clarity

* Clean up validation logic

* Apply suggested changes from PR

* Store decimal custom field values natively

* Fix filter test

* Update custom field model migrations to use new encoder

Co-authored-by: jeremystretch <jstretch@ns1.com>
2022-09-30 16:03:24 -04:00
f51415cf2c Replace unique_together with UniqueConstraints 2022-09-27 15:35:24 -04:00
c5fb7b72f0 Closes #9391: Remove 500-character limit for custom link text & URL fields 2022-07-28 14:36:20 -04:00
868e94fb73 Release v3.3-beta1 2022-07-14 12:04:53 -04:00
2264937f81 Consolidate custom field migrations 2022-07-11 17:11:58 -04:00
379880cd84 Closes #9582: Enable assigning config contexts based on device location 2022-06-22 16:10:48 -04:00
20eaa7d069 #9166 - Add UI Visibility setting for custom fields 2022-05-24 10:12:32 +02:00
17df8a5c43 Closes #8495: Enable custom field grouping 2022-04-15 14:45:28 -04:00
c1b7f09530 Ensure legacy data checks run before other migrations 2022-04-05 15:56:21 -04:00
1d55c04c21 Closes #9006: Enable custom fields, custom links, and tags for journal entries 2022-03-31 11:40:02 -04:00
272d6e7437 Closes #8463: Change the created field on all change-logged models from date to datetime 2022-02-08 14:41:44 -05:00
7611cfddae Tweak related names in old migrations to avoid creating new ones 2022-02-03 12:58:54 -05:00
b797b08bcf Remove BigIDModel 2022-01-26 09:02:04 -05:00
e4abbfb2c6 Closes #8454: Set DEFAULT_AUTO_FIELD to BigAutoField 2022-01-25 17:37:06 -05:00
571e9801f3 Closes #8195: Ensure all GenericForeignKey ID fields employ PositiveBigIntegerField 2022-01-24 16:02:54 -05:00
72e17914e2 Closes #8296: Allow disabling custom links 2022-01-10 12:11:37 -05:00
954d81147e Reindex migrations 2022-01-04 17:07:37 -05:00
fa1e28e860 Initial work on #7006 2022-01-04 16:59:52 -05:00
0978777eec Merge v3.1.4 2022-01-03 11:20:58 -05:00
05d4176d34 Fixes #8201: Custom integer fields should allow negative integers as minimum/maximum values 2022-01-03 10:07:19 -05:00
77dd684916 Closes #7784: Support cluster type assignment for config contexts 2021-12-23 14:20:03 -05:00
de698154cd Fixes #8030: Validate custom field names 2021-12-09 15:19:19 -05:00
424ac29131 Closes #7812: Enable change logging for image attachments 2021-11-17 11:52:50 -05:00
82243732a1 Initial work on #5883 2021-10-25 16:10:50 -04:00
78ecc8673c Add conditions for webhooks 2021-10-22 17:15:08 -04:00
69f083428d Fixes #7149: Delete all changelog records referencing the old secrets app 2021-09-02 15:27:05 -04:00
42b2e2717d Standardize squashed migration names 2021-07-09 13:23:43 -04:00
3387282de4 Resolve migration dependencies 2021-07-09 11:51:42 -04:00
c82470e4df Add re-initialized migrations for v2.11.0 2021-07-09 11:11:21 -04:00
4383425060 Delete pre-2.11.0 migrations 2021-07-09 10:57:07 -04:00
4e0b795a3c Add UI views for webhooks 2021-06-23 21:30:23 -04:00
10cbbee947 Add UI views for export templates 2021-06-23 20:56:50 -04:00
276ded0119 Add UI views for custom links 2021-06-23 17:10:04 -04:00
b017927c69 Add UI views for custom fields 2021-06-23 17:10:04 -04:00
744792452f Closes: #5278 - Remove Secrets (#6397)
* Remove Secrets

* #5278: Remove secrets javascript from netbox core

* Remove userkey references

* Fix PEP8

* Remove a few more instances of secrets.  Rebundle

* Remove Secrets

Co-authored-by: checktheroads <matt@allroads.io>
2021-05-17 16:26:02 -04:00
5b09e4ac0c Add migration for CustomLink button_class default 2021-04-27 13:25:57 -04:00
a296a9e109 Closes #6150: Enable change logging for journal entries 2021-04-13 10:53:55 -04:00
0eb9f41470 Changelog & docs for #5380 2021-03-30 18:59:47 -04:00
9ede726eea Add boolean as_attachment to Export template 2021-03-30 22:27:26 +02:00
cd629fc737 Closes #4833: Allow assigning config contexts by device type 2021-03-29 15:40:09 -04:00
82fbd975f1 Add kind field to JournalEntry 2021-03-17 12:51:39 -04:00
8be4fbbce3 Add JournalEntry list view w/filtering 2021-03-16 15:57:23 -04:00