Dear Esri, I would like to see the ability added to ArcGIS Pro to share out a geoprocessing tool without the hassle of running it and then publishing it from the geoprocessing history.
When you share out the tool from GP history, it uploads all the data used for that particular run. I believe this is a bad way to do things because first, you could have non-constant data that is very large. For example, I tried sharing out a short tool to my Enterprise portal, but the data I ran the tool against was a mosaic on the large side (10s of GBs). I do not need to publish the mosaic. I only want to share the tool.
I do not think the answer "just run it against something smaller" is correct. That actually highlights a flaw in the way this workflow is designed. Ultimately we need something like this image:
Let me just share the tool.
This would be much cleaner. Unnecessary default values are left blank, and it is up to the analyst/dev to link to any constants (flat files, db's, service endpoints) in creating the tool. There is no need to run the tool, generate a history record, and then publish from the record which feels very cumbersome.
If the history record workflow cannot be changed, please at least offer users an option for which data NEEDS to be uploaded with the tool - all, some, or none. This wouldn't be perfect but would be a big improvement.