From 0c1594b8f8fb355f793c6709f583b27bba9e042d Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Tue, 15 Aug 2017 15:53:10 -0400 Subject: [PATCH 01/23] Post-release version bump --- netbox/netbox/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/netbox/settings.py b/netbox/netbox/settings.py index 1c3f3688b..eff6ac0bd 100644 --- a/netbox/netbox/settings.py +++ b/netbox/netbox/settings.py @@ -13,7 +13,7 @@ except ImportError: ) -VERSION = '2.1.3' +VERSION = '2.1.4-dev' # Import required configuration parameters ALLOWED_HOSTS = DATABASE = SECRET_KEY = None From 416aeb40724a5777500c6f8a3bfe1d07f1f9cb80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Mudrini=C4=87?= Date: Tue, 15 Aug 2017 23:39:10 +0200 Subject: [PATCH 02/23] docs: web-server link to new ssl tutorials for 16.04 --- docs/installation/web-server.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/installation/web-server.md b/docs/installation/web-server.md index 0acedccc6..f9a304ff5 100644 --- a/docs/installation/web-server.md +++ b/docs/installation/web-server.md @@ -51,7 +51,7 @@ Restart the nginx service to use the new configuration. # service nginx restart ``` -To enable SSL, consider this guide on [securing nginx with Let's Encrypt](https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-14-04). +To enable SSL, consider this guide on [securing nginx with Let's Encrypt](https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04). ## Option B: Apache @@ -96,7 +96,7 @@ Save the contents of the above example in `/etc/apache2/sites-available/netbox.c # service apache2 restart ``` -To enable SSL, consider this guide on [securing Apache with Let's Encrypt](https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-14-04). +To enable SSL, consider this guide on [securing Apache with Let's Encrypt](https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-16-04). # gunicorn Installation From 70a6b171d06b8c2fe417d7e6499bcc14d14406ef Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 16 Aug 2017 11:20:52 -0400 Subject: [PATCH 03/23] Fixes #1429: Fixed uptime formatting on device status page --- netbox/templates/dcim/device_status.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/netbox/templates/dcim/device_status.html b/netbox/templates/dcim/device_status.html index 4d3c9ba78..7c62b3971 100644 --- a/netbox/templates/dcim/device_status.html +++ b/netbox/templates/dcim/device_status.html @@ -80,13 +80,19 @@ $(document).ready(function() { $('#model').html(json['get_facts']['model']); $('#serial_number').html(json['get_facts']['serial_number']); $('#os_version').html(json['get_facts']['os_version']); - $('#uptime').html(json['get_facts']['uptime']); + // Calculate uptime + var uptime = json['get_facts']['uptime']; + console.log(uptime); + var uptime_days = Math.floor(uptime / 86400); + var uptime_hours = Math.floor(uptime % 86400 / 3600); + var uptime_minutes = Math.floor(uptime % 3600 / 60); + $('#uptime').html(uptime_days + "d " + uptime_hours + "h " + uptime_minutes + "m"); $.each(json['get_environment']['cpu'], function(name, obj) { var row="" + name + "" + obj['%usage'] + "%"; $("#cpu").after(row) }); - $('#memory').after("Used" + json['get_environment']['memory']['used_ram'] + "MB"); - $('#memory').after("Available" + json['get_environment']['memory']['available_ram'] + "MB"); + $('#memory').after("Used" + json['get_environment']['memory']['used_ram'] + ""); + $('#memory').after("Available" + json['get_environment']['memory']['available_ram'] + ""); $.each(json['get_environment']['temperature'], function(name, obj) { var style = "success"; if (obj['is_alert']) { From 83085d08ca9df461956300ceab9a09b854cfaacf Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 17 Aug 2017 15:11:55 -0400 Subject: [PATCH 04/23] Revised the GitHub issue template --- .github/ISSUE_TEMPLATE.md | 47 +++++++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 17 deletions(-) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index dbfcf4527..0027599f4 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,28 +1,41 @@ -### Issue type: + Please note that issues which do not fall under any of the below categories + will be closed. +---> +### Issue type +[ ] Feature request +[ ] Bug report +[ ] Documentation -**Python version:** -**NetBox version:** +### Environment +* Python version: +* NetBox version: +### Description From fa6d9335446865559acba781926f813f8068eb68 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 17 Aug 2017 15:14:20 -0400 Subject: [PATCH 05/23] Converted list of issue types to a task list --- .github/ISSUE_TEMPLATE.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 0027599f4..7160cae99 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -13,9 +13,9 @@ will be closed. ---> ### Issue type -[ ] Feature request -[ ] Bug report -[ ] Documentation +- [ ] Feature request +- [ ] Bug report +- [ ] Documentation ### Issue type -- [ ] Feature request -- [ ] Bug report -- [ ] Documentation +[ ] Feature request +[ ] Bug report +[ ] Documentation