towerops/lib/towerops_web/controllers
Graham McIntire e0bcd4feda
feat: add profile export/import workflow via API
Add export and import functionality for device SNMP profiles:

Export (local):
- New mix task: mix export_profiles --librenms-path ~/dev/librenms --output profiles.json
- Exports all profiles to JSON format
- Can filter specific profiles with --profiles flag

Import (production):
- New API endpoint: POST /api/v1/admin/profiles/import
- Requires superuser authentication via browser session
- Processes imports in background via Exq worker (maintenance queue)
- Returns job ID for tracking

New modules:
- Mix.Tasks.ExportProfiles - Export profiles to JSON
- ProfileImportWorker - Background job for importing profiles
- ProfilesController - API endpoint for bulk import
- RequireSuperuser plug - Restricts access to superusers
- Importer.import_profile_from_data/2 - Import from data structures

This enables bulk profile management without SSH access to production.
2026-01-18 09:23:38 -06:00
..
api feat: add profile export/import workflow via API 2026-01-18 09:23:38 -06:00
api_docs_html updates 2026-01-17 17:49:53 -06:00
error_html add error pages 2026-01-06 14:37:48 -06:00
page_html rename equipment to device 2026-01-17 14:48:46 -06:00
user_registration_html Improve UI styling and remove DaisyUI dependencies 2026-01-03 11:02:38 -06:00
user_session_html add passkey 2026-01-09 12:26:32 -06:00
user_settings_html add api for mobile login 2026-01-15 15:36:14 -06:00
admin_controller.ex Add superuser system with user impersonation for admin support 2026-01-06 12:50:10 -06:00
api_docs_controller.ex updates 2026-01-17 17:49:53 -06:00
api_docs_html.ex updates 2026-01-17 17:49:53 -06:00
error_html.ex add error pages 2026-01-06 14:37:48 -06:00
error_json.ex init 2025-12-21 11:10:43 -06:00
health_controller.ex credo cleanup 2026-01-17 15:00:52 -06:00
page_controller.ex credo cleanup 2026-01-17 15:00:52 -06:00
page_html.ex init 2025-12-21 11:10:43 -06:00
user_credential_controller.ex credo cleanup 2026-01-17 15:00:52 -06:00
user_registration_controller.ex credo cleanup 2026-01-17 15:00:52 -06:00
user_registration_html.ex credo cleanup 2026-01-17 15:00:52 -06:00
user_session_controller.ex credo cleanup 2026-01-17 15:00:52 -06:00
user_session_html.ex credo cleanup 2026-01-17 15:00:52 -06:00
user_settings_controller.ex Convert User Settings from controller to LiveView 2026-01-15 16:29:50 -06:00
user_settings_html.ex credo cleanup 2026-01-17 15:00:52 -06:00