NatLabRockies / NatLabRockies/OpenStudio

Changing in case of file names creates isues with measure XML update

Open
#1,147 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

component - Measure Manager severity - Minor Bug
Dominant language
C++
Stars
646
Forks
237
Avg merge
3d 11h
Merged PRs (30d)
10

Description

I changed the case of a name of my measure test and updated the XML. It added a new file and did not remove the old one. I can manually fix this, but maybe our update process can take case into account?

  <files>
    <file>
      <version>
        <software_program>OpenStudio</software_program>
        <identifier>0.10.2</identifier>
      </version>
      <filename>measure.rb</filename>
      <filetype>rb</filetype>
      <usage_type>script</usage_type>
      <checksum>95A9EBA3</checksum>
    </file>
    <file>
      <filename>find_and_replace_in_all_thermal_zone_names_Test.rb</filename>
      <filetype>rb</filetype>
      <usage_type>test</usage_type>
      <checksum>2825088A</checksum>
    </file>
    <file>
      <filename>find_and_replace_in_all_thermal_zone_names_test.rb</filename>
      <filetype>rb</filetype>
      <usage_type>test</usage_type>
      <checksum>2825088A</checksum>
    </file>
    <file>
      <filename>ImportedIdf_RefFsr.osm</filename>
      <filetype>osm</filetype>
      <usage_type>test</usage_type>
      <checksum>3740003C</checksum>
    </file>
    <file>
      <filename>test_imported_idf_model_results.osm</filename>
      <filetype>osm</filetype>
      <usage_type>test</usage_type>
      <checksum>D2E90A2C</checksum>
    </file>
  </files>

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the measure XML update process that records the filenames shown in the issue, then reproduce the case-only rename from find_and_replace_in_all_thermal_zone_names_Test.rb to find_and_replace_in_all_thermal_zone_names_test.rb. Done means the updated XML contains only the current filename and does not retain the old-case entry.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, ruby
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.