-
Notifications
You must be signed in to change notification settings - Fork 5
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
INTERLIS Import: Data in re_tables is ducplicated when re-importing #365
Comments
|
@ponceta Can we ask opengis to code this new |
Datacheck in re_classes moved to new issue #365
Should we do for tww_od.re_building_group_disposal
this would then be
or
@cymed @ponceta Do you know what is the difference? Pro / Con? |
Do we also want to implement the UNIQUE constraint of class organisation?
|
Datacheck in re_classes moved to new issue #365 Link table don't exists for KEK
This should not happen anymore since #414 was merged. |
Describe the bug
A clear and concise description of what the bug is.
When re-importing the same dataset or another dataset in a existing database with data it does not check if there is already the same data in the re_tables. This leads to duplicates in re_maintenance_event_wastewater_structure and re_building_group_disposal.
To Reproduce
Re-import a dataset with re_data a second time and check your re_table in postgres
Expected behavior
A clear and concise description of what you expected to happen.
On import it should be checked as with all other tables if there is already a dataset with the same combination fk_1 / fk_2.
The function
create_or_update
should be enhanced or an new function should be written that checks on the two fk_* attributes of a n:m re_table instead of the obj_id if there is already the same dataset in there.Screenshots / data
If applicable, add screenshots or data to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
Tests with
create_re_class_entry
do not work as expected - moved to this new issueteksi_wastewater.utils:Not supported n:m relation class: - please open an issue to add this to interlis_importer_to_intermediate_schema configuration
So it does not find the cls
and function call
Originally posted by @sjib in #357 (comment)
The text was updated successfully, but these errors were encountered: