Esri / military-tools-geoprocessing-toolbox

military-tools-geoprocessing-toolbox is a collection of models, scripts, and tools for use in ArcGIS for Desktop and ArcGIS Pro. This toolbox is one component that is a part of Military Tools.
Apache License 2.0
33 stars 14 forks source link

Line of Sight GP tool needs checks for valid input parameters #302

Closed kgonzago closed 6 years ago

kgonzago commented 6 years ago

Task to be done 16 May 2018

Expected Behavior

After testing in Pro, the tool can be executed without supplying either an observer or target input parameter. The tool will eventually fail and occasionally will crash ArcGIS Pro entirely.

Current Behavior

Currently, the tool accepts zero to many observers and targets. The tool should accept one to many observers and targets.

Possible Solution

A valid check for observer and target input parameters need to implemented. This will be part of the tool validation process.

Steps to Reproduce (for bugs)

  1. Open Pro
  2. Add a DEM
  3. Launch Line of Sight tool
  4. Add Observers
  5. Do not add Targets
  6. Execute tool

Context

This issue was found when testing the Line of Sight tool on another issue.

Your Environment

kgonzago commented 6 years ago

Issue fixed in this PR

kgonzago commented 6 years ago

Test cases were added and are reflected in this PR

topowright-zz commented 6 years ago

I am looking at the pull request for this issue. https://github.com/Esri/military-tools-geoprocessing-toolbox/pull/313

dfoll commented 6 years ago
topowright-zz commented 6 years ago

IMPEDED -- Needs to be tested from the build. Waiting on the build to be finished. To test any bug or feature it must be tested from a build that has all the unit test passing.

dfoll commented 6 years ago

picked this up to test this morning. The current version of the tool in the build and on dev is faulty in that it does not have all the parameters listed "Targets" is missing from the dialog. Restored @kgonzago branch "kg/302" and the tool looks ok there. Somewhere along the way a PR got merged that broke this tool. Assigning this for now @csmoore or @kgonzago let me know when one of you has time to look at this and I can pick it up again

UPDATE: fixed in PR #332 this can be tested once there is a build 36 or later

kgonzago commented 6 years ago

@dfoll Parameters were incorrect. Fixed it in this PR

dfoll commented 6 years ago

verified in the .pyt with MT build 40