Feat/Node cloning ability#5562
Closed
KroZen-Dev wants to merge 9 commits intopterodactyl:1.0-developfrom
Closed
Conversation
Added functionality to clone nodes via a new method.
Added a modal for cloning nodes with form inputs for name, location, FQDN, and description. Updated the node table to include a clone button for each node.
Added margin to clone button for better spacing.
Member
|
The use of AI in this software requires explicit acknowledgement, and you are expected to have tested your work before opening a PR. |
Author
You're very funny. This is a work in progress, not the final version 😂 |
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.
This pull request introduces a new feature that allows administrators to clone existing nodes through the admin interface. The main changes include backend logic for cloning nodes, a new form request for validation, updates to the controller, and enhancements to the UI to support the cloning workflow.
Node Cloning Feature:
NodeCloneServicethat handles the logic for cloning nodes, leveraging the existingNodeCreationServiceto create a new node based on the source node's attributes with user-provided overrides.NodeCloneRequestform request to validate input data when cloning a node, ensuring required fields and proper formats.NodesController(now underAdmin\Nodesnamespace) to inject the clone service, add aclonemethod for handling clone requests, and register the new POST route for node cloning. [1] [2] [3] [4] [5]User Interface Enhancements:
Other UI Adjustments:
🔗 Linked Issues: #3725