perf: change secret

pull/15017/head
feng 2025-03-12 18:53:52 +08:00 committed by feng626
parent 042c3d1ba8
commit 30e64ecfc1
9 changed files with 9 additions and 9 deletions

View File

@ -35,7 +35,7 @@ class ChangeSecretAutomationViewSet(OrgBulkModelViewSet):
class ChangeSecretRecordViewSet(mixins.ListModelMixin, OrgGenericViewSet):
filterset_class = ChangeSecretRecordFilterSet
search_fields = ('asset__address', 'account_username')
search_fields = ('asset__address', 'account__username')
ordering_fields = ('date_finished',)
tp = AutomationTypes.change_secret
serializer_classes = {

View File

@ -155,7 +155,7 @@ class ChangeSecretDashboardApi(APIView):
if name == self.task_name and tp == self.tp:
execution_ids.append(_id)
snapshots = AutomationExecution.objects.filter(id__in=execution_ids).values_list('id', 'snapshot')
snapshots = AutomationExecution.objects.filter(id__in=execution_ids).values_list('snapshot', flat=True)
asset_ids = {asset for i in snapshots for asset in i.get('assets', [])}
account_ids = {account for i in snapshots for account in i.get('accounts', [])}

View File

@ -44,7 +44,7 @@ class PushAccountExecutionViewSet(AutomationExecutionViewSet):
class PushAccountRecordViewSet(mixins.ListModelMixin, OrgGenericViewSet):
filterset_class = PushAccountRecordFilterSet
search_fields = ('asset__address', 'account_username')
search_fields = ('asset__address', 'account__username')
ordering_fields = ('date_finished',)
tp = AutomationTypes.push_account
serializer_classes = {

View File

@ -138,7 +138,7 @@ msgstr ""
#: accounts/automations/push_account/manager.py:30
msgid "Secret cannot be empty"
msgstr "{} no puede estar vacío"
msgstr ""
#: accounts/automations/verify_gateway_account/manager.py:18
msgid ">>> Start executing the task to test gateway account connectivity"

View File

@ -117,7 +117,7 @@ msgstr ""
#: accounts/automations/push_account/manager.py:30
msgid "Secret cannot be empty"
msgstr "{} は空ではありません。"
msgstr ""
#: accounts/automations/verify_gateway_account/manager.py:18
msgid ">>> Start executing the task to test gateway account connectivity"

View File

@ -117,7 +117,7 @@ msgstr ""
#: accounts/automations/push_account/manager.py:30
msgid "Secret cannot be empty"
msgstr "{} não pode estar vazio."
msgstr ""
#: accounts/automations/verify_gateway_account/manager.py:18
msgid ">>> Start executing the task to test gateway account connectivity"

View File

@ -119,7 +119,7 @@ msgstr ""
#: accounts/automations/push_account/manager.py:30
msgid "Secret cannot be empty"
msgstr "{} не может быть пустым"
msgstr ""
#: accounts/automations/verify_gateway_account/manager.py:18
msgid ">>> Start executing the task to test gateway account connectivity"

View File

@ -115,7 +115,7 @@ msgstr ""
#: accounts/automations/push_account/manager.py:30
msgid "Secret cannot be empty"
msgstr "{} 不能为空"
msgstr "密文不能为空"
#: accounts/automations/verify_gateway_account/manager.py:18
msgid ">>> Start executing the task to test gateway account connectivity"

View File

@ -117,7 +117,7 @@ msgstr ""
#: accounts/automations/push_account/manager.py:30
msgid "Secret cannot be empty"
msgstr "{} 不能為空"
msgstr ""
#: accounts/automations/verify_gateway_account/manager.py:18
msgid ">>> Start executing the task to test gateway account connectivity"