Compare commits
No commits in common. "219775a16bddf4aeef5e5f31c16ee6ff9b1b69e7" and "bedfbde1b06935f2de09f2b2d9d3dd20af58b4e0" have entirely different histories.
219775a16b
...
bedfbde1b0
@ -1 +1 @@
|
|||||||
v20260106-11-new-ticket-remove-description
|
v20260106-10-fix-remarks-indent-bad-gateway
|
||||||
|
|||||||
@ -179,7 +179,7 @@ def api_tickets():
|
|||||||
return jsonify({"status": "error", "message": "Forbidden."}), 403
|
return jsonify({"status": "error", "message": "Forbidden."}), 403
|
||||||
|
|
||||||
payload = request.get_json(silent=True) or {}
|
payload = request.get_json(silent=True) or {}
|
||||||
description = None # Description removed from New ticket UI; use remarks for additional context
|
description = (payload.get("description") or "").strip() or None
|
||||||
try:
|
try:
|
||||||
run_id = int(payload.get("job_run_id") or 0)
|
run_id = int(payload.get("job_run_id") or 0)
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|||||||
@ -202,7 +202,10 @@
|
|||||||
<div class="mt-2">
|
<div class="mt-2">
|
||||||
<input class="form-control form-control-sm" id="dj_ticket_code" type="text" placeholder="Ticket number (e.g., T20260106.0001)" />
|
<input class="form-control form-control-sm" id="dj_ticket_code" type="text" placeholder="Ticket number (e.g., T20260106.0001)" />
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-2 small text-muted" id="dj_ticket_status"></div>
|
<div class="mt-2">
|
||||||
|
<textarea class="form-control form-control-sm" id="dj_ticket_description" rows="2" placeholder="Description (optional)"></textarea>
|
||||||
|
</div>
|
||||||
|
<div class="mt-2 small text-muted" id="dj_ticket_status"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 col-lg-6">
|
<div class="col-12 col-lg-6">
|
||||||
@ -529,7 +532,8 @@
|
|||||||
var btnTicket = document.getElementById('dj_ticket_save');
|
var btnTicket = document.getElementById('dj_ticket_save');
|
||||||
var btnRemark = document.getElementById('dj_remark_save');
|
var btnRemark = document.getElementById('dj_remark_save');
|
||||||
var tCode = document.getElementById('dj_ticket_code');
|
var tCode = document.getElementById('dj_ticket_code');
|
||||||
var tStatus = document.getElementById('dj_ticket_status');
|
var tDesc = document.getElementById('dj_ticket_description');
|
||||||
|
var tStatus = document.getElementById('dj_ticket_status');
|
||||||
var rBody = document.getElementById('dj_remark_body');
|
var rBody = document.getElementById('dj_remark_body');
|
||||||
var rStatus = document.getElementById('dj_remark_status');
|
var rStatus = document.getElementById('dj_remark_status');
|
||||||
|
|
||||||
@ -542,7 +546,8 @@ var tStatus = document.getElementById('dj_ticket_status');
|
|||||||
if (btnTicket) btnTicket.disabled = disabled;
|
if (btnTicket) btnTicket.disabled = disabled;
|
||||||
if (btnRemark) btnRemark.disabled = disabled;
|
if (btnRemark) btnRemark.disabled = disabled;
|
||||||
if (tCode) tCode.disabled = disabled;
|
if (tCode) tCode.disabled = disabled;
|
||||||
if (rBody) rBody.disabled = disabled;
|
if (tDesc) tDesc.disabled = disabled;
|
||||||
|
if (rBody) rBody.disabled = disabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
window.__djSetCreateDisabled = setDisabled;
|
window.__djSetCreateDisabled = setDisabled;
|
||||||
@ -553,7 +558,8 @@ if (rBody) rBody.disabled = disabled;
|
|||||||
if (!currentRunId) { alert('Select a run first.'); return; }
|
if (!currentRunId) { alert('Select a run first.'); return; }
|
||||||
clearStatus();
|
clearStatus();
|
||||||
var ticket_code = tCode ? (tCode.value || '').trim().toUpperCase() : '';
|
var ticket_code = tCode ? (tCode.value || '').trim().toUpperCase() : '';
|
||||||
if (!ticket_code) {
|
var description = tDesc ? tDesc.value : '';
|
||||||
|
if (!ticket_code) {
|
||||||
if (tStatus) tStatus.textContent = 'Ticket number is required.';
|
if (tStatus) tStatus.textContent = 'Ticket number is required.';
|
||||||
else alert('Ticket number is required.');
|
else alert('Ticket number is required.');
|
||||||
return;
|
return;
|
||||||
@ -566,11 +572,12 @@ if (!ticket_code) {
|
|||||||
if (tStatus) tStatus.textContent = 'Saving...';
|
if (tStatus) tStatus.textContent = 'Saving...';
|
||||||
apiJson('/api/tickets', {
|
apiJson('/api/tickets', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: JSON.stringify({job_run_id: currentRunId, ticket_code: ticket_code})
|
body: JSON.stringify({job_run_id: currentRunId, ticket_code: ticket_code, description: description})
|
||||||
})
|
})
|
||||||
.then(function () {
|
.then(function () {
|
||||||
if (tCode) tCode.value = '';
|
if (tCode) tCode.value = '';
|
||||||
if (tStatus) tStatus.textContent = '';
|
if (tDesc) tDesc.value = '';
|
||||||
|
if (tStatus) tStatus.textContent = '';
|
||||||
loadAlerts(currentRunId);
|
loadAlerts(currentRunId);
|
||||||
})
|
})
|
||||||
.catch(function (e) {
|
.catch(function (e) {
|
||||||
|
|||||||
@ -207,7 +207,10 @@
|
|||||||
<div class="mt-2">
|
<div class="mt-2">
|
||||||
<input class="form-control form-control-sm" id="rcm_ticket_code" type="text" placeholder="Ticket number (e.g., T20260106.0001)" />
|
<input class="form-control form-control-sm" id="rcm_ticket_code" type="text" placeholder="Ticket number (e.g., T20260106.0001)" />
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-2 small text-muted" id="rcm_ticket_status"></div>
|
<div class="mt-2">
|
||||||
|
<textarea class="form-control form-control-sm" id="rcm_ticket_description" rows="2" placeholder="Description (optional)"></textarea>
|
||||||
|
</div>
|
||||||
|
<div class="mt-2 small text-muted" id="rcm_ticket_status"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 col-lg-6">
|
<div class="col-12 col-lg-6">
|
||||||
@ -826,7 +829,8 @@ table.addEventListener('change', function (e) {
|
|||||||
var btnTicket = document.getElementById('rcm_ticket_save');
|
var btnTicket = document.getElementById('rcm_ticket_save');
|
||||||
var btnRemark = document.getElementById('rcm_remark_save');
|
var btnRemark = document.getElementById('rcm_remark_save');
|
||||||
var tCode = document.getElementById('rcm_ticket_code');
|
var tCode = document.getElementById('rcm_ticket_code');
|
||||||
var tStatus = document.getElementById('rcm_ticket_status');
|
var tDesc = document.getElementById('rcm_ticket_description');
|
||||||
|
var tStatus = document.getElementById('rcm_ticket_status');
|
||||||
var rBody = document.getElementById('rcm_remark_body');
|
var rBody = document.getElementById('rcm_remark_body');
|
||||||
var rStatus = document.getElementById('rcm_remark_status');
|
var rStatus = document.getElementById('rcm_remark_status');
|
||||||
|
|
||||||
@ -839,7 +843,8 @@ var tStatus = document.getElementById('rcm_ticket_status');
|
|||||||
if (btnTicket) btnTicket.disabled = disabled;
|
if (btnTicket) btnTicket.disabled = disabled;
|
||||||
if (btnRemark) btnRemark.disabled = disabled;
|
if (btnRemark) btnRemark.disabled = disabled;
|
||||||
if (tCode) tCode.disabled = disabled;
|
if (tCode) tCode.disabled = disabled;
|
||||||
if (rBody) rBody.disabled = disabled;
|
if (tDesc) tDesc.disabled = disabled;
|
||||||
|
if (rBody) rBody.disabled = disabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
window.__rcmSetCreateDisabled = setDisabled;
|
window.__rcmSetCreateDisabled = setDisabled;
|
||||||
@ -850,7 +855,8 @@ if (rBody) rBody.disabled = disabled;
|
|||||||
if (!currentRunId) { alert('Select a run first.'); return; }
|
if (!currentRunId) { alert('Select a run first.'); return; }
|
||||||
clearStatus();
|
clearStatus();
|
||||||
var ticket_code = tCode ? (tCode.value || '').trim().toUpperCase() : '';
|
var ticket_code = tCode ? (tCode.value || '').trim().toUpperCase() : '';
|
||||||
if (!ticket_code) {
|
var description = tDesc ? tDesc.value : '';
|
||||||
|
if (!ticket_code) {
|
||||||
if (tStatus) tStatus.textContent = 'Ticket number is required.';
|
if (tStatus) tStatus.textContent = 'Ticket number is required.';
|
||||||
else alert('Ticket number is required.');
|
else alert('Ticket number is required.');
|
||||||
return;
|
return;
|
||||||
@ -863,11 +869,12 @@ if (!ticket_code) {
|
|||||||
if (tStatus) tStatus.textContent = 'Saving...';
|
if (tStatus) tStatus.textContent = 'Saving...';
|
||||||
apiJson('/api/tickets', {
|
apiJson('/api/tickets', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: JSON.stringify({job_run_id: currentRunId, ticket_code: ticket_code})
|
body: JSON.stringify({job_run_id: currentRunId, ticket_code: ticket_code, description: description})
|
||||||
})
|
})
|
||||||
.then(function () {
|
.then(function () {
|
||||||
if (tCode) tCode.value = '';
|
if (tCode) tCode.value = '';
|
||||||
if (tStatus) tStatus.textContent = '';
|
if (tDesc) tDesc.value = '';
|
||||||
|
if (tStatus) tStatus.textContent = '';
|
||||||
loadAlerts(currentRunId);
|
loadAlerts(currentRunId);
|
||||||
})
|
})
|
||||||
.catch(function (e) {
|
.catch(function (e) {
|
||||||
|
|||||||
@ -79,14 +79,6 @@
|
|||||||
Fixed a Python IndentationError in the remarks detail route that caused Gunicorn to fail on startup.
|
Fixed a Python IndentationError in the remarks detail route that caused Gunicorn to fail on startup.
|
||||||
Removed an incorrectly indented redirect statement so the module loads correctly and prevents Bad Gateway errors.
|
Removed an incorrectly indented redirect statement so the module loads correctly and prevents Bad Gateway errors.
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## v20260106-11-new-ticket-remove-description
|
|
||||||
|
|
||||||
- Removed the "Description" input from the "New ticket" form on Daily Jobs and Run Checks pages.
|
|
||||||
- Updated the ticket creation request to store only the ticket number (ticket_code) when creating a new ticket.
|
|
||||||
- Backend /api/tickets (POST) now ignores any description input during ticket creation (use remarks for additional context).
|
|
||||||
|
|
||||||
================================================================================================================================================
|
================================================================================================================================================
|
||||||
## v0.1.16
|
## v0.1.16
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user