-
Notifications
You must be signed in to change notification settings - Fork 1
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
If project with same name exists multiple times, importer will create even more #11
Comments
Tested with this file: First import created 2 projects (as expected). You could debug this place, maybe something is odd with the customer name (try commenting line 419)? ImportBundle/Importer/AbstractTimesheetImporter.php Lines 413 to 421 in 4242799
|
That's right and that never was an issue. 😉 But as soon as those projects are already existing in Kimai (having created them manually AND beforehand and not by an import) the bug appears 😎 |
I really don't get it. I did some more tests on this issue as the dash does not seem to be the cause. But as soon as the project is named In my installation there are multiple projects named |
Just tested, only 4 rows are imported if I create the projects manually before. |
I'm working on it – just a few minutes :-) |
Posting at the same time usually is weird. Take your time, it is Saturday evening anyway... |
This is my project list with a test customer This is the CSV file where the import works:
Changing the name to Pasting it to the CSV file and checking twice that there are no spaces before/after the string. This is the CSV file where the import is creating a new project:
Result - project is being created although it already exists: |
Alright, with that test case, I could reproduce. |
Great to hear that and glad that I could be of some help here 😎 I work around it by just renaming the project temporarily for the import and renaming it back afterwards. As I've just a few customers to import the additional efford is acceptable. By the way: THANKS for this great piece of software. It's a pleasure to use it 🥰
As long as people don't use first and last name as customer names this should not be the case 🤪 If that's not fixable a note in the importer would be enough I think. Every migration needs some manual adjustments so I don't think all edge cases must be addressed at any time by the software. |
Describe the issue
This is just a small bug which I tested with a recent installation of Kimai Docker, with the newest Importer plugin version and with the CSV import. Don't know if the JSON import is affected too.
If the project name contains a dash (e.g. like in the German word
IT-Dienstleistungen
) the Importer plugin always creates a new project for all timesheet entries with this name on each import.What I did:
I precreated a project named
IT-Dienstleistungen
in Kimai and specified the same project name in my CSV file. But the Importer always creates a new project namedIT-Dienstleistungen
which is linked to the specific customer for every import (not every record).As soon as I remove the dash from the precreated project name and adjust the CSV file accordingly it behaves correctly and appends the records to the already existing project in Kimai.
Kimai version
2.9.0
How do you run Kimai?
Docker
The text was updated successfully, but these errors were encountered: