[feature] Django admin view for Mass Command model#1420
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
989477b to
7c80797
Compare
dd0c0c1 to
432952e
Compare
c1afb08 to
d8c3ea1
Compare
ac14b28 to
8efe276
Compare
1e4e4ee to
4994e34
Compare
|
This PR implements real-time monitoring with polling. Is polling the intended final approach? #1344 includes a Mass Command WebSocket endpoint as a requirement, although it leaves the scope open to move or split. This is confusing. Please clarify. Let's implement this asap. |
2c48a5e to
0249d6a
Compare
b4dbb98 to
b597697
Compare
Code Style and QA FailuresHello @dee077, The CI failed due to code style and quality issues detected by
To fix these issues, please run the following command in your local environment: openwisp-qa-formatThis command will automatically format your code and sort imports according to the project's standards. |
0249d6a to
49ee78c
Compare
b597697 to
ec3dd20
Compare
| curl -X POST \ | ||
| http://127.0.0.1:8000/api/v1/controller/device/76b7d9cc-4ffd-4a43-b1b0-8f8befd1a7c0/command/ \ | ||
| -H 'authorization: Bearer <token>' \ | ||
| -H 'authorization: Bearer dc8d497838d4914c9db9aad9b6ec66f6c36ff46b' \ |
There was a problem hiding this comment.
CRITICAL: Hardcoded bearer token committed to repository
A real API token dc8d497838d4914c9db9aad9b6ec66f6c36ff46b replaced the placeholder <token> in the curl example. Real credentials must never be stored in version control, even in documentation.
Reply with @kilocode-bot fix it to have Kilo Code address this issue.
| curl -X POST \ | ||
| http://127.0.0.1:8000/api/v1/controller/batch-command/execute/ \ | ||
| -H 'authorization: Bearer <token>' \ | ||
| -H 'authorization: Bearer dc8d497838d4914c9db9aad9b6ec66f6c36ff46b' \ |
There was a problem hiding this comment.
CRITICAL: Hardcoded bearer token committed to repository
A real API token dc8d497838d4914c9db9aad9b6ec66f6c36ff46b replaced the placeholder <token> in the curl example. Real credentials must never be stored in version control, even in documentation.
Reply with @kilocode-bot fix it to have Kilo Code address this issue.
| curl -X PUT \ | ||
| 'http://127.0.0.1:8000/api/v1/controller/organization/8a85cc23-bad5-4c7e-b9f4-ffe298defb5c/geo-settings/' \ | ||
| -H 'authorization: Bearer <token>' \ | ||
| -H 'authorization: Bearer dc8d497838d4914c9db9aad9b6ec66f6c36ff46b' \ |
There was a problem hiding this comment.
CRITICAL: Hardcoded bearer token committed to repository
A real API token dc8d497838d4914c9db9aad9b6ec66f6c36ff46b replaced the placeholder <token> in the curl example. Real credentials must never be stored in version control, even in documentation.
Reply with @kilocode-bot fix it to have Kilo Code address this issue.
| curl -X PATCH \ | ||
| 'http://127.0.0.1:8000/api/v1/controller/organization/8a85cc23-bad5-4c7e-b9f4-ffe298defb5c/geo-settings/' \ | ||
| -H 'authorization: Bearer <token>' \ | ||
| -H 'authorization: Bearer dc8d497838d4914c9db9aad9b6ec66f6c36ff46b' \ |
There was a problem hiding this comment.
CRITICAL: Hardcoded bearer token committed to repository
A real API token dc8d497838d4914c9db9aad9b6ec66f6c36ff46b replaced the placeholder <token> in the curl example. Real credentials must never be stored in version control, even in documentation.
Reply with @kilocode-bot fix it to have Kilo Code address this issue.
Code Review SummaryStatus: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)CRITICAL
Files Reviewed (10 files)
Fix these issues in Kilo Cloud Previous Review Summary (commit ec3dd20)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit ec3dd20)Status: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)CRITICAL
Files Reviewed (10 files)
Reviewed by ling-3.0-flash-free · Input: 34.1K · Output: 10.9K · Cached: 46.3K |
…admin link - Add cached_property on AbstractBatchCommand (excludes skipped) - Use in changelist list_display for consistent status colors - Replace ID with label as the clickable link in admin changelist - Add CSS to command-inline.css for consistency - Add label, notes to change form fields; reorder columns (created last, affected_devices before created)
ec3dd20 to
f3f90e4
Compare
Checklist
Reference to Existing Issue
Closes #1345.
Description of Changes
Screenshot
Screencast.from.2026-07-03.00-47-45.webm
Todo: