Importing an jsrexport file indicates updates on a second upload even though the jsrexport file did not change
-
Hello dear Jsreport Team!
I've stumbled upon an odd behavior when importing jsrexport files. I could reproduce the same behavior on the newest jsreport locally (currently 4.6.0) as well as on the jsreport playground.
On an empty workspace a template file is created and exporter. Afterwards the file is deleted again.
Now the file should be imported again.gearwheel->import->Select the previously exported file->Validate (with no additional files and the Merge option selected)
The response is "Entity insert: (templates) /TestTemplate" -> Expected behaviorThen, the import step is repeated ( so gearwheel->import->Select the previously exported file->Validate (with no additional files and the Merge option selected) )
The Response now is "Entity update: (templates) /TestTemplate" -> Not expected as there were no changes to the fileOn a third repetition of the import the Response is "Info: No changes to import. Entities are the same than entities in export file" which would be the expected behavior on the second step already.
Is that expected behavior?
Thank you!
Here is my playground -> https://playground.jsreport.net/w/soer84/ur31F6Gc
Unfortunately, I'm not allowed to upload my export file due to lack of privileges on this forum but I think it can be easily recreated out of my playground.
-
Thanks. Yes, I confirm there is an inconsistency in the import validation dialog. However, it should have no significant impact on the data.
Here is the task in the backlog to fix it.
https://github.com/jsreport/jsreport/issues/1170
-
Alrighty! Thanks for me letting me know! I'll follow the github issue then!