wow-addon-updater icon indicating copy to clipboard operation
wow-addon-updater copied to clipboard

Move config parsing into own class

Open PeachIceTea opened this issue 5 years ago • 4 comments

This moves the parsing of the "config.ini" into its own class and allows certain options to be optional. This useful for multiple reasons:

  • Reduces complexity of AddonManager
  • Allows options to be parsed before AddonManager is initiated

The reason I propose this change is, because I would like the ability to turn off the self updater (#84), which would mean parsing the options earlier. Rather than moving it to "main.py" I feel it would be most appropriate to have it as its own class.

PeachIceTea avatar Oct 09 '19 21:10 PeachIceTea

I see what you did there ;)

I don’t have time to review this probably today, but I like the idea a lot! The config externalization was on my list, but I haven’t been spending a ton of time on the code since I finished splitting off the site module, so I’m more than happy you’re helping!!

grrttedwards avatar Oct 09 '19 21:10 grrttedwards

I am pretty sure there is a humorous bingo of git beginner mistakes that people make constantly and I am close to a bingo :(

The Travis error is weird. I just did a clean clone and install of the branch on another device on another network and it works fine. "test_integration_github_get_latest_version" fails which has nothing to do with this commit since I didn't touch that file.

PeachIceTea avatar Oct 09 '19 21:10 PeachIceTea

Nice change. Most of my comments are just pointing out that there are a ton of formatting changes that aren't necessarily needed -- my personal opinion is that extra noise like that is very bad in PR's

grrttedwards avatar Oct 11 '19 18:10 grrttedwards

The Travis error is weird. I just did a clean clone and install of the branch on another device on another network and it works fine. "test_integration_github_get_latest_version" fails which has nothing to do with this commit since I didn't touch that file.

Yeah something is funky with GitHub, and I'm seeing that fail pretty frequently now. Created an issue for it #90 and fixed #92

grrttedwards avatar Oct 11 '19 20:10 grrttedwards