Skip to content

Commit f7c5606

Browse files
authored
Merge pull request #4 from jyssy/ctt-231
Updating ip_addresses and /services/api/hosts issue Ctt 231
2 parents e7f8ed5 + 5f30bfb commit f7c5606

File tree

6 files changed

+502
-3
lines changed

6 files changed

+502
-3
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,5 @@ operations-app.access-ci.org.pub
136136
**/.DS_Store
137137
{{ app_home }}/
138138
.idea/
139+
Pipfile
140+
Pipfile.lock

CHANGELOG

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
v2.2.1 2024-10-09 jlambertson
2+
- updated the Host model to conform to the multiple 'ip_addresses' addition from v2.2.0
3+
14
v2.2.0 2024-08-29 jlambertson
25
- Added 'service_tags' and 'host_tags' to models, forms, and a few templates to enter and view user-added tags to both categories
36
- Removed Notes from the export API, otherwise viewable while logged in
47
- Increased character limit for host.ip_addresses and edited single grammar to include plural options
58
- increased username character limit from 16 to 25
69
- added a table, misc_urls, to models to include urls for various possible links being added to the site; as well as a name column by which the specific context urls can be queried
710

8-
911
v2.1.1 2023-03-22 JP
1012
- Remove API login requirement, contact names but no phone or emails are returned
1113

Operations_ServiceIndex_Django/services/serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Host_Serializer(serializers.ModelSerializer):
1717
host_tags = serializers.SerializerMethodField(read_only=True)
1818
class Meta:
1919
model = Host
20-
fields = ('service', 'location', 'hostname', 'ip_address',
20+
fields = ('service', 'location', 'hostname', 'ip_addresses',
2121
'qualys', 'nagios', 'syslog_standard_10514', 'syslog_relp_10515',
2222
'label', 'availability', 'support',
2323
'sys_admin', 'poc_primary', 'poc_backup', 'host_last_verified', 'host_tags')

Operations_ServiceIndex_Django/templates/services/services_for_pdf.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
{% for i in s.instances %}
6161
<tr>
6262
<td style="text-align:right;" class="short"><b>{{ i.type }}:</b></td>
63-
<td class="medium outlined">{{ i.location }}<br />{{ i.hostname }}<br />{{ i.ip_address }}</td>
63+
<td class="medium outlined">{{ i.location }}<br />{{ i.hostname }}<br />{{ i.ip_addresses }}</td>
6464
<td class="short outlined">{{ i.availability }}<br />{{ i.support }}</td>
6565
{# <td><a href="mailto:{{ i.sys_admin.email }}">{{ i.sys_admin.name }}</a></td> #}
6666
<td class="medium outlined"><span>Sys Admin:</span><br />{{ i.sys_admin.last_name }}, {{ i.sys_admin.name }}<br />{{ i.sys_admin.email }}</td>

Pipfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[[source]]
2+
url = "https://pypi.org/simple"
3+
verify_ssl = true
4+
name = "pypi"
5+
6+
[dev-packages]
7+
8+
[packages]
9+
django = "==4.1.*"
10+
#django = "==5.*"
11+
#django-cors-headers = "*"
12+
django-allauth = "==0.51.*"
13+
#django-allauth = "*"
14+
#django-bootstrap-v5 = "==1.0.*"
15+
django-bootstrap-v5 = "*"
16+
#django-bootstrap5 = "==24.*"
17+
psycopg2-binary = "*"
18+
#psycopg2 = "*"
19+
requests = "*"
20+
djangorestframework = "*"
21+
gunicorn = "==20.1.*"
22+
#django-extensions = "*"
23+
#werkzeug = "*"
24+
#pyopenssl = "*"
25+
26+
[requires]
27+
python_version = "3.10"
28+
#python_version = "3.12"

0 commit comments

Comments
 (0)