Auto-commit local changes before build (2026-01-20 10:34:23)
This commit is contained in:
parent
dfca88d3bd
commit
e4e069a6b3
@ -1 +1 @@
|
||||
v20260120-04-autotask-deletedby-name-runlink-fix
|
||||
v20260120-05-autotask-indent-fix
|
||||
|
||||
@ -295,7 +295,7 @@ def inbox_message_approve(message_id: int):
|
||||
if hasattr(run, 'storage_free_percent') and hasattr(msg, 'storage_free_percent'):
|
||||
run.storage_free_percent = msg.storage_free_percent
|
||||
db.session.add(run)
|
||||
db.session.flush()
|
||||
db.session.flush()
|
||||
try:
|
||||
link_open_internal_tickets_to_run(run=run, job=job)
|
||||
except Exception:
|
||||
@ -443,7 +443,7 @@ def inbox_message_approve_vspc_companies(message_id: int):
|
||||
auto_approve=True,
|
||||
)
|
||||
db.session.add(job)
|
||||
db.session.flush()
|
||||
db.session.flush()
|
||||
|
||||
# Commit any mapping updates so they are visible immediately in the UI.
|
||||
try:
|
||||
@ -513,7 +513,7 @@ def inbox_message_approve_vspc_companies(message_id: int):
|
||||
auto_approve=True,
|
||||
)
|
||||
db.session.add(job)
|
||||
db.session.flush()
|
||||
db.session.flush()
|
||||
|
||||
if not first_job:
|
||||
first_job = job
|
||||
@ -543,7 +543,7 @@ def inbox_message_approve_vspc_companies(message_id: int):
|
||||
run.remark = getattr(msg, "overall_message", None)
|
||||
|
||||
db.session.add(run)
|
||||
db.session.flush()
|
||||
db.session.flush()
|
||||
try:
|
||||
link_open_internal_tickets_to_run(run=run, job=job)
|
||||
except Exception:
|
||||
@ -553,12 +553,12 @@ def inbox_message_approve_vspc_companies(message_id: int):
|
||||
link_open_internal_tickets_to_run(run=run, job=job)
|
||||
except Exception:
|
||||
pass
|
||||
db.session.flush()
|
||||
db.session.flush()
|
||||
try:
|
||||
link_open_internal_tickets_to_run(run=run, job=job)
|
||||
except Exception:
|
||||
pass
|
||||
db.session.flush()
|
||||
db.session.flush()
|
||||
created_runs.append(run)
|
||||
|
||||
# Persist objects for reporting (idempotent upsert; safe to repeat).
|
||||
@ -704,7 +704,7 @@ def inbox_message_approve_vspc_companies(message_id: int):
|
||||
if hasattr(run2, "remark"):
|
||||
run2.remark = getattr(other, "overall_message", None)
|
||||
db.session.add(run2)
|
||||
db.session.flush()
|
||||
db.session.flush()
|
||||
try:
|
||||
link_open_internal_tickets_to_run(run=run2, job=job)
|
||||
except Exception:
|
||||
@ -714,12 +714,12 @@ def inbox_message_approve_vspc_companies(message_id: int):
|
||||
link_open_internal_tickets_to_run(run=run2, job=job)
|
||||
except Exception:
|
||||
pass
|
||||
db.session.flush()
|
||||
db.session.flush()
|
||||
try:
|
||||
link_open_internal_tickets_to_run(run=run2, job=job)
|
||||
except Exception:
|
||||
pass
|
||||
db.session.flush()
|
||||
db.session.flush()
|
||||
|
||||
# Persist objects per company
|
||||
try:
|
||||
@ -1085,7 +1085,7 @@ def inbox_reparse_all():
|
||||
run.storage_free_percent = msg.storage_free_percent
|
||||
|
||||
db.session.add(run)
|
||||
db.session.flush()
|
||||
db.session.flush()
|
||||
try:
|
||||
link_open_internal_tickets_to_run(run=run, job=job)
|
||||
except Exception:
|
||||
@ -1095,12 +1095,12 @@ def inbox_reparse_all():
|
||||
link_open_internal_tickets_to_run(run=run, job=job)
|
||||
except Exception:
|
||||
pass
|
||||
db.session.flush()
|
||||
db.session.flush()
|
||||
try:
|
||||
link_open_internal_tickets_to_run(run=run, job=job)
|
||||
except Exception:
|
||||
pass
|
||||
db.session.flush()
|
||||
db.session.flush()
|
||||
auto_approved_runs.append((job.customer_id, job.id, run.id, msg.id))
|
||||
created_any = True
|
||||
|
||||
@ -1160,7 +1160,7 @@ def inbox_reparse_all():
|
||||
run.storage_free_percent = msg.storage_free_percent
|
||||
|
||||
db.session.add(run)
|
||||
db.session.flush()
|
||||
db.session.flush()
|
||||
try:
|
||||
link_open_internal_tickets_to_run(run=run, job=job)
|
||||
except Exception:
|
||||
@ -1170,7 +1170,7 @@ def inbox_reparse_all():
|
||||
link_open_internal_tickets_to_run(run=run, job=job)
|
||||
except Exception:
|
||||
pass
|
||||
db.session.flush()
|
||||
db.session.flush()
|
||||
try:
|
||||
link_open_internal_tickets_to_run(run=run, job=job)
|
||||
except Exception:
|
||||
@ -1274,7 +1274,7 @@ def inbox_reparse_all():
|
||||
run.storage_free_percent = msg.storage_free_percent
|
||||
|
||||
db.session.add(run)
|
||||
db.session.flush()
|
||||
db.session.flush()
|
||||
try:
|
||||
link_open_internal_tickets_to_run(run=run, job=job)
|
||||
except Exception:
|
||||
@ -1284,12 +1284,12 @@ def inbox_reparse_all():
|
||||
link_open_internal_tickets_to_run(run=run, job=job)
|
||||
except Exception:
|
||||
pass
|
||||
db.session.flush()
|
||||
db.session.flush()
|
||||
try:
|
||||
link_open_internal_tickets_to_run(run=run, job=job)
|
||||
except Exception:
|
||||
pass
|
||||
db.session.flush()
|
||||
db.session.flush()
|
||||
auto_approved_runs.append((job.customer_id, job.id, run.id, msg.id))
|
||||
|
||||
msg.job_id = job.id
|
||||
@ -1368,4 +1368,4 @@ def inbox_reparse_all():
|
||||
"info",
|
||||
)
|
||||
|
||||
return redirect(url_for("main.inbox"))
|
||||
return redirect(url_for("main.inbox"))
|
||||
@ -394,6 +394,12 @@ Changes:
|
||||
- Updated Run Checks to display “Deleted by: <First name> <Last name>” with resource ID as fallback.
|
||||
- Restored legacy behavior by linking newly created job runs to any open internal tickets (TicketJobRun inherit) during mail import.
|
||||
|
||||
## v20260120-05-autotask-indent-fix
|
||||
|
||||
- Fixed an IndentationError in routes_inbox.py that prevented Gunicorn from starting.
|
||||
- Corrected the indentation of db.session.flush() to restore valid Python syntax.
|
||||
- No functional or logical changes were made.
|
||||
|
||||
***
|
||||
|
||||
## v0.1.21
|
||||
|
||||
Loading…
Reference in New Issue
Block a user