Skip to content

[feature:gsoc26] Add Django admin workflow for mass command execution and real-time monitoring #1345

@dee077

Description

@dee077

Is your feature request related to a problem? Please describe.

Currently, command execution in the admin interface is limited to individual devices. The backend will be developed to execute commands asynchronously, so there will be a requirement for a new admin workflow for selecting multiple target devices, previewing affected devices, choosing a command type, and monitoring the execution of a mass command operation in real time.

Describe the solution I would implement

I would like to add a new custom Django admin template view for mass command execution, referencing the proposed Figma design.

Image
  1. For the device targeting view, I will create a new admin page where users can select target devices using filters such as:

    • all devices
    • location
    • device group
    • organization
  2. Based on the selected filters, the page should display the targeted devices in a table following the same design and structure currently used on the device detail page.

  3. At the bottom of the page, an Execute Command button will allow the user to proceed to the next step, where they can see some additional filters and some command selection checkboxes. This works as a confirmation page to resolve targeted devices.

Image
  1. For command selection, the interface should display additional command selection options such as:

    • reboot
    • change password
    • custom command
      If Custom Command is selected, an input field should appear dynamically, allowing the user to enter the desired command.
  2. After configuration, clicking the final "Execute Command" button should:

    • create the MassCommand operation
    • trigger the backend execution flow
    • redirect the user to the admin detail page of the newly created MassCommand
    • Real-time execution monitoring
  3. The MassCommand admin operation page should display:

    • real-time execution progress
    • per-device execution status
    • command output
    • success/failure states
Image
  1. All executed mass command operations will be accessible from the MassCommand model admin view, allowing administrators to review previously executed batch operations, their execution status, and associated command results.
Image

Note: The UI is subject to change based on feedback and review from the design team.

Metadata

Metadata

Assignees

Labels

enhancementgsocPart of a Google Summer of Code project

Projects

Status

ToDo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions