mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-03 00:15:20 +00:00
perf: terminal command ordering (#9517)
Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
@@ -103,9 +103,9 @@ class CommandViewSet(JMSBulkModelViewSet):
|
|||||||
command_store = get_command_storage()
|
command_store = get_command_storage()
|
||||||
serializer_class = SessionCommandSerializer
|
serializer_class = SessionCommandSerializer
|
||||||
filterset_class = CommandFilter
|
filterset_class = CommandFilter
|
||||||
search_fields = ('input',)
|
|
||||||
model = Command
|
model = Command
|
||||||
ordering_fields = ('timestamp',)
|
search_fields = ('input',)
|
||||||
|
ordering_fields = ('timestamp', 'risk_level')
|
||||||
|
|
||||||
def merge_all_storage_list(self, request, *args, **kwargs):
|
def merge_all_storage_list(self, request, *args, **kwargs):
|
||||||
merged_commands = []
|
merged_commands = []
|
||||||
|
Reference in New Issue
Block a user