[fix] Recent Commands row uses "created" timestamp for the "Modified" field
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- javascript
- Domain
- frontend
Research direction
Open openwisp_controller/connection/static/connection/js/commands.js and inspect getElement around lines 506-510, focusing on how the Recent Commands row formats response.created and response.modified. Update the Modified field so it displays the modified timestamp, then verify that a newly submitted command shows the correct value in Recent Commands.
Written by the indexing model from the issue text.
Description
Issue
In commands.js, the getElement function builds the HTML for a new
command row inserted into "Recent Commands" after a command is submitted.
The Modified field incorrectly uses response.created instead of
response.modified:
openwisp_controller/connection/static/connection/js/commands.js ~line 506-510
<div class="form-row field-modified">
<div><label>Modified:</label><div class="readonly">${getFormattedDateTimeString(
response.created, // bug: should be response.modified
)}</div></div>
</div>
Screenshots :
- Dominant language
- Python
- Stars
- 773
- Forks
- 315
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 14
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openwisp/openwisp-controller
-
enhancement gsoc
openwisp/openwisp-controller#1491 · 1 assignee ·
-
bug
openwisp/openwisp-controller#1489 · 2 comments · 1 assignee ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 30/100
openwisp/openwisp-controller#1484 · 1 comment ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 52/100
openwisp/openwisp-controller#1478 · 2 comments ·
-
bug
openwisp/openwisp-controller#1467 · 9 comments · 1 assignee ·
All issues in openwisp/openwisp-controller
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100