Skip to content

Bug: Double import duplicates time entries #894

@amsmith-pro

Description

@amsmith-pro

Description

I exported my solidtime data to a .zip file from an existing instance with the "Export" functionality.

On a fresh self-hosted instance with no projects, time entries, clients, etc., I used the "Import" functionality with the "Solidtime" option and gave it the export .zip.

All projects, clients, tasks, and time entries were imported as expected.

Just to test, I did the import again to see if there would be duplications. The result was 0 projects, 0 clients, 0 tasks, and N time entries created:

Image

And sure enough, in the time tracking all of my time entries were doubled.

So it looks like projects, clients, and tasks are checked for duplication when imported, but time entries aren't being checked for duplication.

Steps To Reproduce

  1. Use the "Export" functionality from an existing instance with nonzero number of projects, clients, tasks, and time entries.
  2. Start a new instance with no entries or projects
  3. Login as admin user
  4. Import the exported .zip twice.

Self-hosted or Cloud?

Self-Hosted

Version of solidtime: (for self-hosted)

0.9

solidtime self-hosting guide: (for self-hosted)

https://docs.solidtime.io/self-hosting/guides/docker

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions