-
Notifications
You must be signed in to change notification settings - Fork 897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI Add support to copy class, instance, method automate objects #105
Comments
@mkanoor @gmcculloug @tinaafitz Please review the above design and provide any comments or suggestions. Thx, Dan |
@dclarizio @gmcculloug @tinaafitz
|
@mkanoor |
@dclarizio @gmcculloug @tinaafitz
|
@mkanoor Agreed on 1, we should position on the new element on any copy, good idea. I will change the design above to include 1 and 2. Thx, Dan |
@dclarizio @gmcculloug @tinaafitz I am not sure if a user would ever want to override a class, they can create a new class using the class editor or maybe copy an existing one to get a good starting point. Copying instances/methods into the same class or a different class should be a different feature, that is unrelated to overriding, which requires a strict adherence to the namespace and class structure. Under the covers the logic might be the same but presentation wise we should make that distinction. |
@mkanoor @gmcculloug @tinaafitz For this reason, I'm thinking we just have copy and have the "override" check box that simply means the copy will be placed in the exact same namespace in the chosen domain. Without significantly changing the UI to present the overrides along with the original elements, I'm afraid we would confuse the user more by calling the copy function "override". If we need to discuss further, let's have a call. Thx, Dan |
- Added hidden product features to support copy of class, instance, method automate objects. - Added copy buttons in toolbars and changed application_helper to display new buttons. - Added support in controller for copy buttons. - Added spec tests to test new model methods unlocked_domains? and all_unlocked_domains. - Added spec tests to test copy of class in controller spec tests. - Added any specific routes needed for these tasks. Issue ManageIQ#105
- Fixed any issues found during testing and cleanup, found some issues because of the PR that was merged right before this PR to remove @record from session object. - Added new copy_objects_form view, missed adding in previous commit. - Added new miq_ae_domains_spec model, missed adding in previous commit. Issue ManageIQ#105
- Converted copy_objects_form view to haml. - Refactored code to address PR comments. - Renamed methods in miq_ae_domain model and fixed them to exclude domain records with system value as NULL or false. - Added new model method "copy" to miq_ae_instance, miq_ae_method, miq_ae_class models to clean up controller code and be called from controller to save copied objects. - Fixed spec tests to call newly renamed methods, and fixed Product Features count in miq_product_feature_spec.rb Issue ManageIQ#105
- Fixed labels on the copy form. - Fixed text on toolbar buttons and right cell header in copy form. - Fixed open_parent_nodes method to retunr parent node of the existing node so children can be added to that node. Also added code to remove any existing children of the node in automate tree before adding child nodes, it was causing duplication of nodes in the tree. - Changed code to pass in entry_point variable to common ae_tree_select view to display in the title of tree pop-up. Issue ManageIQ#105
- Fixed labels on the copy form. - Fixed text on toolbar buttons and right cell header in copy form. - Fixed open_parent_nodes method to retunr parent node of the existing node so children can be added to that node. Also added code to remove any existing children of the node in automate tree before adding child nodes, it was causing duplication of nodes in the tree. - Changed code to pass in entry_point variable to common ae_tree_select view to display in the title of tree pop-up. - Added new fqname_sans_domain method that returns fqname of selected namespace without domain, to prevent an error during copy. Issue ManageIQ#105
@dclarizio This is completed, can be closed |
Image scanning: Add image name to task name (cherry picked from commit 7c48e385e8d10f20adaf164e59fe3876fbd7b318) https://bugzilla.redhat.com/show_bug.cgi?id=1496943
Image scanning: Add image name to task name (cherry picked from commit 7c48e385e8d10f20adaf164e59fe3876fbd7b318) https://bugzilla.redhat.com/show_bug.cgi?id=1496943
Back end support in #73.
When positioned on a specific class/instance/method, or when one is selected from a list, show a "Copy <Class/Instance/Method>" button in the toolbar. May need to disable it if there are no unlocked domains that can be copied to.
Once pressed, the right cell changes to a "Copy <Class/Instance/Method> <c/i/m name/description>" form.
"Copy to the same Namespace in the target domain""Copy will override Source". If the same domain was chosen, this should be hidden and the next field shown.When the Copy button is pressed, call the back end methods and present any errors. If no errors, tree needs to be redrawn to reflect the changes and user should be
put back to where they startedpositioned on the newly copied element with the success message.The text was updated successfully, but these errors were encountered: