Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions docs/dev/publicdashboard/Working_with_public_dashboard.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
- Always better to validate the changes via. the timestamp under the charts and the timestamp of generation of charts.