-
Notifications
You must be signed in to change notification settings - Fork 18
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
[#182] Fix compatibility with hamster-lib 0.13 #183
Conversation
The changes also broke raw facts without a start time, that should probably be fixed in hamster-lib. See projecthamster/hamster-lib@f8b16cf#diff-dcf70660b8bbb2102574bb4e2f86556dR345-R347 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit does in fact do two things:
- swap 'hamster-gtk's get_config_instance in favour of the new
hamster-lib.config_helpers.load_config_file
- Move the entire app namespace from something
hamster-gtk
specific to the genericprojecthamster
namespace.
the 1st change is unproblematic.
The 2nd change is something I understand the reasoning very well and ponder how to do this properly for a while now. However, at the very least it should be a separate PR as this does not really relate to the changes to hamster-lib (other than that it proves default values).
I personally always thought that "app specific" namespaces are just as valid as a generic "projecthamster" one-for-all... I can see reasons for both.
In light of this I always envisioned that once we get there we provide a flag that can be passed at program invocation that governs where the program looks for its data and config. This should not be too complicated but I did not document so far...
I can revert to the |
Oh, and about the time parsing: this most likely should be a separate issue... |
1518692
to
e044e3f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In order to avoid instantiating several HamsterAppDir instances via self._get_appdir
maybe it would be better to do this once in the App instance and just reuse it like so app._appdir
?
e044e3f
to
61f2e7e
Compare
``hamster-lib 0.13.0`` changes the interface of the configuration helpers in a backwards incompatible way. The now unnecessary helper was also removed. Closes: #182
15e43b6
to
d2e87f4
Compare
This PR updates our dependencies to require
hamster-lib>=0.13.0
. As this introduces backwards incompatible changes with regards to the config helper, some additional compatibility fixes are included as well.Closes: #182