Commit Graph

377 Commits

Author SHA1 Message Date
2d1cdf13c5 Prevent accidental clearing of default ticket status
Enhanced save logic to protect against losing the default ticket
status value when saving settings with an empty dropdown:

- Only update to new value if a status is actually selected
- Only allow clearing if reference data is loaded (dropdown has options)
- Preserve existing value if dropdown is empty (no reference data)

This fixes the issue where saving settings before reference data
loaded would overwrite the previously configured default status
with NULL, causing "Create Autotask ticket" to fail with error
about missing default status.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-06 16:52:09 +01:00
3fb29a45d0 Auto-load Autotask reference data on settings page load
Fixed issue where Default Ticket Status dropdown was empty when
opening the settings page. Now automatically loads reference data
(queues, sources, statuses, priorities) when:
- Autotask integration is enabled
- API credentials are configured
- Reference data cache is empty

This eliminates the need to manually click "Refresh reference data"
before being able to select a default ticket status.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-06 16:48:56 +01:00
28f094f80b Merge branches v20260203-01 through v20260205-13 into main
This commit consolidates all development work from the following branch series:
- v20260203-* (13 branches): Initial Autotask integration, graph config UI improvements
- v20260204-* (3 branches): Dashboard redirect setting, additional refinements
- v20260205-* (13 branches): Autotask resolution improvements, changelog restructuring

Key features merged:
- Autotask PSA integration with ticket creation, resolution, and search
- Graph/mail configuration UI improvements with credential testing
- Daily dashboard redirect setting (optional navigation control)
- Changelog restructuring with improved Python structure
- Various bug fixes and UI enhancements

All functionality has been consolidated from the final state of branch
v20260205-13-changelog-python-structure to preserve working features.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-06 13:41:08 +01:00
7693af9306 Merge branch 'v20260204-03-dashboard-redirect-setting' into main 2026-02-06 13:32:36 +01:00
5ed4c41b80 Merge branch 'v20260204-02-performance-optimizations' into main 2026-02-06 13:23:31 +01:00
a910cc4abc Merge branch 'v20260204-01-add-readme-changelog' into main 2026-02-06 13:23:31 +01:00
e12755321a Merge branch 'v20260203-13-autotask-resolution-item-wrapper' into main 2026-02-06 13:23:31 +01:00
240f8b5c90 Merge branch 'v20260203-12-autotask-resolution-v1-casing-fix' into main 2026-02-06 13:23:31 +01:00
02d7bdd5b8 Merge branch 'v20260203-11-autotask-resolution-get-put-required-fields' into main 2026-02-06 13:23:31 +01:00
753c14bb4e Merge branch 'v20260203-10-autotask-resolution-field-aliases' into main 2026-02-06 13:23:31 +01:00
ce245f7d49 Merge branch 'v20260203-09-autotask-resolution-from-note' into main 2026-02-06 13:23:31 +01:00
34ac317607 Merge branch 'v20260203-08-autotask-ticketnote-timezone-suffix' into main 2026-02-06 13:23:31 +01:00
3b087540cb Merge branch 'v20260203-07-autotask-notes-endpoint-fix' into main 2026-02-06 13:23:31 +01:00
e5123952b2 Merge branch 'v20260203-06-autotask-ticketnotes-child-endpoint' into main 2026-02-06 13:23:31 +01:00
4bbde92c8d Merge branch 'v20260203-04-autotask-resolve-user-note' into main 2026-02-06 13:23:31 +01:00
7b3b89f50c Merge branch 'v20260203-03-autotask-resolve-note-verify' into main 2026-02-06 13:23:31 +01:00
52cd75e420 Merge branch 'v20260203-02-autotask-resolve-button-enabled' into main 2026-02-06 13:23:31 +01:00
83d8d85f30 Merge branch 'v20260203-01-autotask-resolve-note' into main 2026-02-06 13:23:31 +01:00
4b66ec1c6a Auto-commit local changes before build (2026-02-04 22:03:24) 2026-02-04 22:03:24 +01:00
abf8b89d7c Add setting to enable/disable daily dashboard redirect
Added a new setting in Settings > General > Navigation that allows
administrators to control whether users are redirected to the dashboard
on their first page view each day.

Changes:
- Added require_daily_dashboard_visit column to SystemSettings model
- Added migration for the new column (default: FALSE)
- Modified before_request hook to check the setting before redirecting
- Added Navigation card with toggle in Settings General page
- Restored changelog-claude.md with performance and feature updates

Default is OFF - users can navigate directly to any page without
being forced to visit the dashboard first.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 22:03:11 +01:00
0ddeaf1896 Add migration for performance indexes
The indexes defined in models.py __table_args__ are not automatically
created by the custom migration system. Added migrate_performance_indexes()
to explicitly create the indexes at startup.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 21:54:27 +01:00
89b9dd0264 Auto-commit local changes before build (2026-02-04 21:46:27) 2026-02-04 21:46:27 +01:00
f91c081456 Performance optimizations for slow storage environments
- Add database indexes on frequently queried FK columns (JobRun, MailMessage,
  MailObject, TicketScope, RemarkScope)
- Fix N+1 query in override recomputation by batch loading jobs
- Optimize Daily Jobs page with batch queries:
  - Batch load all today's runs in single query
  - Batch infer weekly/monthly schedules for all jobs
  - Batch load ticket/remark indicators

These changes reduce query count by 80-90% on pages like Daily Jobs and Run Checks,
significantly improving performance on systems with slower storage.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 21:44:14 +01:00
39bdd49fd0 Add README documentation and Claude changelog
- Fill README.md with comprehensive project documentation
- Add docs/changelog-claude.md for tracking Claude Code changes

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 21:30:53 +01:00
5ec64e6a13 Auto-commit local changes before build (2026-02-03 17:16:24) 2026-02-03 17:16:24 +01:00
55c6f7ddd6 Auto-commit local changes before build (2026-02-03 16:50:56) 2026-02-03 16:50:56 +01:00
2667e44830 Auto-commit local changes before build (2026-02-03 16:39:32) 2026-02-03 16:39:32 +01:00
04f6041fe6 Auto-commit local changes before build (2026-02-03 16:17:17) 2026-02-03 16:17:17 +01:00
494f792c0d Auto-commit local changes before build (2026-02-03 16:06:14) 2026-02-03 16:06:14 +01:00
bb804f9a1e Auto-commit local changes before build (2026-02-03 14:29:19) 2026-02-03 14:29:19 +01:00
a4a6a60d45 Auto-commit local changes before build (2026-02-03 14:13:08) 2026-02-03 14:13:08 +01:00
ddc6eaa12a Auto-commit local changes before build (2026-02-03 13:59:08) 2026-02-03 13:59:08 +01:00
f6216b8803 Auto-commit local changes before build (2026-02-03 13:12:53) 2026-02-03 13:12:53 +01:00
fb2651392c Auto-commit local changes before build (2026-02-03 12:28:38) 2026-02-03 12:28:38 +01:00
e3303681e1 Auto-commit local changes before build (2026-02-03 11:06:35) 2026-02-03 11:06:35 +01:00
3c7f4c7926 Auto-commit local changes before build (2026-02-03 10:31:44) 2026-02-03 10:31:44 +01:00
3400af58d7 Auto-commit local changes before build (2026-01-20 13:42:54) 2026-01-20 13:42:54 +01:00
67fb063267 Auto-commit local changes before build (2026-01-20 13:32:55) 2026-01-20 13:32:55 +01:00
ae1865dab3 Auto-commit local changes before build (2026-01-20 13:22:37) 2026-01-20 13:22:37 +01:00
92c67805e5 Auto-commit local changes before build (2026-01-20 13:10:45) 2026-01-20 13:10:45 +01:00
fc0cf1ef96 Auto-commit local changes before build (2026-01-20 12:52:16) 2026-01-20 12:52:16 +01:00
899863a0de Auto-commit local changes before build (2026-01-20 10:44:53) 2026-01-20 10:44:53 +01:00
e4e069a6b3 Auto-commit local changes before build (2026-01-20 10:34:23) 2026-01-20 10:34:23 +01:00
dfca88d3bd Auto-commit local changes before build (2026-01-20 10:28:38) 2026-01-20 10:28:38 +01:00
5c0e1b08aa Auto-commit local changes before build (2026-01-20 10:07:44) 2026-01-20 10:07:44 +01:00
4b506986a6 Auto-commit local changes before build (2026-01-20 09:16:35) 2026-01-20 09:16:35 +01:00
5131d24751 Auto-commit local changes before build (2026-01-20 08:49:15) 2026-01-20 08:49:15 +01:00
63526be592 Auto-commit local changes before build (2026-01-19 16:27:38) 2026-01-19 16:27:38 +01:00
b56cdacf6b Auto-commit local changes before build (2026-01-19 15:59:26) 2026-01-19 15:59:26 +01:00
4b3b6162a0 Auto-commit local changes before build (2026-01-19 15:47:15) 2026-01-19 15:47:15 +01:00