OpenStudioApplication icon indicating copy to clipboard operation
OpenStudioApplication copied to clipboard

Measures list is not updated after download from BCL

Open jmarrec opened this issue 3 years ago • 4 comments

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

  1. Go "Measures" tab
  2. Click "Find Measures"
  3. Download a measure, for eg "set window to wall ratio". Close dialog
  4. Measures list is not updated, there are zero measures under Envelope > Fenestration.
  5. 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

jmarrec avatar May 06 '22 11:05 jmarrec

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)

macumber avatar May 11 '22 03:05 macumber

Probably also need a "Downloading" dialog while downloading updates

macumber avatar May 11 '22 03:05 macumber

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

macumber avatar May 13 '22 05:05 macumber

And now after clicking around a bit more it did finally detect the update....

macumber avatar May 13 '22 05:05 macumber