* fixes#1260 - playwright tests
fixes#1394 - v2 search failing to find some names
fixes#1374 - Search to include new objects: Campus & Carrier
fixes#1164 - better rdap error reporting
fixes#1368 - Facility data export into Google Earth KMZ
fixes#1328 - Support web updates from a source of truth
fixes#1257 - Help text covers non-compliant email addresses
fixes#1313 - Improve email confirmation control - add 3 month option & maybe set new default value
fixes#1380 - Reset 'Social Media' to '[]' if field has no value
* linting
* remove target=_blank
* bump ES version to 8.10
* Cache and ES updates (#1459)
* elasticsearch major version pin and relock
* set decimal fields to python value on client save for load_data
* force use of redis password
* add default_meta to render
* add generated, clean up var names
* run pre-commit
* update ES for https and password
* rm cruft
* isort
---------
Co-authored-by: 20C <code@20c.com>
Co-authored-by: Matt Griswold <grizz@20c.com>
* Sorting icon from google material icons #1419
Manual IX-F import request queue can get stuck #1182
IX Object Creation Per Policy #1364
Creating a new network not possible #1401
IX-F Importer: Cosmetic issue with "resolved" emails and double-slashes in URLs after the FQDN #1334
Add a "Delete Affiliation" button/option to the profile #1226
Redis and negative caching #1431
* linting
* update gen_docs to use py3.11
* fix issue with api docs schema regen
* regen apidoc schema and db schema graph
* fix username validation for social media
* Add test case for social media validation
* linting
* tests shouldnt use redis
* also fix session cache setup (although not used atm)
* linting
* all caches to localmemcache during testing
---------
Co-authored-by: 20C <code@20c.com>
Co-authored-by: Matt Griswold <grizz@20c.com>
* fix next redirect when using U2F 2FA auth (#1191)
* Added self identifier to API
* fix migrations hierarchy after merging in previous support branch
* campus object
Co-authored-by: Stefan Pratter <stefan@20c.com>
* fix out of bound error message
add city / country to campus view
* fix tests
* relock poetry
* linting
* linting
* fix docs regen
* regen docs
* linting
* refactor self entity view to support carrier and campus object types and also make it easier to support additional object types in the future
* remove debug message
---------
Co-authored-by: Gajanan Patil <dipaksavaliya.python@gmail.com>
* Carrier object implementation #909
* API keys: disabling of user account by a PeeringDB admin does not disable access via a User API key. Also no disable mech, only revoke. #1140
* Ops: django needs lightweight healthcheck route that confirms database connectivity #1284
* Ops: various indexes are needed #1285
* API requests with invalid Authentication headers should notify users in some way. #1220
* Allow user to change account username #1130
* UX to remove carriers from facilities more inline the other similar UX
* more UX fixes for removing carriers from facilities
* Cache hints are needed for optimal CDN use #970
* fixes Commandline tool "Run command" button gone #1278
* RIR status gets deleted when changes are made to the network #1279
* Improve MTU field #658
* CSRF cookie not set error from email confirmation view #1296
* expose CSP_CONNECT_SRC
* fix confirm email path checking in session middleware
* Ops: Emails to OPERATIONS_EMAIL need to be rate-limited #1282
* add website field to carrier ux
* website field on carrier optional with org fallback
* linting
* add *.google-analytics.com to CSP_CONNECT_SRC
* poetry relock
* fix issues with confirm-email reverse during session creation validation
* fix tests
* fix tests
* pin django-peeringdb to support_202211
* linting
* django ratelimit to <4
* regen docs
* fix automated net stats to only include networks with status `ok` #1283
* linting
* poetry lock
Co-authored-by: Matt Griswold <grizz@20c.com>
* 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>
* fix internal error when adjusting rate limits downwards were the new limit would result in negative available requests for already tracked clients (#1126)
* remove debug output and unused variable
* expose CACHE_MAX_ENTRIES to be set via env, also implement lower limit sanity check for it (#1151)
* auth-id changes
* fix test data failure
Co-authored-by: Stefan Pratter <stefan@20c.com>
* remove survey notifications
* fixing old reference of IXF_IMPORTER_DAYS_UNTIL_TICKET through EnvironmentSettings, this setting is no longer controlled through that and should come straight from settings
* fix session auth not setting x-auth-id header (#1120)
fix basic auth not setting x-auth-id header on success (#1120)
fix api key auth only setting prefix in x-auth-id header (#1120)
fix x-auth-id header not being cleared between requests (#1120)
* fix issue with rest throttling breaking api-cache generation (#1146)
* add caching for get_permission_holder_from_request - fixes perfomance issues in #1147
* fix intermediate issue with api_cache rest throttle tests
* sanitize cache key names for state normalization (#1079)
each state normalization lookup moved into its own transaction so errors dont cause us to lose already obtained data (#1079)
write cache regardess of --commit on or off (#1079)
add a sanity check for running non-committal mode without --limit (#1079)
* fix issue with ip block rate limiting if x-forwarded-for is set (#1126)
* better handling of melissa timeouts through retrying (#1079)
fix state normalization cache timeout to have no expiry (#1079)
normalization command will display validation errors at the end and exit with a return code if there are any (#1079)
* automatically apply address field normalization for `state` (#1079)
* additional tests
* only do a sanity check for --limit if no specific object is targeted
* linting
Co-authored-by: Stefan Pratter <stefan@20c.com>
* Do not show objects in status "pending" on the UI #784
* Fix peeringdb.js bug introduced in #784
* 500 Error during login for 2FA enabled accounts with unverified email address #996
* Django-Admin: adding a network with existing asn fails with internal error #1035
* Some command-line-tool executions are not logged #1119
* Ops: API throttling of repeated requests #1126
* Ops: response header X-Auth-ID to augment logging #1120
* Allow rate-limiting of melissa enabled api functionality. #1124
* State / Province normalization #1079
* Log melissa requests #1122
* remove debug messages
* bump django-handleref to 1.0.2
* Need consolidated app logs #845
* pin django peeringdb to 2.13 and relock poetry
* pin django-restframework-apikey to 2.1.0
* linting
* migrations
* docs regenerate
* docs
* linting
Co-authored-by: David Poarch <dpoarch@20c.com>
Co-authored-by: Stefan Pratter <stefan@20c.com>
* remove survey notifications
* fixing old reference of IXF_IMPORTER_DAYS_UNTIL_TICKET through EnvironmentSettings, this setting is no longer controlled through that and should come straight from settings
* Bad API keys need to return 401 just like a bad user/pass. Presently they return 200. #1117
Co-authored-by: Stefan Pratter <stefan@20c.com>
Co-authored-by: David Poarch <dpoarch@20c.com>
* New Field "Health Check" #512
* Add status_dashboard to fields #512
* RS Peer Checkbox also visible on IX Site #727
* Add "Management" search field to Advanced Search of Exchanges #506
* wrap correctly on mobile #881
* missing delete button for user #653
* Removed cruft from IX view template #881
* To force or not to force www, that is a question #916
* add health check fields to entity creation forms (fac, ix, net) (#512)
* status_dashboard should accept null values #512
* Sort usergroup names in https://peeringdb.com/cp/peeringdb_server/userpermission/xxxxx numerically #656
* fix issue with deleted entities showing up in search results #1042
* 2FA Backup Tokens language doesn't seem correct #908
* linting
* poetry relock
* fix user permission save trying to create a user
* add status_dashboard to mock data
* docs
* add api doc regen to gen_docs call
fix issue with run_tests if BASE_URL env var is set
* fix generate_schema typo
* linting
Co-authored-by: David Poarch <dpoarch@20c.com>
Co-authored-by: Stefan Pratter <stefan@20c.com>
* module docstrings
* db schema graph
* dev docs first pass
* dev docs pass 2
* add generated notification to top of generated docs files
* linting
* regen docs
Co-authored-by: Stefan Pratter <stefan@20c.com>
Co-authored-by: Sunshine Buchholz <sunshine@20c.com>
* fixes#965: intermittent bug during consolidation of notifications
* fixes#863: better visibility for input validation errors
* fixes#375: re-evaluate affiliation requests on email change
* fixes#741: remove data quality validation for superusers
* fixes#587: customizable pagination in django admin
* fixes#923: Prevent deletion of a last technical contact if there is an existing netixlan object
* better search #23 (first pass)
* black format
* haystack test config to run_tests.py
remove old django_init.py test settings
* black format
* haystack test config fixes
* #23 better search (pt.2)
* rate limit distance queries (#23)
rate limiting based on query filters
* settings controlled blocking of distance filter for unauthenticated / unverified users (#23)
* fix distance filter throttling with api key auth (#23)
* fix anon user access check on distance queries
* search index and performance tweaks
* fix org_id not set in search results
* org id to int
Co-authored-by: Stefan Pratter <stefan@20c.com>