Michael Joyce created CLIMATE-79:
------------------------------------

             Summary: regionParameter changes cause a race condition when 
drawing map overlays
                 Key: CLIMATE-79
                 URL: https://issues.apache.org/jira/browse/CLIMATE-79
             Project: Apache Open Climate Workbench
          Issue Type: Bug
          Components: rcmet ui
    Affects Versions: 0.1-incubating
            Reporter: Michael Joyce
            Assignee: Michael Joyce
             Fix For: 0.1-incubating


The ParameterSelectCtrl and WorldMapCtrl share region selection information 
through the regionSelectParams service. Various controllers throughout the 
application use $watch to look for changes to the user selected datasets which 
they get from the selectedDatasetInformation service. When a new dataset is 
added the following events trigger

- The dataset $watch-es trigger in WorldMapCtrl and ParameterSelectCtrl
- WorldMapCtrl now redraws the overlays on the map including the user selected 
region overlay
- ParameterSelectCtrl does some calculations and sets the user selected region 
values

The second and third step are the issue. Often times the regionSelectParams 
data will be invalid or outdated when the WorldMapCtrl does its draw. This 
results in an incorrect or broken overlay.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to