-
Notifications
You must be signed in to change notification settings - Fork 250
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
Verbatim database read/write #466
Conversation
Errors raise exceptions. Resisted the temptation to return negative values on errors. (less pythonic, and the exception stack trace is useful)
I fetched and checked out ederag/verbatim-db, 68c7381, and did this:
Same error when saving after trying the same input from the edit_activity window, activity field. Giving the same input on the cmdline continues to move the part after the comma to the description field as in #280. At this point I must admit that I'm somewhat confused. |
@GeraldJansen Could it be that Could you try to launch the new hamster-service first ? pkill -ef hamster.*service
./hamster-service
./hamster-cli track a long, hard furrow If a service is already found running, it is used. |
By the way, using your example gives an "a" in activity, the rest is lost. |
Right, of course. Sorry for the noise. OT. Now getting this error message every minute on update: On a plus note, I don't find any noticeable slowdown in auto-completion from the cmdline. Its still very snappy for me. |
Thanks, this one slipped under the radar. |
Yes. Good guess. |
A small bug (edge case?): if I update an activity that has a category, clear the category and save, the saved fact still has the old category, not Unsorted. |
Indeed, that's because after clear the fact has no category.
That needs a 3 lines only fix, ready, but unfortunately it is slightly breaking the dbus interface: |
No further comment. As an aside, I've always found the |
With this PR database read/write is done verbatim, without any parsing involved.
This makes a clear separation of concerns.
It partially solves #280 and #423,
although that requires renouncing to the quickness of the cmdline input, until #465 is solved.
This change should not affect the existing dbus interface (old functions have been kept).
The new
AddFactVerbatim
is strongly encouraged if the caller has separate fields.The old
AddFact
will remain so that passing a single string will remain possible,to be interpreted by
Fact.parse
on the hamster side.Unsorted (no category) facts are not supported yet (forthcoming PR almost ready).