Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix for #83 - materialsmonitor #176

Merged
merged 4 commits into from
Oct 23, 2017
Merged

Conversation

Tkael
Copy link
Member

@Tkael Tkael commented Oct 22, 2017

This should be safe, but backup your materialsmonitor.json before testing just in case.

  • Revises the material so that it consistently uses the edname as a key, rather than using a mixture of the material name and the material edname (collectively: material). Add edname to the json.
  • Preserves current user settings while converting to the new edname version of the json
  • Adds a DeprecatedMaterials function to Materials.cs to identify and prune old data (this will be obsolete / no longer required once everyone is transitioned from the current json format)
  • Revises logic to make the materialsmonitor more "self-healing". The 1st time is is run it'll add an EDName to all of the entries in materialmonitor.json. The 2nd time, it'll identify any entries with the duplicate EDNames and select entries such that only one EDName shall be allowed for each material. (This happens often enough naturally that programming a loop to iterate through this process isn't necessary.)

…tor.json files but you may want to create a backup for testing this branch just to be safe.

- Revises the material so that it consistently uses the edname as a key, rather than using a mixture of the material name and the material edname (collectively: material). Add edname to the json.
- Preserves current user settings while converting to the new edname version of the json
- Adds a DeprecatedMaterials function to Materials.cs to identify and prune old data (this will be obsolete / no longer required once everyone is transitioned from the current json format)
- Revises logic to make the materialsmonitor more "self-healing". The 1st time is is run it'll add an EDName to all of the entries in materialmonitor.json. The 2nd time, it'll identify any entries with the duplicate EDNames and select entries such that only one EDName shall be allowed for each material. (This happens often enough naturally that programming a loop to iterate through this process isn't necessary.)
Copy link
Member

@richardbuckle richardbuckle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pushed a few tidy-ups that use C# 6 features to make the code a bit more readable without changing the semantics. Otherwise fine.

@richardbuckle richardbuckle merged commit b098eec into develop Oct 23, 2017
@richardbuckle richardbuckle deleted the BugFix/83-materialmonitor branch October 23, 2017 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants