From c57bb47616aa7149306752f9c917b6fcec2fa813 Mon Sep 17 00:00:00 2001 From: Lova ANDRIARIMALALA <43842786+Xpirix@users.noreply.github.com> Date: Fri, 19 Apr 2024 11:15:08 +0300 Subject: [PATCH 1/2] Add delay notification in the approval email --- qgis-app/plugins/views.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qgis-app/plugins/views.py b/qgis-app/plugins/views.py index d1897117..8156221b 100644 --- a/qgis-app/plugins/views.py +++ b/qgis-app/plugins/views.py @@ -1364,7 +1364,11 @@ def version_approve(request, package_name, version): return HttpResponseRedirect(version.get_absolute_url()) version.approved = True version.save() - msg = _('The plugin version "%s" is now approved' % version) + msg = _( + "The plugin version '%s' is now approved. " + "Please note that there may be a delay of 10 to 15 minutes " + "between the approval of the plugin and its actual availability in the XML." + ) % version messages.success(request, msg, fail_silently=True) plugin_approve_notify(version.plugin, msg, request.user) try: From 9fcc3d2858559ef21d8966abd8e5e810ac4ce565 Mon Sep 17 00:00:00 2001 From: Lova ANDRIARIMALALA <43842786+Xpirix@users.noreply.github.com> Date: Fri, 19 Apr 2024 17:06:30 +0300 Subject: [PATCH 2/2] Improve delay notification message to 'up to 15 minutes' --- qgis-app/plugins/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qgis-app/plugins/views.py b/qgis-app/plugins/views.py index 8156221b..b98b2511 100644 --- a/qgis-app/plugins/views.py +++ b/qgis-app/plugins/views.py @@ -1366,7 +1366,7 @@ def version_approve(request, package_name, version): version.save() msg = _( "The plugin version '%s' is now approved. " - "Please note that there may be a delay of 10 to 15 minutes " + "Please note that there may be a delay of up to 15 minutes " "between the approval of the plugin and its actual availability in the XML." ) % version messages.success(request, msg, fail_silently=True)