Skip to content

Commit

Permalink
Support 202209 (#1259)
Browse files Browse the repository at this point in the history
* Add export tool to https://peeringdb.com/cp/peeringdb_server #586

* IX-F importer fails on nulled ipv4 / ipv6 properties in vlan_list entries #1244

* Adding a POC must require an email address or phone number #1044

* Selenium tests

* ping django-peeringdb and rdap and poetry relock

* linting

* linting

* remove selenium tests cruft

* comment out django-peeringdb and search data mounts

* regen docs
  • Loading branch information
vegu committed Oct 11, 2022
1 parent 5bfe0d7 commit 2ee1220
Show file tree
Hide file tree
Showing 68 changed files with 1,647 additions and 331 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -9,6 +9,7 @@
*.sw*
*.tar
OLD.*
selenium-tests/config.json
ci-dev.peeringdb.com/
config/facsimile/*.yaml
genstatic/
Expand Down
3 changes: 2 additions & 1 deletion docs/dev/commands.md
@@ -1,4 +1,4 @@
Generated on 2022-09-12 13:25:46.155090
Generated on 2022-10-11 12:34:14.972233

## _db_command.py

Expand Down Expand Up @@ -134,3 +134,4 @@ Command line whois.
## pdb_wipe.py

Wipe all peering data.

3 changes: 2 additions & 1 deletion docs/dev/modules.md
@@ -1,4 +1,4 @@
Generated on 2022-09-12 13:25:46.155090
Generated on 2022-10-11 12:34:14.972233

## [admin.py](/docs/dev/modules/admin.py.md)

Expand Down Expand Up @@ -284,3 +284,4 @@ View definitions:
- Entity views (network, facility, internet exchange and organization)
- Sponsorships
- User Registration

69 changes: 47 additions & 22 deletions docs/dev/modules/admin.py.md
@@ -1,4 +1,4 @@
Generated from admin.py on 2022-09-12 13:25:46.409615
Generated from admin.py on 2022-10-11 12:34:15.080076

# peeringdb_server.admin

Expand Down Expand Up @@ -45,7 +45,7 @@ target <Organization> merge organizations with this organization
## CommandLineToolAdmin

```
CommandLineToolAdmin(peeringdb_server.admin.CustomResultLengthAdmin, django.contrib.admin.options.ModelAdmin)
CommandLineToolAdmin(import_export.admin.ExportMixin, peeringdb_server.admin.CustomResultLengthAdmin, django.contrib.admin.options.ModelAdmin)
```

View that lets staff users run peeringdb command line tools.
Expand Down Expand Up @@ -216,10 +216,13 @@ These attributes / properties will be available on instances of the class
## DeskProTicketAdmin

```
DeskProTicketAdmin(peeringdb_server.admin.CustomResultLengthAdmin, django.contrib.admin.options.ModelAdmin)
DeskProTicketAdmin(import_export.admin.ExportMixin, peeringdb_server.admin.CustomResultLengthAdmin, django.contrib.admin.options.ModelAdmin)
```

Encapsulate all admin options and functionality for a given model.
Export mixin.

This is intended to be mixed with django.contrib.admin.ModelAdmin
https://docs.djangoproject.com/en/dev/ref/contrib/admin/


### Instanced Attributes
Expand Down Expand Up @@ -272,10 +275,13 @@ These attributes / properties will be available on instances of the class
## EnvironmentSettingAdmin

```
EnvironmentSettingAdmin(peeringdb_server.admin.CustomResultLengthAdmin, django.contrib.admin.options.ModelAdmin)
EnvironmentSettingAdmin(import_export.admin.ExportMixin, peeringdb_server.admin.CustomResultLengthAdmin, django.contrib.admin.options.ModelAdmin)
```

Encapsulate all admin options and functionality for a given model.
Export mixin.

This is intended to be mixed with django.contrib.admin.ModelAdmin
https://docs.djangoproject.com/en/dev/ref/contrib/admin/


### Instanced Attributes
Expand Down Expand Up @@ -390,10 +396,13 @@ These attributes / properties will be available on instances of the class
## IXFImportEmailAdmin

```
IXFImportEmailAdmin(peeringdb_server.admin.CustomResultLengthAdmin, django.contrib.admin.options.ModelAdmin)
IXFImportEmailAdmin(import_export.admin.ExportMixin, peeringdb_server.admin.CustomResultLengthAdmin, django.contrib.admin.options.ModelAdmin)
```

Encapsulate all admin options and functionality for a given model.
Export mixin.

This is intended to be mixed with django.contrib.admin.ModelAdmin
https://docs.djangoproject.com/en/dev/ref/contrib/admin/


### Instanced Attributes
Expand All @@ -415,10 +424,13 @@ and a boolean indicating if the results may contain duplicates.
## IXFMemberDataAdmin

```
IXFMemberDataAdmin(peeringdb_server.admin.CustomResultLengthAdmin, django.contrib.admin.options.ModelAdmin)
IXFMemberDataAdmin(import_export.admin.ExportMixin, peeringdb_server.admin.CustomResultLengthAdmin, django.contrib.admin.options.ModelAdmin)
```

Encapsulate all admin options and functionality for a given model.
Export mixin.

This is intended to be mixed with django.contrib.admin.ModelAdmin
https://docs.djangoproject.com/en/dev/ref/contrib/admin/


### Instanced Attributes
Expand Down Expand Up @@ -514,10 +526,13 @@ Initialize self. See help(type(self)) for accurate signature.
## IXLanIXFMemberImportLogAdmin

```
IXLanIXFMemberImportLogAdmin(peeringdb_server.admin.CustomResultLengthAdmin, django.contrib.admin.options.ModelAdmin)
IXLanIXFMemberImportLogAdmin(import_export.admin.ExportMixin, peeringdb_server.admin.CustomResultLengthAdmin, django.contrib.admin.options.ModelAdmin)
```

Encapsulate all admin options and functionality for a given model.
Export mixin.

This is intended to be mixed with django.contrib.admin.ModelAdmin
https://docs.djangoproject.com/en/dev/ref/contrib/admin/


### Instanced Attributes
Expand Down Expand Up @@ -1140,10 +1155,13 @@ request has permission to delete *any* object of the given type.
## PartnershipAdmin

```
PartnershipAdmin(peeringdb_server.admin.CustomResultLengthAdmin, django.contrib.admin.options.ModelAdmin)
PartnershipAdmin(import_export.admin.ExportMixin, peeringdb_server.admin.CustomResultLengthAdmin, django.contrib.admin.options.ModelAdmin)
```

Encapsulate all admin options and functionality for a given model.
Export mixin.

This is intended to be mixed with django.contrib.admin.ModelAdmin
https://docs.djangoproject.com/en/dev/ref/contrib/admin/


### Instanced Attributes
Expand Down Expand Up @@ -1213,7 +1231,7 @@ request has permission to delete *any* object of the given type.
## SoftDeleteAdmin

```
SoftDeleteAdmin(peeringdb_server.admin.SanitizedAdmin, django_handleref.admin.VersionAdmin, reversion.admin.VersionAdmin, django.contrib.admin.options.ModelAdmin)
SoftDeleteAdmin(import_export.admin.ExportMixin, peeringdb_server.admin.SanitizedAdmin, django_handleref.admin.VersionAdmin, reversion.admin.VersionAdmin, django.contrib.admin.options.ModelAdmin)
```

Soft delete admin.
Expand Down Expand Up @@ -1244,10 +1262,13 @@ Given an inline formset save it to the database.
## SponsorshipAdmin

```
SponsorshipAdmin(peeringdb_server.admin.CustomResultLengthAdmin, django.contrib.admin.options.ModelAdmin)
SponsorshipAdmin(import_export.admin.ExportMixin, peeringdb_server.admin.CustomResultLengthAdmin, django.contrib.admin.options.ModelAdmin)
```

Encapsulate all admin options and functionality for a given model.
Export mixin.

This is intended to be mixed with django.contrib.admin.ModelAdmin
https://docs.djangoproject.com/en/dev/ref/contrib/admin/


### Instanced Attributes
Expand Down Expand Up @@ -1379,11 +1400,13 @@ These attributes / properties will be available on instances of the class
## UserAdmin

```
UserAdmin(peeringdb_server.admin.ModelAdminWithVQCtrl, django.contrib.auth.admin.UserAdmin)
UserAdmin(import_export.admin.ExportMixin, peeringdb_server.admin.ModelAdminWithVQCtrl, django.contrib.auth.admin.UserAdmin)
```

Extend from this model admin if you want to add verification queue
approve | deny controls to the top of its form.
Export mixin.

This is intended to be mixed with django.contrib.admin.ModelAdmin
https://docs.djangoproject.com/en/dev/ref/contrib/admin/


### Instanced Attributes
Expand Down Expand Up @@ -1525,8 +1548,10 @@ UserPermission(id, password, last_login, is_superuser, username, email, first_na
UserPermissionAdmin(peeringdb_server.admin.UserAdmin)
```

Extend from this model admin if you want to add verification queue
approve | deny controls to the top of its form.
Export mixin.

This is intended to be mixed with django.contrib.admin.ModelAdmin
https://docs.djangoproject.com/en/dev/ref/contrib/admin/


### Instanced Attributes
Expand Down
2 changes: 1 addition & 1 deletion docs/dev/modules/admin_commandline_tools.py.md
@@ -1,4 +1,4 @@
Generated from admin_commandline_tools.py on 2022-09-12 13:25:46.155090
Generated from admin_commandline_tools.py on 2022-10-11 12:34:14.972233

# peeringdb_server.admin_commandline_tools

Expand Down
2 changes: 1 addition & 1 deletion docs/dev/modules/api_cache.py.md
@@ -1,4 +1,4 @@
Generated from api_cache.py on 2022-09-12 13:25:46.155090
Generated from api_cache.py on 2022-10-11 12:34:14.972233

# peeringdb_server.api_cache

Expand Down
4 changes: 2 additions & 2 deletions docs/dev/modules/api_key_views.py.md
@@ -1,4 +1,4 @@
Generated from api_key_views.py on 2022-09-12 13:25:46.155090
Generated from api_key_views.py on 2022-10-11 12:34:14.972233

# peeringdb_server.api_key_views

Expand Down Expand Up @@ -35,4 +35,4 @@ Save key permissions for the specified org and key.

Perms should be a dict of permissioning ids and permission levels.

---
---
2 changes: 1 addition & 1 deletion docs/dev/modules/api_schema.py.md
@@ -1,4 +1,4 @@
Generated from api_schema.py on 2022-09-12 13:25:46.155090
Generated from api_schema.py on 2022-10-11 12:34:14.972233

# peeringdb_server.api_schema

Expand Down
2 changes: 1 addition & 1 deletion docs/dev/modules/apps.py.md
@@ -1,4 +1,4 @@
Generated from apps.py on 2022-09-12 13:25:46.155090
Generated from apps.py on 2022-10-11 12:34:14.972233

# peeringdb_server.apps

Expand Down
3 changes: 2 additions & 1 deletion docs/dev/modules/autocomplete_views.py.md
@@ -1,4 +1,4 @@
Generated from autocomplete_views.py on 2022-09-12 13:25:46.155090
Generated from autocomplete_views.py on 2022-10-11 12:34:14.972233

# peeringdb_server.autocomplete_views

Expand Down Expand Up @@ -297,3 +297,4 @@ ToolHistory(peeringdb_server.autocomplete_views.CommandLineToolHistoryAutocomple
```

Autocomplete for command line tools that were run via the admin ui.

4 changes: 2 additions & 2 deletions docs/dev/modules/context.py.md
@@ -1,4 +1,4 @@
Generated from context.py on 2022-09-12 13:25:46.155090
Generated from context.py on 2022-10-11 12:34:14.972233

# peeringdb_server.context

Expand All @@ -15,4 +15,4 @@ Will yield the current request, if there is one.
To se the current request for the context pass it to
the request parameter.

---
---
4 changes: 2 additions & 2 deletions docs/dev/modules/data_views.py.md
@@ -1,4 +1,4 @@
Generated from data_views.py on 2022-09-12 13:25:46.155090
Generated from data_views.py on 2022-10-11 12:34:14.972233

# peeringdb_server.data_views

Expand Down Expand Up @@ -56,4 +56,4 @@ available to site administrators.

Return all sponsorships.

---
---
3 changes: 2 additions & 1 deletion docs/dev/modules/db_router.py.md
@@ -1,4 +1,4 @@
Generated from db_router.py on 2022-09-12 13:25:46.155090
Generated from db_router.py on 2022-10-11 12:34:14.972233

# peeringdb_server.db_router

Expand Down Expand Up @@ -27,3 +27,4 @@ TestRouter(peeringdb_server.db_router.DatabaseRouter)

A very basic database router that routes to a different
read and write db.

2 changes: 1 addition & 1 deletion docs/dev/modules/deskpro.py.md
@@ -1,4 +1,4 @@
Generated from deskpro.py on 2022-09-12 13:25:46.155090
Generated from deskpro.py on 2022-10-11 12:34:14.972233

# peeringdb_server.deskpro

Expand Down
4 changes: 2 additions & 2 deletions docs/dev/modules/exceptions.py.md
@@ -1,4 +1,4 @@
Generated from exceptions.py on 2022-09-12 13:25:46.155090
Generated from exceptions.py on 2022-10-11 12:34:14.972233

# peeringdb_server.exceptions

Expand All @@ -10,4 +10,4 @@ Generated from exceptions.py on 2022-09-12 13:25:46.155090

Format wait time in seconds to human readable format

---
---
2 changes: 1 addition & 1 deletion docs/dev/modules/export_views.py.md
@@ -1,4 +1,4 @@
Generated from export_views.py on 2022-09-12 13:25:46.409615
Generated from export_views.py on 2022-10-11 12:34:15.080076

# peeringdb_server.export_views

Expand Down
2 changes: 1 addition & 1 deletion docs/dev/modules/forms.py.md
@@ -1,4 +1,4 @@
Generated from forms.py on 2022-09-12 13:25:46.155090
Generated from forms.py on 2022-10-11 12:34:14.972233

# peeringdb_server.forms

Expand Down
2 changes: 1 addition & 1 deletion docs/dev/modules/gendocs.py.md
@@ -1,3 +1,3 @@
Generated from gendocs.py on 2022-09-12 13:25:46.155090
Generated from gendocs.py on 2022-10-11 12:34:14.972233

# peeringdb_server.gendocs
2 changes: 1 addition & 1 deletion docs/dev/modules/geo.py.md
@@ -1,4 +1,4 @@
Generated from geo.py on 2022-09-12 13:25:46.155090
Generated from geo.py on 2022-10-11 12:34:14.972233

# peeringdb_server.geo

Expand Down
4 changes: 2 additions & 2 deletions docs/dev/modules/import_views.py.md
@@ -1,4 +1,4 @@
Generated from import_views.py on 2022-09-12 13:25:46.155090
Generated from import_views.py on 2022-10-11 12:34:14.972233

# peeringdb_server.import_views

Expand All @@ -12,4 +12,4 @@ Define ix-f import preview, review and post-mortem views.

A simple decorator to enable basic auth for a specific view.

---
---
2 changes: 1 addition & 1 deletion docs/dev/modules/inet.py.md
@@ -1,4 +1,4 @@
Generated from inet.py on 2022-09-12 13:25:46.155090
Generated from inet.py on 2022-10-11 12:34:14.972233

# peeringdb_server.inet

Expand Down
2 changes: 1 addition & 1 deletion docs/dev/modules/ixf.py.md
@@ -1,4 +1,4 @@
Generated from ixf.py on 2022-09-12 13:25:46.155090
Generated from ixf.py on 2022-10-11 12:34:14.972233

# peeringdb_server.ixf

Expand Down
4 changes: 2 additions & 2 deletions docs/dev/modules/mail.py.md
@@ -1,4 +1,4 @@
Generated from mail.py on 2022-09-12 13:25:46.155090
Generated from mail.py on 2022-10-11 12:34:14.972233

# peeringdb_server.mail

Expand Down Expand Up @@ -39,4 +39,4 @@ Arguments:
- entity_source <HandleRef>: handleref object, entity that was merged
- entity_target <HandleRef>: handleref object, entity that was merged into

---
---
2 changes: 1 addition & 1 deletion docs/dev/modules/maintenance.py.md
@@ -1,4 +1,4 @@
Generated from maintenance.py on 2022-09-12 13:25:46.155090
Generated from maintenance.py on 2022-10-11 12:34:14.972233

# peeringdb_server.maintenance

Expand Down
2 changes: 1 addition & 1 deletion docs/dev/modules/middleware.py.md
@@ -1,4 +1,4 @@
Generated from middleware.py on 2022-09-12 13:25:46.155090
Generated from middleware.py on 2022-10-11 12:34:14.972233

# peeringdb_server.middleware

Expand Down
2 changes: 1 addition & 1 deletion docs/dev/modules/mock.py.md
@@ -1,4 +1,4 @@
Generated from mock.py on 2022-09-12 13:25:46.155090
Generated from mock.py on 2022-10-11 12:34:14.972233

# peeringdb_server.mock

Expand Down
2 changes: 1 addition & 1 deletion docs/dev/modules/models.py.md
@@ -1,4 +1,4 @@
Generated from models.py on 2022-09-12 13:25:46.155090
Generated from models.py on 2022-10-11 12:34:14.972233

# peeringdb_server.models

Expand Down
4 changes: 2 additions & 2 deletions docs/dev/modules/org_admin_views.py.md
@@ -1,4 +1,4 @@
Generated from org_admin_views.py on 2022-09-12 13:25:46.155090
Generated from org_admin_views.py on 2022-10-11 12:34:14.972233

# peeringdb_server.org_admin_views

Expand Down Expand Up @@ -72,4 +72,4 @@ Should be below org_admin_required.

Also sets "user" in kwargs.

---
---

0 comments on commit 2ee1220

Please sign in to comment.