1
0
mirror of https://github.com/peeringdb/peeringdb.git synced 2024-05-11 05:55:09 +00:00
* use new peeringdb client (1.0.0) for pdb_load_data sync (#599)

* drop django-mobi for lack of py3/dj2 support (#492)
remove django-forms-bootstrap for lack of py3/dj2 support (#492)

* black formatted

* django2.2 and py3 upgrade (#492)

* drop ixlans (#21) ui and api changes

* drop local_asn (#168)

* org search (#193)

* phone number validation (#50)

* implement help text tooltips (#228)

* Mark own ASN as transit-free (#394)

* py3 fix for `pdb_migrate_ixlans` command when writing migration report

* pdb_migrate_ixlans: properly handle py3 Runtime error if ixlan dict changes during iteration

* set rest DEFAULT_SCHEMA_CLASS to coreapi to fix swagger apidocs
fix migration 0027 missing from facsimile manifest

* fix swagger doc strings

* fix tests that were broken from api doc fixes

* fix UniqueFieldValidator for netixlan ipaddress validation that broke during django/drf upgrade

* fix org merge tool layout issues

* travis config

* update pipfile and lock

* black formatting

* update travis dist

* beta mode banner (#411)

* add beta banner template (#411)

* automatically scheduled sync may not always be on, add a flag that lets us reflect that state in the beta banner message
clean up beta banner implementation (#411)

* add tests for beta banner (#411)
This commit is contained in:
Matt Griswold
2020-01-08 13:29:58 -06:00
committed by GitHub
parent cf56acbfc4
commit ba6f9b6432
160 changed files with 4205 additions and 2098 deletions

View File

@@ -21,10 +21,10 @@ class Command(BaseCommand):
help = "Check data status/health"
def log(self, id, msg):
print "%s: %s" % (id, msg)
print("%s: %s" % (id, msg))
def print_line(self):
print "".join(["-" for i in range(0, 80)])
print("".join(["-" for i in range(0, 80)]))
def handle(self, *args, **options):
@@ -40,7 +40,7 @@ class Command(BaseCommand):
self.log(
model.handleref.tag,
" ".join(["%s(%d)" % (k, v) for k, v in counts.items()]),
" ".join(["%s(%d)" % (k, v) for k, v in list(counts.items())]),
)
# VERSION: print the id of the instances with the highest
@@ -62,7 +62,7 @@ class Command(BaseCommand):
.count()
)
if ixlan > 0:
print "%d orphaned ixlans (ix status='deleted')" % ixlan
print("%d orphaned ixlans (ix status='deleted')" % ixlan)
ixfac = (
pdbm.InternetExchangeFacility.objects.filter(
@@ -72,7 +72,7 @@ class Command(BaseCommand):
.count()
)
if ixfac > 0:
print "%d orphaned ixfacs (ix status='deleted')" % ixfac
print("%d orphaned ixfacs (ix status='deleted')" % ixfac)
ixfac = (
pdbm.InternetExchangeFacility.objects.filter(
@@ -82,7 +82,7 @@ class Command(BaseCommand):
.count()
)
if ixfac > 0:
print "%d orphaned ixfacs (fac status='deleted')" % ixfac
print("%d orphaned ixfacs (fac status='deleted')" % ixfac)
netfac = (
pdbm.NetworkFacility.objects.filter(status="ok", network__status="deleted")
@@ -90,7 +90,7 @@ class Command(BaseCommand):
.count()
)
if netfac > 0:
print "%d orphaned netfacs (net status='deleted')" % netfac
print("%d orphaned netfacs (net status='deleted')" % netfac)
netfac = (
pdbm.NetworkFacility.objects.filter(status="ok", facility__status="deleted")
@@ -98,7 +98,7 @@ class Command(BaseCommand):
.count()
)
if netfac > 0:
print "%d orphaned netfacs (fac status='deleted')" % netfac
print("%d orphaned netfacs (fac status='deleted')" % netfac)
poc = (
pdbm.NetworkContact.objects.filter(status="ok", network__status="deleted")
@@ -106,7 +106,7 @@ class Command(BaseCommand):
.count()
)
if poc > 0:
print "%d orphaned poc (net status='deleted')" % poc
print("%d orphaned poc (net status='deleted')" % poc)
netixlan = (
pdbm.NetworkIXLan.objects.filter(status="ok", network__status="deleted")
@@ -114,7 +114,7 @@ class Command(BaseCommand):
.count()
)
if netixlan > 0:
print "%d orphaned netixlans (net status='deleted')" % netixlan
print("%d orphaned netixlans (net status='deleted')" % netixlan)
netixlan = (
pdbm.NetworkIXLan.objects.filter(status="ok", ixlan__status="deleted")
@@ -122,7 +122,7 @@ class Command(BaseCommand):
.count()
)
if netixlan > 0:
print "%d orphaned netixlans (ixlan status='deleted')" % netixlan
print("%d orphaned netixlans (ixlan status='deleted')" % netixlan)
ixpfx = (
pdbm.IXLanPrefix.objects.filter(status="ok", ixlan__status="deleted")
@@ -130,7 +130,7 @@ class Command(BaseCommand):
.count()
)
if ixpfx:
print "%d orphaned ixpfxs (ixlan status='deleted')" % ixpfx
print("%d orphaned ixpfxs (ixlan status='deleted')" % ixpfx)
for model in [pdbm.Network, pdbm.InternetExchange, pdbm.Facility]:
count = (
@@ -139,7 +139,7 @@ class Command(BaseCommand):
.count()
)
if count > 0:
print "%d orphaned %ss (org status='deleted')" % (
count,
model.handleref.tag,
print(
"%d orphaned %ss (org status='deleted')"
% (count, model.handleref.tag,)
)