diff --git a/docs/dev/publicdashboard/Working_with_public_dashboard.md b/docs/dev/publicdashboard/Working_with_public_dashboard.md index 34eb972..fb274fc 100644 --- a/docs/dev/publicdashboard/Working_with_public_dashboard.md +++ b/docs/dev/publicdashboard/Working_with_public_dashboard.md @@ -1,13 +1,10 @@ -# Note on execution of public dashboard to launch the notebook -- First execute `mapping_dictionaries.ipynb` before launching any other notebooks. - # Test Scenario for Public Dashboard changes: 1. Front end testing - Make sure the dropdown menu have valid list of metrics. - Make sure the default charts are loaded at the first instance of loading the website. - Make sure all the charts are being launched or the error table is displayed. 2. Test with loading and unloading different program/study dataset. - - Load different datasets, run the scripts to execute the notebooks to make sure the charts are being generate properly. + - Load different datasets, run the scripts to execute the notebooks and make sure the charts are generated properly. - Between datasets, drop the old dataset and load the new dataset. - Also check with empty MongoDB. 3. After the code has been merged, validate the changes on the staging environment. @@ -91,7 +88,6 @@ $ (emission) root@06f07def2c0e:/usr/src/app# cd saved-notebooks - Note: Make sure the `Year` and `Month` parameter for the executing notebook is not `None` while executing the `generate_plots.py` script. If it's set to None, it will not generate the charts. Execution of notebooks ``` -$ (emission) root@06f07def2c0e:/usr/src/app/saved-notebooks# PYTHONPATH=.. python bin/update_mappings.py mapping_dictionaries.ipynb $ (emission) root@06f07def2c0e:/usr/src/app/saved-notebooks# PYTHONPATH=.. python bin/generate_plots.py generic_metrics.ipynb default ``` Refer to additional notebooks from https://github.com/e-mission/em-public-dashboard/blob/main/viz_scripts/docker/crontab @@ -128,4 +124,4 @@ https://openpath-stage.nrel.gov/public/?study_config=ebikegj # Existing issue with browser caching the old chart data - While testing the changes, it's a good idea to clear up the cache and reload the webpage to make sure the latest charts are loaded. -- Always better to validate the changes via. the timestamp under the charts and the timestamp of generation of charts. \ No newline at end of file +- Always better to validate the changes via. the timestamp under the charts and the timestamp of generation of charts.