zubroide / gitpab

Calculate time spent on Gitlab tasks for every contributor
112 stars 32 forks source link

import:all seems to import same items every time its syncing #109

Closed KeldNielsen86 closed 1 year ago

KeldNielsen86 commented 1 year ago

I setup a schedule (crontab) to import every hour, and output result into a log. and during the night, there has not been any activity in my gitlab, however the result of the import keep saying that new stuff has been imported look at log below

2022-11-20 01:00
+--------------------+----------+
| Entity             | Imported |
+--------------------+----------+
| projects           | 7        |
| project_milestones | 5        |
| group_milestones   | 0        |
| issues             | 7        |
| notes              | 195      |
+--------------------+----------+

2022-11-20 02:00
+--------------------+----------+
| Entity             | Imported |
+--------------------+----------+
| projects           | 7        |
| project_milestones | 5        |
| group_milestones   | 0        |
| issues             | 7        |
| notes              | 195      |
+--------------------+----------+

2022-11-20 03:00
+--------------------+----------+
| Entity             | Imported |
+--------------------+----------+
| projects           | 7        |
| project_milestones | 5        |
| group_milestones   | 0        |
| issues             | 7        |
| notes              | 195      |
+--------------------+----------+

2022-11-20 04:00
+--------------------+----------+
| Entity             | Imported |
+--------------------+----------+
| projects           | 7        |
| project_milestones | 5        |
| group_milestones   | 0        |
| issues             | 7        |
| notes              | 195      |
+--------------------+----------+
KeldNielsen86 commented 1 year ago

For me it seems that same item keep being imported, I am afraid that something might be duplicated, and worse case make a mess in my time registration. in case time spend is some of the duplicated import

mnvx commented 1 year ago

Do not worry. This is not a bug, but the feature) Need to query from the last loaded item to avoid skipping something. Twice-loaded items will not be duplicated.

KeldNielsen86 commented 1 year ago

thank you for your answer ;)