From 8f1163e66747c68040f93c087fe84df37a18a94a Mon Sep 17 00:00:00 2001 From: Federico Capoano Date: Fri, 30 Aug 2024 17:09:35 -0400 Subject: [PATCH] [docs] QA fixes --- CHANGES.rst | 38 ++++++++++++++--------------- openwisp_radius/base/forms.py | 3 +-- openwisp_radius/tests/test_admin.py | 5 +--- 3 files changed, 21 insertions(+), 25 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 84ea1903..e976a304 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -59,62 +59,62 @@ Features - Allowed freeradius authorize with email or phone number - Allowed the usage of subnets in `OPENWISP_RADIUS_FREERADIUS_ALLOWED_HOSTS - `_ + `_ - Made the fields containing personal data of users which are exposed in the registration API configurable (allowed, mandatory, disabled) via the `OPENWISP_RADIUS_OPTIONAL_REGISTRATION_FIELDS setting or the admin interface - `_ + `_ - Allow to disable registration API via the `OPENWISP_RADIUS_REGISTRATION_API_ENABLED setting or the admin interface - `_ + `_ - Added `throttling of API requests - `_ + `_ - Added `OPENWISP_RADIUS_API_BASEURL setting - `_ + `_ - Add identity verification feature, configurable via the `OPENWISP_RADIUS_NEEDS_IDENTITY_VERIFICATION or via admin interface - `_ + `_ - Added utilities for implementing `new registration and identity verification methods - `_ + `_ - Added `captive portal mock views - `_ + `_ to ease development and debugging - Add possibility to filter users by registration method in the admin interface - Added SAML registration method to implement `captive portal authentication via Single Sign On (SSO) - `_ + `_ - Added management command and celery task to `delete unverified users - `_ + `_ - Added translations of user facing API responses in Italian, German, Slovenian and Furlan - Added `Convert RADIUS accounting CALLED-STATION-ID feature - `_, + `_, celery task and management command, with the possibility of triggering it on accounting creation (see `OPENWISP_RADIUS_CONVERT_CALLED_STATION_ON_CREATE - `_) + `_) - Added an `equivalent of the FreeRADIUS sqlcounter feature to the REST API - `_ + `_ - Added emission of django signal to FreeRADIUS accounting view: `radius_accounting_success - `_ + `_ - Added possibility to send email to the user an they start a new radius accounting session - Added organization level settings and related admin interface functionality to enable/disable SAML and social login: - `OPENWISP_RADIUS_SAML_REGISTRATION_ENABLED - `_ + `_ - `OPENWISP_RADIUS_SOCIAL_REGISTRATION_ENABLED - `_ + `_ - Added setting to avoid updating username from SAML: `OPENWISP_RADIUS_SAML_UPDATES_PRE_EXISTING_USERNAME - `_ + `_ Changes ~~~~~~~ @@ -152,7 +152,7 @@ Other changes - Moved AccountingView to freeradius endpoints - Relaxed default values for the `SMS token settings - `_ + `_ - Switched to new navigation menu and new OpenWISP theme - Allowed users to sign up to multiple organizations - Update username when phone number is changed if username is equal to the @@ -168,7 +168,7 @@ Other changes - Added validation check to prevent invalid username in batch user creation - Allowed to set the `Password Reset URL setting - `_ + `_ via the admin interface - Added soft limits to celery tasks for background operations - Generalized the implementation of the fallback model fields which allow diff --git a/openwisp_radius/base/forms.py b/openwisp_radius/base/forms.py index bb9cf194..69828846 100644 --- a/openwisp_radius/base/forms.py +++ b/openwisp_radius/base/forms.py @@ -47,8 +47,7 @@ def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) if 'csvfile' in self.fields: docs_link = ( - 'Read https://openwisp.io/docs/dev/radius' - '/user/importing_users.html' + 'Read https://openwisp.io/docs/dev/radius/user/importing_users.html' ) help_text = f"Refer to the docs \ for more details on importing users from a CSV" diff --git a/openwisp_radius/tests/test_admin.py b/openwisp_radius/tests/test_admin.py index 97896af2..77deca62 100644 --- a/openwisp_radius/tests/test_admin.py +++ b/openwisp_radius/tests/test_admin.py @@ -406,10 +406,7 @@ def test_delete_selected_batches_action_perms(self): def test_radius_batch_csv_help_text(self): add_url = reverse(f'admin:{self.app_label}_radiusbatch_add') response = self.client.get(add_url) - docs_link = ( - 'Read https://openwisp.io/docs/dev/radius' - '/user/importing_users.html' - ) + docs_link = 'Read https://openwisp.io/docs/dev/radius/user/importing_users.html' self.assertContains(response, docs_link) def test_radiususergroup_inline_user(self):