Files
Stefan Pratter 2e8788b595 Support 202210 (#1286)
* Allow REALPEER to overwrite GHOSTPEER netixlan entry, if asn and IPv6/v4 addresses matches the IX-F Members Export information #983

* Lightweight user notification mechanism #758

* do not allow affiliation with a deleted organisation #953

* Improve readability when users have special permissions #659

* fix advanced search export when api-cache exist and no filters were supplied #1153

* Ops: Throttle strings with "Response size" should be renamed "Repeated request" #1168

* allow ixlan prefix to be changed / deleted regardless of existence of netixlans in the address space #924

* linting

* poetry relock

* remove debug code

* linting

* fixed Reset IX-F suggestions link non-functional #1253

* solved UI shows own email when viewing affiliation requests for an organization #1250

* Adjust "Add Facility" menu to include newly defined fields #1091

* Footer "Global System Statistics" should be cached within django instance, not updated with every page load #1283

* linting

* django-handleref to 1.1.0 and relock poetry

* GLOBAL_STATS_CACHE_DURATION default to 900 seconds

* remove vscode and idea

* remove Ctl/dev/docker-compose.debug.yml

* remove unsused variable

* rename STATS to __STATS

* linting

* regen docs
2022-11-08 11:25:32 -06:00

2.2 KiB

Generated from signals.py on 2022-11-08 14:31:50.933987

peeringdb_server.signals

Django signal handlers

  • org usergroup creation
  • entity count updates (fac_count, net_count etc.)
  • geocode when address model (org, fac) is saved
  • verification queue creation on new objects
  • asn rdap automation to automatically grant org / network to user
  • user to org affiliation handling when targeted org has no users
    • notify admin-com
  • CORS enabling for GET api requests

Functions


addressmodel_save

def addressmodel_save(sender, instance=None, **kwargs)

Mark address model objects for geocode sync if one of the address fields is updated.


new_user_to_guests

def new_user_to_guests(request, user, sociallogin=None, **kwargs)

When a user is created via oauth login put them in the guest group temporarily.

If pdb_settings.AUTO_VERIFY_USERS is toggled on in the settings, users get automatically verified (Note: this does not include email verification, they will still need to do that).


org_delete

def org_delete(sender, instance, **kwargs)

When an organization is HARD deleted, remove any usergroups tied to the organization.


org_save

def org_save(sender, **kwargs)

Create a user group for an organization when that organization is created.


uoar_creation

def uoar_creation(sender, instance, created=False, **kwargs)

Notify the approporiate management entity when a user to organization affiliation request is created.

Attempt to derive the targeted organization from the ASN the user provided.


update_counts_for_ixfac

def update_counts_for_ixfac(ixfac)

Whenever a ixfac is saved, update the fac_count for the related Exchange and update ix_count for the related Facility.


update_counts_for_netfac

def update_counts_for_netfac(netfac)

Whenever a netfac is saved, update the fac_count for the related Network and update net_count for the related Facility.


update_counts_for_netixlan

def update_counts_for_netixlan(netixlan)

Whenever a netixlan is saved, update the ix_count for the related Network and update net_count for the related InternetExchange.


update_network_attribute

def update_network_attribute(instance, attribute)

Updates 'attribute' field in Network whenever it's called.