perf: Automation

This commit is contained in:
feng
2025-03-07 16:51:31 +08:00
committed by feng626
parent 763e67bd1d
commit 405344de74
17 changed files with 647 additions and 547 deletions

View File

@@ -84,10 +84,7 @@ class ChangeSecretRecordViewSet(mixins.ListModelMixin, OrgGenericViewSet):
return failed_records
def get_queryset(self):
qs = ChangeSecretRecord.get_valid_records()
return qs.filter(
execution__automation__type=self.tp
)
return ChangeSecretRecord.get_valid_records()
@action(methods=['post'], detail=False, url_path='execute')
def execute(self, request, *args, **kwargs):