Skip to content

Commit 3f345cd

Browse files
Merge pull request netbox-community#16247 from netbox-community/develop
Release v4.0.3
2 parents cca1b0a + 99b8f58 commit 3f345cd

File tree

79 files changed

+49461
-4756
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+49461
-4756
lines changed

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ body:
2626
attributes:
2727
label: NetBox Version
2828
description: What version of NetBox are you currently running?
29-
placeholder: v4.0.2
29+
placeholder: v4.0.3
3030
validations:
3131
required: true
3232
- type: dropdown

.github/ISSUE_TEMPLATE/feature_request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ body:
1414
attributes:
1515
label: NetBox version
1616
description: What version of NetBox are you currently running?
17-
placeholder: v4.0.2
17+
placeholder: v4.0.3
1818
validations:
1919
required: true
2020
- type: dropdown
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# close-stale-issues (https://github.com/marketplace/actions/close-stale-issues)
2+
name: Close incomplete issues
3+
4+
on:
5+
schedule:
6+
- cron: '15 4 * * *'
7+
workflow_dispatch:
8+
9+
permissions:
10+
actions: write
11+
issues: write
12+
13+
jobs:
14+
stale:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/stale@v9
18+
with:
19+
close-issue-message: >
20+
This issue is being closed as no further information has been provided. If
21+
you would like to revisit this topic, please first modify your original post
22+
to include all the requested detail, and then ask that the issue be reopened.
23+
days-before-stale: 7
24+
days-before-close: 7
25+
only-issue-labels: 'status: revisions needed'
26+
operations-per-run: 100
27+
remove-stale-when-updated: false
28+
stale-issue-label: 'pending closure'
29+
stale-issue-message: >
30+
This is a reminder that additional information is needed in order to further
31+
triage this issue. If the requested details are not provided, the issue will
32+
soon be closed automatically.

.github/workflows/close-stale-issues.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,19 @@ jobs:
1717
steps:
1818
- uses: actions/stale@v9
1919
with:
20+
# General parameters
21+
operations-per-run: 100
22+
remove-stale-when-updated: false
23+
24+
# Issue parameters
2025
close-issue-message: >
2126
This issue has been automatically closed due to lack of activity. In an
2227
effort to reduce noise, please do not comment any further. Note that the
2328
core maintainers may elect to reopen this issue at a later date if deemed
2429
necessary.
25-
close-pr-message: >
26-
This PR has been automatically closed due to lack of activity.
27-
days-before-stale: 90
28-
days-before-close: 30
30+
days-before-issue-stale: 90
31+
days-before-issue-close: 30
2932
exempt-issue-labels: 'status: accepted,status: blocked,status: needs milestone'
30-
operations-per-run: 100
31-
remove-stale-when-updated: false
3233
stale-issue-label: 'pending closure'
3334
stale-issue-message: >
3435
This issue has been automatically marked as stale because it has not had
@@ -38,6 +39,12 @@ jobs:
3839
process by "bumping" the issue; doing so will result in its immediate closure
3940
and you may be barred from participating in any future discussions. Please see
4041
our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
42+
43+
# Pull request parameters
44+
close-pr-message: >
45+
This PR has been automatically closed due to lack of activity.
46+
days-before-pr-stale: 15
47+
days-before-pr-close: 15
4148
stale-pr-label: 'pending closure'
4249
stale-pr-message: >
4350
This PR has been automatically marked as stale because it has not had

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ yarn-error.log*
1717
/venv/
1818
/*.sh
1919
local_requirements.txt
20+
local_settings.py
2021
!upgrade.sh
2122
fabfile.py
2223
gunicorn.py

README.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<a href="https://github.com/netbox-community/netbox/blob/master/LICENSE.txt"><img src="https://img.shields.io/badge/license-Apache_2.0-blue.svg" alt="License" /></a>
66
<a href="https://github.com/netbox-community/netbox/graphs/contributors"><img src="https://img.shields.io/github/contributors/netbox-community/netbox?color=blue" alt="Contributors" /></a>
77
<a href="https://github.com/netbox-community/netbox/stargazers"><img src="https://img.shields.io/github/stars/netbox-community/netbox?style=flat" alt="GitHub stars" /></a>
8-
<a href="https://explore.transifex.com/netbox-community/netbox/"><img src="https://img.shields.io/badge/languages-7-blue" alt="Languages supported" /></a>
8+
<a href="https://explore.transifex.com/netbox-community/netbox/"><img src="https://img.shields.io/badge/languages-10-blue" alt="Languages supported" /></a>
99
<a href="https://github.com/netbox-community/netbox/actions/workflows/ci.yml"><img src="https://github.com/netbox-community/netbox/workflows/CI/badge.svg?branch=master" alt="CI status" /></a>
1010
<p></p>
1111
</div>
@@ -95,16 +95,6 @@ NetBox automatically logs the creation, modification, and deletion of all manage
9595
* Contributions from the community are encouraged and appreciated! Check out our [contributing guide](CONTRIBUTING.md) to get started.
9696
* [Share your idea](https://plugin-ideas.netbox.dev/) for a new plugin, or [learn how to build one](https://github.com/netbox-community/netbox-plugin-tutorial) yourself!
9797

98-
## Project Stats
99-
100-
<p align="center">
101-
<a href="https://github.com/netbox-community/netbox/commits"><img src="https://images.repography.com/29023055/netbox-community/netbox/recent-activity/whQtEr_TGD9PhW1BPlhlEQ5jnrgQ0KJpm-LlGtpoGO0/3Kx_iWUSBRJ5-AI4QwJEJWrUDEz3KrX2lvh8aYE0WXY_timeline.svg" alt="Timeline graph"></a>
102-
<a href="https://github.com/netbox-community/netbox/issues"><img src="https://images.repography.com/29023055/netbox-community/netbox/recent-activity/whQtEr_TGD9PhW1BPlhlEQ5jnrgQ0KJpm-LlGtpoGO0/3Kx_iWUSBRJ5-AI4QwJEJWrUDEz3KrX2lvh8aYE0WXY_issues.svg" alt="Issues graph"></a>
103-
<a href="https://github.com/netbox-community/netbox/pulls"><img src="https://images.repography.com/29023055/netbox-community/netbox/recent-activity/whQtEr_TGD9PhW1BPlhlEQ5jnrgQ0KJpm-LlGtpoGO0/3Kx_iWUSBRJ5-AI4QwJEJWrUDEz3KrX2lvh8aYE0WXY_prs.svg" alt="Pull requests graph"></a>
104-
<a href="https://github.com/netbox-community/netbox/graphs/contributors"><img src="https://images.repography.com/29023055/netbox-community/netbox/recent-activity/whQtEr_TGD9PhW1BPlhlEQ5jnrgQ0KJpm-LlGtpoGO0/3Kx_iWUSBRJ5-AI4QwJEJWrUDEz3KrX2lvh8aYE0WXY_users.svg" alt="Top contributors"></a>
105-
<br />Stats via <a href="https://repography.com">Repography</a>
106-
</p>
107-
10898
## Screenshots
10999

110100
<p align="center">

contrib/generated_schema.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@
179179
"usb-micro-ab",
180180
"usb-3-b",
181181
"usb-3-micro-b",
182+
"molex-micro-fit-1x2",
183+
"molex-micro-fit-2x2",
184+
"molex-micro-fit-2x4",
182185
"dc-terminal",
183186
"saf-d-grid",
184187
"neutrik-powercon-20",
@@ -281,6 +284,9 @@
281284
"usb-a",
282285
"usb-micro-b",
283286
"usb-c",
287+
"molex-micro-fit-1x2",
288+
"molex-micro-fit-2x2",
289+
"molex-micro-fit-2x4",
284290
"dc-terminal",
285291
"hdot-cx",
286292
"saf-d-grid",
@@ -375,6 +381,8 @@
375381
"gsm",
376382
"cdma",
377383
"lte",
384+
"4g",
385+
"5g",
378386
"sonet-oc3",
379387
"sonet-oc12",
380388
"sonet-oc48",
@@ -408,12 +416,15 @@
408416
"e3",
409417
"xdsl",
410418
"docsis",
419+
"bpon",
420+
"epon",
421+
"10g-epon",
411422
"gpon",
412423
"xg-pon",
413424
"xgs-pon",
414425
"ng-pon2",
415-
"epon",
416-
"10g-epon",
426+
"25g-pon",
427+
"50g-pon",
417428
"cisco-stackwise",
418429
"cisco-stackwise-plus",
419430
"cisco-flexstack",

docs/_theme/main.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
{% block site_meta %}
44
{{ super() }}
5-
{# Disable search indexing unless we're building for ReadTheDocs #}
6-
{% if not config.extra.readthedocs %}
5+
{# Disable search indexing unless we're building for public consumption #}
6+
{% if not config.extra.build_public %}
77
<meta name="robots" content="noindex">
88
{% endif %}
99
{% endblock %}

docs/configuration/required-parameters.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,25 @@ REDIS = {
9494
}
9595
```
9696

97-
!!! note
98-
If you are upgrading from a NetBox release older than v2.7.0, please note that the Redis connection configuration
99-
settings have changed. Manual modification to bring the `REDIS` section inline with the above specification is
100-
necessary
101-
10297
!!! warning
10398
It is highly recommended to keep the task and cache databases separate. Using the same database number on the
10499
same Redis instance for both may result in queued background tasks being lost during cache flushing events.
105100

101+
### UNIX Socket Support
102+
103+
Redis may alternatively be configured by specifying a complete URL instead of individual components. This approach supports the use of a UNIX socket connection. For example:
104+
105+
```python
106+
REDIS = {
107+
'tasks': {
108+
'URL': 'unix:///run/redis-netbox/redis.sock?db=0'
109+
},
110+
'caching': {
111+
'URL': 'unix:///run/redis-netbox/redis.sock?db=1'
112+
},
113+
}
114+
```
115+
106116
### Using Redis Sentinel
107117

108118
If you are using [Redis Sentinel](https://redis.io/topics/sentinel) for high-availability purposes, there is minimal

docs/release-notes/version-4.0.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,37 @@
11
# NetBox v4.0
22

3+
## v4.0.3 (2024-05-22)
4+
5+
### Enhancements
6+
7+
* [#12984](https://github.com/netbox-community/netbox/issues/12984) - Add Molex Micro-Fit power port & outlet types
8+
* [#13764](https://github.com/netbox-community/netbox/issues/13764) - Enable contact assignments for aggregates, prefixes, IP ranges, and IP addresses
9+
* [#14639](https://github.com/netbox-community/netbox/issues/14639) - Add Ukrainian translation support
10+
* [#14653](https://github.com/netbox-community/netbox/issues/14653) - Add an inventory items table column for all device components
11+
* [#14686](https://github.com/netbox-community/netbox/issues/14686) - Add German translation support
12+
* [#14855](https://github.com/netbox-community/netbox/issues/14855) - Add Chinese translation support
13+
* [#14948](https://github.com/netbox-community/netbox/issues/14948) - Introduce the `has_virtual_device_context` filter for devices
14+
* [#15353](https://github.com/netbox-community/netbox/issues/15353) - Improve error reporting when custom scripts fail to load
15+
* [#15496](https://github.com/netbox-community/netbox/issues/15496) - Implement dedicated views for management of circuit terminations
16+
* [#15603](https://github.com/netbox-community/netbox/issues/15603) - Add 4G & 5G cellular interface types
17+
* [#15962](https://github.com/netbox-community/netbox/issues/15962) - Enable UNIX socket connections for Redis
18+
19+
### Bug Fixes
20+
21+
* [#13293](https://github.com/netbox-community/netbox/issues/13293) - Limit interface selector for IP address to current device/VM
22+
* [#14953](https://github.com/netbox-community/netbox/issues/14953) - Ensure annotated count fields are present in REST API response data when creating new objects
23+
* [#14982](https://github.com/netbox-community/netbox/issues/14982) - Fix OpenAPI schema definition for SerializedPKRelatedFields
24+
* [#15082](https://github.com/netbox-community/netbox/issues/15082) - Strip whitespace from choice values & labels when creating a custom field choice set
25+
* [#16138](https://github.com/netbox-community/netbox/issues/16138) - Fix support for referencing users & groups in object permissions
26+
* [#16145](https://github.com/netbox-community/netbox/issues/16145) - Restore ability to reference custom scripts via module & name in REST API
27+
* [#16164](https://github.com/netbox-community/netbox/issues/16164) - Correct display of selected values in UI when filtering object list by a null value
28+
* [#16173](https://github.com/netbox-community/netbox/issues/16173) - Fix TypeError exception when viewing object list with no pagination preference defined
29+
* [#16228](https://github.com/netbox-community/netbox/issues/16228) - Fix permissions enforcement for GraphQL queries of users & groups
30+
* [#16232](https://github.com/netbox-community/netbox/issues/16232) - Preserve bulk action checkboxes on dynamic tables when using pagination
31+
* [#16240](https://github.com/netbox-community/netbox/issues/16240) - Fixed NoReverseMatch exception when adding circuit terminations to an object counts dashboard widget
32+
33+
---
34+
335
## v4.0.2 (2024-05-14)
436

537
!!! warning "Important"

0 commit comments

Comments
 (0)