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

Implement import from xml #275

Closed
wants to merge 1 commit into from
Closed

Conversation

DefteZ
Copy link

@DefteZ DefteZ commented Dec 22, 2015

Hello,

this enhancement is not full solution for #247 , but it is first step to resolve it. It can do imprort facts from xml files by "merge" subcommand.

Example:
./hamster-cli merge xml /tmp/09.07.2015-12.31.2015.xml 2015-07-09 2015-12-31

It is some limitations now:

  • only cli tool
  • it assumed that current DB is "main'. Tool do not rewrite existing records anyway.
  • by default it works with last day (as other hamster-cli subcommands)
  • it will not write to DB if there are 'unfinished' activities in the past.

Best regard,
Andrii Danyleiko

@elbenfreund
Copy link
Contributor

elbenfreund commented Jul 6, 2016

Thank you for your feedback, it is much appreciated.

Project hamster and its various sub-components is currently undergoing some major changes. We prepare the introduction of a rewritten codebase for most of the underlying functionality. A direct consequence of this is that it is unlikely that any open/new bugs within the current/old codebase will be fixed (unless someone steps up and offers to do so) as most resources currently available will be invested in making the rewrite prime time ready.

If you are still interested in working on the new codebase (repositories: hamster-lib/cli/gtk/dbus) we would be most thrilled. Please feel free to either open a new issue with the relevant repository and/or join the discussion on the mailinglist.
For more context please see our website.

Thanks for your interest and support! Eric.

@GeraldJansen
Copy link
Contributor

@DefteZ I have built a separate tool here starting from your work. My htool uses a modified version of hamster-cli that only uses the sqlite3 interface to the DB (and not the DBUS interface), thereby making it easier to work with different databases for input or output. Hopefully once current work on hamster v3.x stabilizes this PR can be revived, perhaps integrating my adaptations in htool.

@ederag
Copy link
Collaborator

ederag commented Sep 11, 2019

Looks good !
A separate tool seems the way to go, indeed.
@GeraldJansen, please let me know when you want some advertisement in the README.
Closing then, please ask for reopen if we missed something.
And thanks to both of you for this contribution to hamster improvement !

@ederag ederag closed this Sep 11, 2019
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.

4 participants