fcdec8e38b
feat: Mimecast multi-tenant held mail viewer
...
- migration 062: mimecast_tenants table (company_id, client_id/secret, account_code)
- Seed Wulf (CUSA13A95) + Seubert (CUSA96A181) tenants
- MimecastClient.getHeldMessages(): full pagination via meta.pagination.next cursor
(API always returns 10/page regardless of pageSize param, totalCount in meta)
- getMimecastClientForTenant() factory for per-tenant instantiation
- GET /api/mimecast/held?tenantId=&recipient= — fetches all tenants in parallel,
merges + sorts by date, returns per-tenant counts + combined messages[]
- Held Mail tab on /admin/sync/mimecast (on-demand load, recipient filter,
tenant badges, policy filter dropdown, DMARC/impersonation highlighted red)
2026-03-31 22:38:22 -04:00
root
e25eb3fa5e
feat: implement structured logging for sync operations
...
- Add comprehensive structured logging utility (lib/utils/sync-logger.ts)
- Log levels: DEBUG, INFO, WARN, ERROR
- Automatic error categorization (NETWORK_ERROR, AUTH_ERROR, DATABASE_ERROR, etc.)
- Phase tracking (INITIALIZING, FETCHING, MAPPING, VALIDATING, UPSERTING, DELETING, COMPLETING)
- Contextual metadata (syncId, entityType, phase, duration, record counts)
- Timing helpers for operations
- Update sync-service.ts with structured logging
- Replace console.log/error with structured logger
- Consistent error categorization across all error paths
- Fix swallowed errors in sync history updates
- Add child loggers for entity-specific operations
- Update entity-sync.ts with structured logging
- Complete phase tracking throughout sync lifecycle
- Detailed context for warnings and errors
- Update chunked sync methods with structured logging
- Update picklist sync methods (issue types, sub-issue types)
- Better debugging info with timing and sample data
- Add sync failure analysis script (scripts/analyze-sync-failures.ts)
- Query sync history by date range, entity type, or status
- Generate failure summaries by entity
- Automatic error categorization
- Calculate success rates and statistics
- Display detailed sync records with timing
- Add comprehensive documentation (docs/SYNC_LOGGING_IMPROVEMENTS.md)
- Usage guide and examples
- Migration guide for developers
- Before/after comparisons
This addresses inconsistent logging and improves debugging capabilities for sync operations.
2026-01-23 08:02:02 -05:00
root
6eee14f8af
Add comprehensive admin features and multi-system integration
...
- Add admin dashboard with sync controls and data browser
- Implement RMM, Auvik, and Addigy organization mappings
- Add chunked ticket sync with progress tracking
- Implement entity sync service with rate limiting
- Add analytics engine and performance optimizer
- Create data browser for all PSA entities
- Add navigation components and UI improvements
- Implement background processing and sync services
- Add comprehensive documentation and migration scripts
- Update configuration items with multi-system support
- Enhance contact management and purchase history
- Add issue type assignment and LLM analyzer
- Improve error handling and logging utilities
2025-11-19 14:18:16 -05:00