#255: Use Config class to simplify access to configuration options --------------------+------------------------------------------------------- Reporter: kparal | Owner: Type: task | Status: new Priority: minor | Milestone: Component: core | Keywords: --------------------+------------------------------------------------------- Currently all our libraries and tests use ConfigParser and parse our configuration files (autoqa.conf, fas.conf, etc) directly. That is not ideal, it involves many lines of code, converting to correct variable types (int, bool), handling default values, and so on.
We should create a Python class Config, which is initialized once in the beginning, and then can be access globally and easily from any other module. It will handle default values and type conversion centrally in one place. Also access will be much easier.
PS: We already have autoqa.config module. Maybe we just don't use it?
#255: Use Config class to simplify access to configuration options --------------------+------------------------------------------------------- Reporter: kparal | Owner: Type: task | Status: new Priority: major | Milestone: Future tasks Component: core | Resolution: Keywords: | --------------------+------------------------------------------------------- Changes (by kparal):
* priority: minor => major * milestone: => Future tasks
#255: Use Config class to simplify access to configuration options --------------------+--------------------------- Reporter: kparal | Owner: kparal Type: task | Status: assigned Priority: major | Milestone: Future tasks Component: core | Resolution: Keywords: | Blocked By: Blocking: | --------------------+--------------------------- Changes (by kparal):
* owner: => kparal * status: new => assigned
Comment:
Patch posted, please review: https://fedorahosted.org/reviewboard/r/253/
#255: Use Config class to simplify access to configuration options --------------------+--------------------- Reporter: kparal | Owner: kparal Type: task | Status: closed Priority: major | Milestone: 0.8.0 Component: core | Resolution: fixed Keywords: | Blocked By: Blocking: | --------------------+--------------------- Changes (by kparal):
* status: assigned => closed * resolution: => fixed * milestone: Future tasks => 0.8.0
Comment:
Fixed in 1bdaf24.
#255: Use Config class to simplify access to configuration options --------------------------+--------------------- Reporter: kparal | Owner: kparal Type: task | Status: closed Priority: major | Milestone: 0.8.0 Component: core | Resolution: fixed Keywords: missing_docs | Blocked By: Blocking: | --------------------------+--------------------- Changes (by kparal):
* keywords: => missing_docs
Comment:
We most probably need to update wiki documentation. Reopening.
#255: Use Config class to simplify access to configuration options --------------------------+----------------------- Reporter: kparal | Owner: kparal Type: task | Status: reopened Priority: major | Milestone: 0.8.0 Component: core | Resolution: Keywords: missing_docs | Blocked By: Blocking: | --------------------------+----------------------- Changes (by kparal):
* status: closed => reopened * resolution: fixed =>
#255: Use Config class to simplify access to configuration options --------------------------+--------------------- Reporter: kparal | Owner: kparal Type: task | Status: closed Priority: major | Milestone: 0.8.0 Component: core | Resolution: fixed Keywords: missing_docs | Blocked By: Blocking: | --------------------------+--------------------- Changes (by kparal):
* status: reopened => closed * resolution: => fixed
Comment:
Docs adjusted:
https://fedoraproject.org/w/index.php?title=Writing_AutoQA_Tests&action=...
https://fedoraproject.org/w/index.php?title=AutoQA_Configuration&action=...
autoqa-devel@lists.fedorahosted.org