Correct Location Delete with new Geometry table. - #201
Conversation
|
NOTE: still need to add test for deleting sublocations, but otherwise gives the sense of what needs to happen. E.G. at_location_geometry should be treated as "part of the location" for delete and not need _all or _cascade to be specified. If the location is deleted, the geometry just dies. |
Tests and fixes were added. |
| <exec executable="utplsql" resultproperty="utreturn"> | ||
| <arg value="run"/> | ||
| <arg value="-p=${oracle.cwms.user}.test_cwms_rating,${oracle.cwms.user}.test_cwms_text,${oracle.cwms.user}.test_lrts_updates,${oracle.cwms.user}.test_probability_parameter,${oracle.cwms.user}.test_cwms_loc,${oracle.cwms.user}.test_cwms_ts,${oracle.cwms.user}.test_cwms_util,${oracle.cwms.user}.test_cwms_err,${oracle.cwms.user}.test_versioned_time_series,${oracle.cwms.user}.test_update_ts_extents,${oracle.cwms.user}.test_cwms_pool,${oracle.cwms.user}.test_timeseries_snapping,${oracle.cwms.user}.test_cwms_cat,${oracle.cwms.user}.test_cwms_msg,${oracle.cwms.user}.test_cwms_level,${oracle.cwms.user}.test_cwms_water_supply,${oracle.cwms.user}.test_cwms_display,${oracle.cwms.user}.test_cwms_data_dissem,${oracle.cwms.user}.test_cwms_stream,${oracle.cwms.user}.test_cwms_measurements,${oracle.cwms.user}.test_cwms_fcst,${oracle.cwms.user}.test_cwms_forecast,${oracle.cwms.user}.test_cwms_xchg,${oracle.cwms.user}.test_cwms_cache"/> | ||
| <!-- <arg value="-p=${oracle.cwms.user}.test_cwms_rating,${oracle.cwms.user}.test_cwms_text,${oracle.cwms.user}.test_lrts_updates,${oracle.cwms.user}.test_probability_parameter,${oracle.cwms.user}.test_cwms_loc,${oracle.cwms.user}.test_cwms_ts,${oracle.cwms.user}.test_cwms_util,${oracle.cwms.user}.test_cwms_err,${oracle.cwms.user}.test_versioned_time_series,${oracle.cwms.user}.test_update_ts_extents,${oracle.cwms.user}.test_cwms_pool,${oracle.cwms.user}.test_timeseries_snapping,${oracle.cwms.user}.test_cwms_cat,${oracle.cwms.user}.test_cwms_msg,${oracle.cwms.user}.test_cwms_level,${oracle.cwms.user}.test_cwms_water_supply,${oracle.cwms.user}.test_cwms_display,${oracle.cwms.user}.test_cwms_data_dissem,${oracle.cwms.user}.test_cwms_stream,${oracle.cwms.user}.test_cwms_measurements,${oracle.cwms.user}.test_cwms_fcst,${oracle.cwms.user}.test_cwms_forecast,${oracle.cwms.user}.test_cwms_xchg,${oracle.cwms.user}.test_cwms_cache"/> --> |
There was a problem hiding this comment.
consider deleting if not needed.
There was a problem hiding this comment.
... oops, that change wasn't supposed to get in, that was to make the tests run faster locally.
| if [ $? -ne 0 ]; then echo "Failed to stop db?"; exit 6; fi | ||
|
|
||
| # ant docker.push -Dteamcity.branch=${BRANCH}_${AGENT} -Denv.USER=$AGENT -Denv.BUILD_NUMBER=1 -Ddryrun=true -Ddocker.registry=testregistry $* | ||
| # ant docker.push -Dteamcity.branch=${BRANCH}_${AGENT} -Denv.USER=$AGENT -Denv.BUILD_NUMBER=1 -Ddryrun=true -Ddocker.registry=testregistry -Doracle.image=$ORACLE_IMAGE $* |
There was a problem hiding this comment.
This one is intentionally for when that needs to be tested, but since it's an external operation I didn't want it active by default.
MikeNeilson
left a comment
There was a problem hiding this comment.
Someone feel free to take this over, at least for the build.xml reset anyways, while I'm gone, otherwise I'll get back to it Friday.
| <exec executable="utplsql" resultproperty="utreturn"> | ||
| <arg value="run"/> | ||
| <arg value="-p=${oracle.cwms.user}.test_cwms_rating,${oracle.cwms.user}.test_cwms_text,${oracle.cwms.user}.test_lrts_updates,${oracle.cwms.user}.test_probability_parameter,${oracle.cwms.user}.test_cwms_loc,${oracle.cwms.user}.test_cwms_ts,${oracle.cwms.user}.test_cwms_util,${oracle.cwms.user}.test_cwms_err,${oracle.cwms.user}.test_versioned_time_series,${oracle.cwms.user}.test_update_ts_extents,${oracle.cwms.user}.test_cwms_pool,${oracle.cwms.user}.test_timeseries_snapping,${oracle.cwms.user}.test_cwms_cat,${oracle.cwms.user}.test_cwms_msg,${oracle.cwms.user}.test_cwms_level,${oracle.cwms.user}.test_cwms_water_supply,${oracle.cwms.user}.test_cwms_display,${oracle.cwms.user}.test_cwms_data_dissem,${oracle.cwms.user}.test_cwms_stream,${oracle.cwms.user}.test_cwms_measurements,${oracle.cwms.user}.test_cwms_fcst,${oracle.cwms.user}.test_cwms_forecast,${oracle.cwms.user}.test_cwms_xchg,${oracle.cwms.user}.test_cwms_cache"/> | ||
| <!-- <arg value="-p=${oracle.cwms.user}.test_cwms_rating,${oracle.cwms.user}.test_cwms_text,${oracle.cwms.user}.test_lrts_updates,${oracle.cwms.user}.test_probability_parameter,${oracle.cwms.user}.test_cwms_loc,${oracle.cwms.user}.test_cwms_ts,${oracle.cwms.user}.test_cwms_util,${oracle.cwms.user}.test_cwms_err,${oracle.cwms.user}.test_versioned_time_series,${oracle.cwms.user}.test_update_ts_extents,${oracle.cwms.user}.test_cwms_pool,${oracle.cwms.user}.test_timeseries_snapping,${oracle.cwms.user}.test_cwms_cat,${oracle.cwms.user}.test_cwms_msg,${oracle.cwms.user}.test_cwms_level,${oracle.cwms.user}.test_cwms_water_supply,${oracle.cwms.user}.test_cwms_display,${oracle.cwms.user}.test_cwms_data_dissem,${oracle.cwms.user}.test_cwms_stream,${oracle.cwms.user}.test_cwms_measurements,${oracle.cwms.user}.test_cwms_fcst,${oracle.cwms.user}.test_cwms_forecast,${oracle.cwms.user}.test_cwms_xchg,${oracle.cwms.user}.test_cwms_cache"/> --> |
There was a problem hiding this comment.
... oops, that change wasn't supposed to get in, that was to make the tests run faster locally.
| if [ $? -ne 0 ]; then echo "Failed to stop db?"; exit 6; fi | ||
|
|
||
| # ant docker.push -Dteamcity.branch=${BRANCH}_${AGENT} -Denv.USER=$AGENT -Denv.BUILD_NUMBER=1 -Ddryrun=true -Ddocker.registry=testregistry $* | ||
| # ant docker.push -Dteamcity.branch=${BRANCH}_${AGENT} -Denv.USER=$AGENT -Denv.BUILD_NUMBER=1 -Ddryrun=true -Ddocker.registry=testregistry -Doracle.image=$ORACLE_IMAGE $* |
There was a problem hiding this comment.
This one is intentionally for when that needs to be tested, but since it's an external operation I didn't want it active by default.
085d194 to
07dfa03
Compare
Will implement fix later. Commentary certainly welcome.
Pretty sure it just needs the addition of "delete_loc" in the check for delete at_location_geometry.
But also need to expand test to include sub locations.