Esri / crowdsource-reporter

An ArcGIS Online group application template authored by organization and made available to constituents to report a problem or observation.
http://solutions.arcgis.com/local-government/help/crowdsource-reporter/
Apache License 2.0
25 stars 32 forks source link

The status bar display is inconsistent in the Citizen Problem Report web application from the Citizen Problem Reporter Solution. #540

Closed aparveen closed 1 year ago

aparveen commented 1 year ago
  1. Deploy the Citizens Problem Reporter Solution
  2. Open the Citizen Problem Reporter web map in Map Viewer Classic
  3. Add a feature point and fill in the necessary information
  4. View the pop-up for the feature just added. Observe that the status bar for the feature is displayed
  5. Save the web map.
  6. Open the Citizens Problem Reporter web application and sign in to continue
  7. View the point just added in Map Viewer Classic
  8. Notice that the status bar is no longer there
  9. Go back to the list of requests and Select +Submit a Request
  10. Drop a point and fill out the necessary info
  11. Click Report It to save the feature you created
  12. Select the Request just created from the list of Requests
  13. The pop-up information for the feature displays. You should see a bar above the Status indicating the status of the request
  14. Close the Web application
  15. Reopen the web application
  16. Select the same feature that was just created in the web app from the List of Requests.
  17. Notice the pop-up information for the feature will display, but this time that the status bar is gone
  18. Additionally you can again try to view the pop-up information for the feature added via Map Viewer Classic and the status bar does not appear (video attached demonstrates this exact workflow)

Important things to Note

  1. No configurations or changes are made to the solution and pop-up.
  2. If you navigate back to the web map and select both features added to display their pop-up information, that status bar is visible for both features. MVC_CPR_Popup.png
  3. If you open the Citizen Problem Manager web app (which uses the same web map as the Citizen Problem Reporter web app) the status bar for both features also displays as expected
  4. If you instead create the feature (submit the request) in the web map in the new Map Viewer, that feature will show the status bar consistently in the web application. (do not want to include this as a workaround because according to the Solutions team, "the Citizen Problem Reporter web app is a configuration of the Crowdsource Reporter configurable app template which is built with the Javascript 3.x. As a result, the web map was built using the Map Viewer Classic and needs to be edited/modified using Map Viewer Classic") a. If features are added/edited in Map Viewer the features that are added in the web application still inconsistently display that status bar
  5. This behavior was also tested in https://csc-kpurcell10d.esri.com/ which is 11.0 portal, but the issue does not occur. a. same workflow, deploy the solution, submit the response, close and reopen the application. The status bar will remain visible for the feature
aparveen commented 1 year ago

Test Map: https://statelocaltryit.maps.arcgis.com/apps/mapviewer/index.html?webmap=41187b5344dd43119097f4a98ed688d9 Test App: https://statelocaltryit.maps.arcgis.com/apps/CrowdsourceReporter/index.html?appid=8b7d86d2ffa642ca9a38388d3e4d7a16

aparveen commented 1 year ago

@sumitzarkar

aparveen commented 1 year ago

Notice that the status bar is missing from arcade expression image

aparveen commented 1 year ago

@sumitzarkar still seeing this issue when clicking a feature on the map image

Patching will resume on this Thursday again, could you please check if you can find a fix for this?

aparveen commented 1 year ago

As Sumit mentioned, the issue is in our APP only.  We have a code to set "No value string" in the attributes when the attribute value is null or empty.  when the fields with type date or integer is having null values we were setting "no value string" and this is causing the arcade expression to break. Sumit updated the code to set this 'No Value string' only for string fields and then the arcade expressions is working fine. 

aparveen commented 1 year ago

Verified