Measures list is not updated after download from BCL
Issue overview
Current Behavior
After downloading a measure from the BCL, I had to switch tabs and go back to the "Measures" tab to see it in the "Library"
Expected Behavior
It should be updated
Steps to Reproduce
- Go "Measures" tab
- Click "Find Measures"
- Download a measure, for eg "set window to wall ratio". Close dialog
- Measures list is not updated, there are zero measures under Envelope > Fenestration.
- Switch to another tab and come back: this time the measure is there
Possible Solution
It may be due to changes in #517
Details
Environment
Some additional details about your environment for this issue (if relevant):
- Platform (Operating system, version):
- Version of OpenStudioApplication (if using an intermediate build, include SHA):
Context
cf #519
We probably need to test the case of downloading a measure from BCL, updating on BCL, downloading an update in the app so more. I had an old OpenStudio Results measure and it did not seem to be updating correctly to the new one. Solution was to delete the BCL measures dir and re-download (not great)
Probably also need a "Downloading" dialog while downloading updates
I think this issue is more serious. I had an old version of OpenStudio Results Measure in my BCL dir and in my current model. The new feature found and downloaded the new version of the measure to my BCL dir. However, after that, the Synch Project Measures with Library button did not detect an updated measure and update the model, even after restarting the OS App and deleting/re-adding the measure.
Both measures were listed in the local component database's measures table:
a25386cd-60e4-46bc-8b11-c755f379d916 1d1137b1-f65f-4af8-86cd-8137e43fd36f openstudio_results This measure creates high level tables and charts pulling both from model inputs and EnergyPlus results. It has building level information as well as detail on space types, thermal zones, HVAC systems, envelope characteristics, and economics. Click the heading above a chart to view a table of the chart data. This measure creates high level tables and charts pulling both from model inputs and EnergyPlus results. It has building level information as well as detail on space types, thermal zones, HVAC systems, envelope characteristics, and economics. Click the heading above a chart to view a table of the chart data. 2019-12-31 18:05:54 2019-12-31 18:05:54 a25386cd-60e4-46bc-8b11-c755f379d916 813ebcc3-c480-491c-9934-c1bcd1a1a478 openstudio_results This measure creates high level tables and charts pulling both from model inputs and EnergyPlus results. It has building level information as well as detail on space types, thermal zones, HVAC systems, envelope characteristics, and economics. Click the heading above a chart to view a table of the chart data. This measure creates high level tables and charts pulling both from model inputs and EnergyPlus results. It has building level information as well as detail on space types, thermal zones, HVAC systems, envelope characteristics, and economics. Click the heading above a chart to view a table of the chart data. 2022-05-12 23:22:00 2022-05-12 23:22:00
And now after clicking around a bit more it did finally detect the update....