Skip to content

Bolt overrides each instance when edit is called #128

@PossibleLlama

Description

@PossibleLlama

Describe the bug
Edit updates the reference in bolt instead of creating a new log. Noticed during work to export all revisions.

To Reproduce
Steps to reproduce the behaviour:
(you'll need go install go.etcd.io/bbolt/cmd/bbolt@latest to view the database entries.

  1. worklog create --title "foo"
  2. worklog edit <abc> --title "bar"
  3. bbolt keys ~/.worklog/worklog.db Work - This will show 1 item, whereas it should show 2.

Expected behaviour
Each edit will create a new (and separate) log, all of which can be retrieved.

Environment (please complete the following information):

  • OS: Linux Debian
  • Version 0.6.11

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions