Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✨ feature: Add UI service execution (phase 1)
📒 Summary
Implements Phase 1 of the UI service execution features, enabling users to execute services directly from the dashboard with a polished, consistent user experience. This transforms the dashboard from read-only to interactive, allowing one-click execution of ansible playbooks, python scripts, and opentofu operations with real-time feedback.
🔧 Changes
Backend Changes
/api/execute/<service_name>/inviews.py:185-250for service executionurls.py:15applyanddestroyoperations via operation parameterFrontend Changes
#5cfcfe)JavaScript Functionality
executeService()for standard services,executeOpenTofu()for terraform operationsupdateServiceStatus()to maintain buttons after auto-refreshCSS Styling
Files Modified
opt/torero-ui/torero_ui/dashboard/views.py- New execution API endpointopt/torero-ui/torero_ui/dashboard/urls.py- URL routing for execute endpointopt/torero-ui/torero_ui/dashboard/services.py- Enhanced CLI client with operation supportopt/torero-ui/torero_ui/templates/dashboard/index.html- Execute buttons and OpenTofu dropdownopt/torero-ui/torero_ui/templates/dashboard/base.html- CSRF token supportopt/torero-ui/torero_ui/static/js/dashboard.js- Complete execution functionalityopt/torero-ui/torero_ui/static/css/dashboard.css- Button styling and dropdown design🧪 Testing
Enhanced Debugging
Container Deployment
docker compose -f docker-compose.dev.yml up -d --buildThis PR completes Phase 1 of the UI execution features and provides a solid foundation for Phase 2 queue management implementation.