1
0
mirror of https://github.com/peeringdb/peeringdb.git synced 2024-05-11 05:55:09 +00:00
Files
peeringdb-peeringdb/docs/dev/modules/signals.py.md
Stefan Pratter d5c3429254 Support 202206 (#1207)
* Organization Merging Tool only offers the first 10 matches #941

* AC Change User Permission broken #1043

* change rs peer icon and move to policy column (#727)

* An account with admin status can not have permissions #1157

* add rir_* fields to keep track of ASN status #473

* poetry relock for rdap 1.3.0

* Ops: Limit Django session creation for unauthenticated requests (#1205)

* refactor 941 changes to honor grappelli field configuration and also fix broken end anchors

* check term has a value

* fix tests

* poetry reloc and pin django-peeringdb to 2.14.0

* fix middleware test

* linting

* set more reasonable default RIR_ALLOCATION_DATA_CACHE_DAYS

* better default dir for RIR_ALLOCATION_DATA_PATH

* fix csv export for advanced search

* fix issues with tests failing on CSRF_USE_SESSIONS when they are using RequestFactory

* tox.ini for flake8 options

* regen docs

* regen docs

Co-authored-by: David Poarch <dpoarch@20c.com>
2022-07-15 13:47:59 -05:00

2.2 KiB

Generated from signals.py on 2022-07-15 18:42:55.852692

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.