Skip to content
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

Allow copying/cut/paste of model components #35644

Merged
merged 4 commits into from Apr 14, 2020

Conversation

nyalldawson
Copy link
Collaborator

This commit allows users to copy and paste model components, both within the same model and between different models

Peek 2020-04-07 17-24

Refs NRCan Contract#3000707093

@nyalldawson nyalldawson added Requires Tests! Waiting on the submitter to add unit tests before eligible for merging Feature Processing Relating to QGIS Processing framework or individual Processing algorithms labels Apr 7, 2020
@github-actions github-actions bot added this to the 3.14.0 milestone Apr 7, 2020
Copy link
Contributor

@alexbruy alexbruy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

But I'm no sure if we should paste also all child items by default, in some cases this is not necesary and user will need to remove unused items after pasting. Maybe we should have two paste actions: one for pasting selected items and another one for pasting selected items and their childs

@nyalldawson
Copy link
Collaborator Author

What about if we only copy the comments/outputs if they are manually selected?

@alexbruy
Copy link
Contributor

alexbruy commented Apr 7, 2020

Sounds good to me. But I'm not an UX expert, probably we should also ask @nirvn.

@nirvn
Copy link
Contributor

nirvn commented Apr 9, 2020

Sorry, I've not seen my name mentioned here until now.

I think @nyalldawson 's proposal is good.

@nyalldawson
Copy link
Collaborator Author

Ok, implemented. This is much nicer logic, thanks!

This commit allows users to copy and paste model components, both
within the same model and between different models
connected to algorithms when they have been explicitly selected by the user
@nyalldawson nyalldawson removed the Requires Tests! Waiting on the submitter to add unit tests before eligible for merging label Apr 14, 2020
@nyalldawson nyalldawson merged commit 5f91b06 into qgis:master Apr 14, 2020
@nyalldawson nyalldawson deleted the model_copy branch April 14, 2020 04:36
@timlinux timlinux added Changelog Items that are queued to appear in the visual changelog - remove after harvesting and removed Changelog Items that are queued to appear in the visual changelog - remove after harvesting labels May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Processing Relating to QGIS Processing framework or individual Processing algorithms
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants