Admin Tools

Utility tools for system maintenance and operations

UserVote provides various administrative tools for system maintenance, data management, and troubleshooting. This guide covers the available tools and how to use them safely.

Tools Overview

Available Tools:

ToolPurpose
Backup & RestoreData backup management
Import/ExportBulk data operations
Cache ManagementClear and refresh caches
Health CheckSystem diagnostics
Logs ViewerApplication logs
API ExplorerTest API endpoints

Access Requirements:

  • Super Admin or Tenant Admin role
  • Some tools require Super Admin only
  • All actions are audit logged

Navigation:

AdminTools

System Health Check

Running Health Check:

  1. Go to ToolsHealth Check
  2. Click Run Check
  3. Review results

What's Checked:

ComponentChecks
DatabaseConnection, response time
CacheRedis connection, hit rate
StorageDisk space, write access
EmailSMTP connection
QueueJob processing status
ExternalThird-party integrations

Status Indicators:

  • Healthy: Operating normally
  • Warning: Degraded performance
  • Error: Requires attention

Automated Checks:

  • Run automatically daily
  • Alerts sent on failures
  • History available for trending

Cache Management

Understanding Caches:

Cache TypeContents
DataQuery results, aggregations
SessionUser sessions, tokens
StaticCompiled assets, templates
CDNEdge-cached content

Clearing Caches:

  1. Go to ToolsCache
  2. Select cache type(s)
  3. Click Clear Selected
  4. Confirm action

When to Clear:

  • After configuration changes
  • When seeing stale data
  • After deployment issues
  • Troubleshooting display problems

Cautions:

  • Clearing sessions logs out users
  • May cause temporary slowdown
  • Some caches rebuild automatically
  • CDN purge may take minutes

Import & Export

Export Data:

What Can Be Exported:

  • Ideas (all or filtered)
  • Users list
  • Vote data
  • Comments
  • Products configuration
  • Settings

Exporting:

  1. Go to ToolsExport
  2. Select data type
  3. Apply filters if needed
  4. Choose format (CSV, JSON)
  5. Click Export
  6. Download file

Import Data:

What Can Be Imported:

  • Ideas (bulk creation)
  • Users (bulk invite)
  • Historical votes
  • Categories and tags

Importing:

  1. Go to ToolsImport
  2. Download template
  3. Fill in your data
  4. Upload file
  5. Preview changes
  6. Confirm import

Import Validation:

  • Format checking
  • Duplicate detection
  • Reference validation
  • Error reporting

Logs Viewer

Accessing Logs:

ToolsLogs

Log Types:

TypeContains
ApplicationErrors, warnings, info
AccessRequest logs
AuditAdmin actions
SecurityAuth events, threats
EmailSend/receive logs

Filtering Logs:

  • Time range: Last hour to 30 days
  • Level: Error, warning, info, debug
  • Source: Component or service
  • Search: Text search in messages

Log Details:

Each entry shows:

  • Timestamp
  • Level/severity
  • Message
  • Context/metadata
  • Stack trace (if error)

Log Retention:

  • Application: 30 days
  • Audit: 1 year
  • Security: 2 years
  • Configurable per type

API Explorer

What is API Explorer?

Interactive tool to test API endpoints.

Using API Explorer:

  1. Go to ToolsAPI Explorer
  2. Select endpoint category
  3. Choose specific endpoint
  4. Fill in parameters
  5. Click Execute
  6. View response

Features:

  • Authentication handled
  • Request/response display
  • Code examples generated
  • History of requests

Categories:

  • Ideas API
  • Users API
  • Products API
  • Comments API
  • Analytics API

Use Cases:

  • Testing integrations
  • Debugging issues
  • Learning the API
  • Generating code samples

Database Tools

Available Operations:

Maintenance:

  • Run vacuum/analyze
  • Check table sizes
  • View slow queries
  • Index optimization

Data Operations:

  • Bulk updates (with caution)
  • Data cleanup
  • Orphan record removal
  • Reference integrity check

Accessing:

  1. Go to ToolsDatabase
  2. Select operation
  3. Review impact
  4. Execute with confirmation

Safety Features:

  • Dry run mode
  • Transaction rollback
  • Backup requirement
  • Rate limiting

Super Admin Only:

  • Direct query execution
  • Schema inspection
  • Performance analysis

Scheduled Tasks

System Tasks:

TaskSchedulePurpose
CleanupDailyRemove expired data
DigestWeeklySend digest emails
ReportsWeeklyGenerate reports
HealthDailyRun health checks
BackupDailyAutomated backup

Managing Tasks:

  1. Go to ToolsScheduled Tasks
  2. View all scheduled tasks
  3. See last run status
  4. Manually trigger if needed

Task Status:

  • Success: Completed normally
  • Partial: Some errors
  • Failed: Needs attention
  • Running: In progress
  • Paused: Manually disabled

Custom Tasks:

  • Create custom schedules
  • Set cron expressions
  • Define task actions
  • Configure notifications

Troubleshooting

Common Issues:

Slow Performance:

  1. Check Health status
  2. Review slow query logs
  3. Clear caches
  4. Check resource usage

Missing Data:

  1. Check audit logs
  2. Verify permissions
  3. Check visibility settings
  4. Review recent changes

Email Not Sending:

  1. Check email configuration
  2. Test SMTP connection
  3. Review email logs
  4. Check rate limits

Authentication Issues:

  1. Check session status
  2. Review security logs
  3. Verify user status
  4. Test login flow

Getting Help:

  • Check documentation
  • Review error logs
  • Contact support
  • Submit bug report

Debug Mode:

Enable for detailed logging:

  1. ToolsSettings
  2. Enable Debug Mode
  3. Reproduce issue
  4. Check detailed logs
  5. Disable when done