Skip to content

Conversation

@Siumauricio
Copy link
Contributor

@Siumauricio Siumauricio commented Dec 2, 2025

What is this PR about?

This PR improve the rollbacks feature to force to have a registry to upload the image, this change makes the current behavior of images that was previously saved in the server will now persist in the registry regardless if the user runs the docker cleanup functions making this more secure way of rollbacks (when clicking the rollback button) will download the image in a back process

Checklist

Before submitting this PR, please make sure that:

Issues related (if applicable)

Related ##2779 #3064

Screenshots (if applicable)

Screenshot 2025-12-02 at 12 51 12 AM

- Added a new optional field `rollbackRegistryId` to the application schema to support rollback registry selection.
- Enhanced the form in the ShowRollbackSettings component to include a dropdown for selecting a rollback registry when rollbacks are enabled.
- Updated the application service to handle rollback registry logic during deployment and rollback processes.
- Improved error handling and validation for rollback settings, ensuring a registry is selected when rollbacks are active.
- Adjusted database schema and migration files to accommodate the new rollback registry feature.
- Updated the deployPreviewApplication function to await the getBuildCommand call, ensuring the command is fully constructed before execution.
- This change improves the reliability of the deployment process by handling asynchronous command generation correctly.
- Changed mockReturnValue to mockResolvedValue for getBuildCommand in deployApplication tests, ensuring asynchronous command generation is handled correctly.
- Added rollbackRegistryId, rollbackRegistry, and deployments fields to application settings in drop and traefik tests for improved rollback functionality.
- Removed try-catch block in the rollback function to streamline error handling, allowing for direct propagation of errors from the rollbackApplication call.
- This change enhances code readability and maintains the functionality of the rollback process.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants