wmbeers / cmv-app

CMV - The Configurable Map Viewer - A community supported open source mapping framework built with the Esri JavaScript API and the Dojo Toolkit
https://demo.cmv.io/
MIT License
1 stars 2 forks source link

Alternatives tagged as study areas should only allow polygons to be added. #20

Closed wmbeers closed 4 years ago

wmbeers commented 4 years ago

How often can you reproduce it?

Description:

If a project alternative is tagged as a study area, our system only allows digitizing polygons. However, the user is still presented with the option to digitize points and lines, and receives a vague growler error after digitizing one:

image

"Internal error during object insert"

The following is emailed to errors@fla-etat.org:

ORA-20000: cannot create a point as part of a designated ACE Study Area

ORA-06512: at "ETDMV3STAGE.T_PROJECT_POINT_CKSTUDYAREA", line 22 ORA-06512: at "ETDMV3STAGE.T_PROJECT_POINT_CKSTUDYAREA", line 15 ORA-06512: at "ESTDATAV3STAGE.S_INPUT_POINTS_INS", line 27

Steps to reproduce:

  1. Find an editable alternative with Study Area flag set to "Y"
  2. Start editing
  3. Digitize a point or a line.

Expected results:

Options for creating points and lines are enabled, but an error occurs when digitizing finishes.

Actual results:

Error message "Internal error during object insert" is shown.

wmbeers commented 4 years ago

See https://repo.fla-etat.org/bugzilla/show_bug.cgi?id=5570

wmbeers commented 4 years ago

Code verified in production.