Skip to content

Commit 878a16c

Browse files
committed
Merge branch 'main' into feature
2 parents 4e8f78a + 436322d commit 878a16c

33 files changed

+1246
-370
lines changed

.github/ISSUE_TEMPLATE/01-feature_request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: ✨ Feature Request
33
description: Propose a new feature or enhancement
4-
labels: ["type: feature", "status: needs triage"]
4+
labels: ["app: custom objects", "type: feature", "status: needs triage"]
55
body:
66
- type: input
77
attributes:

.github/ISSUE_TEMPLATE/02-bug_report.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: 🐛 Bug Report
33
description: Report a reproducible bug in the current stable release
4-
labels: ["type: bug", "status: needs triage"]
4+
labels: ["app: custom objects", "type: bug", "status: needs triage"]
55
body:
66
- type: input
77
attributes:

.github/ISSUE_TEMPLATE/03-documentation_change.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: 📖 Documentation Change
33
description: Suggest an addition or modification to the plugin's documentation
4-
labels: ["type: documentation", "status: needs triage"]
4+
labels: ["app: custom objects", "type: documentation", "status: needs triage"]
55
body:
66
- type: dropdown
77
attributes:

.github/ISSUE_TEMPLATE/04-housekeeping.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: 🏡 Housekeeping
33
description: An internal change pertaining to the codebase itself
4-
labels: ["type: housekeeping"]
4+
labels: ["app: custom objects", "type: housekeeping"]
55
body:
66
- type: textarea
77
attributes:

.github/workflows/lint-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
with:
7070
repository: "netbox-community/netbox"
7171
path: netbox
72-
ref: feature
72+
ref: main
7373
- name: Install netbox-custom-objects
7474
working-directory: netbox-custom-objects
7575
run: |

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ You can find further documentation [here](https://github.com/netboxlabs/netbox-c
66

77
## Requirements
88

9-
* NetBox v4.4-beta or later
9+
* NetBox v4.4.0 or later
10+
* (Optional) NetBox Branching 0.7.1 or later
1011

1112
## Installation
1213

@@ -36,6 +37,20 @@ $ ./manage.py migrate
3637
sudo systemctl restart netbox netbox-rq
3738
```
3839

40+
> [!NOTE]
41+
> If you are using NetBox Custom Objects with NetBox Branching, you need to insert the following into your `configuration.py`. See the docs for a full description of how NetBox Custom Objects currently works with NetBox Branching.
42+
43+
```
44+
PLUGINS_CONFIG = {
45+
'netbox_branching': {
46+
'exempt_models': [
47+
'netbox_custom_objects.customobjecttype',
48+
'netbox_custom_objects.customobjecttypefield',
49+
],
50+
},
51+
}
52+
```
53+
3954
## Known Limitations
4055

41-
The Public Preview of NetBox Custom Objects is under active development as we proceed towards the General Availability release around NetBox 4.4. The best place to look for the latest list of known limitations is the [issues](https://github.com/netboxlabs/netbox-custom-objects/issues) list on the GitHub repository.
56+
NetBox Custom Objects is now Generally Available which means you can use it in production and migrations to future versions will work. There are many upcoming features including GraphQL support - the best place to see what's on the way is the [issues](https://github.com/netboxlabs/netbox-custom-objects/issues) list on the GitHub repository.

docs/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ The response will include the created object with its assigned ID and additional
168168

169169
### API output in the browser
170170

171-
As with other NetBox objects, you can also view the API output for given Custom Objects by prepending `api/` to the URL, e.g. `api/plugins/custom-objects/dhcp_scope/`
171+
As with other NetBox objects, you can also view the API output for given Custom Objects by prepending `api/` to the URL, e.g. `api/plugins/custom-objects/dhcp_scopes/`
172172

173173
```
174174
HTTP 200 OK

docs/branching.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Using NetBox Custom Objects with NetBox Branching
2+
3+
As of version 0.4.0 Custom Objects is _compatible_ with NetBox Branching, but not fully supported. This means that users can safely use both plugins together, but there are some caveats to be aware of. See below to learn how each of the Custom Objects models interacts with NetBox Branching.
4+
5+
> [!NOTE]
6+
> We are working towards full support for Custom Objects on branches. Keep an eye on the GitHub issues for updates ahead of future releases.
7+
8+
> [!TIP]
9+
> If you have any questions the best place to start is on the GitHub [discussions](https://github.com/netboxlabs/netbox-custom-objects/discussions). If you are a NetBox Labs customer, you can also contact support.
10+
11+
## Custom Object Types and Custom Object Type Fields
12+
13+
Custom Object Types and Custom Object Type fields can be created, updated and deleted on branches, however the changes made on branches will be applied in main. This allows Custom Objects and Branching to be used safely alongside each other, but users should be aware of what this means.
14+
15+
- When you are in an activated branch any creates, updates and deletes you perform on Custom Object Types and Custom Object Type Fields will not show up in the Diff or Changes Ahead views
16+
- Although you're in an activated branch, these changes will be made directly to main
17+
- Typically it will be NetBox admins who are altering Custom Object Types and Custom Object Type Fields - we recommend that you experiment in your staging instance until you are satisfied with the modelling and then move them into prod
18+
19+
## Custom Objects
20+
21+
Changes to Custom Objects on branches are disallowed.
22+
23+
- When in an activated branch, users will still be able to see the available Custom Object Types and any Custom Objects that were brought into the branch upon branch creation, but will not be able to interact with them to affect changes on the branch.
24+
- This approach was chosen to make sure that users can safely use both Custom Objects and Branching together, while we are working on fuller support.

docs/changelog.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Changelog
2+
3+
## 0.4.1
4+
---
5+
6+
### Bug Fixes
7+
8+
- [#237](https://github.com/netboxlabs/netbox-custom-objects/issues/237) - Incorrect validation error when adding multiple fields pointing to the same Custom Object Type
9+
- [#251](https://github.com/netboxlabs/netbox-custom-objects/issues/251) - Bulk import broken due to incorrect slug handling
10+
- [#273](https://github.com/netboxlabs/netbox-custom-objects/issues/273) - `group_name` missing from Custom Object Type serializer
11+
12+
13+
## 0.4.0
14+
---
15+
16+
### New Features
17+
18+
**Limited Branching Compatibility for Custom Objects**
19+
20+
Custom Objects now has limited compatibility with NetBox Branching. Please see the documentation for more details.
21+
22+
### Enhancements
23+
24+
- [#37](https://github.com/netboxlabs/netbox-custom-objects/issues/37) - Limited Branching compatibility for Custom Objects
25+
- [#42](https://github.com/netboxlabs/netbox-custom-objects/issues/42) - Populate default values for Multi-Object fields
26+
- [#87](https://github.com/netboxlabs/netbox-custom-objects/issues/87) - Make Custom Object "name" clickable
27+
- [#150](https://github.com/netboxlabs/netbox-custom-objects/issues/150) - Cannot import created CustomObject (Documentation)
28+
29+
### Bug Fixes
30+
31+
- [#70](https://github.com/netboxlabs/netbox-custom-objects/issues/70) - Incorrect validation message on integer field min/max defaults
32+
- [#104](https://github.com/netboxlabs/netbox-custom-objects/issues/104) - Bulk edit not possible on fields of type `object`
33+
- [#105](https://github.com/netboxlabs/netbox-custom-objects/issues/105) - Bulk edit not possible on fields of type `multiobject`
34+
- [#172](https://github.com/netboxlabs/netbox-custom-objects/issues/172) - Postgres errors on startup
35+
- [#189](https://github.com/netboxlabs/netbox-custom-objects/issues/189) - Exceptions when creating Custom Objects
36+
- [#195](https://github.com/netboxlabs/netbox-custom-objects/issues/195) - RecursionError in netbox_custom_objects plugin due to circular dependencies in CustomObjectType Fields
37+
- [#210](https://github.com/netboxlabs/netbox-custom-objects/issues/210) - Custom Objects plugin visible when logged out
38+
- [#212](https://github.com/netboxlabs/netbox-custom-objects/issues/212) - Quick Search not working

docs/configuration.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Configuration Parameters
2+
3+
## `max_custom_object_types`
4+
5+
Default: 50
6+
7+
The maximum number of Custom Object Types that may be created.

0 commit comments

Comments
 (0)