Skip to content
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

add test for tww_sys tables #119

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

add test for tww_sys tables #119

wants to merge 5 commits into from

Conversation

3nids
Copy link
Contributor

@3nids 3nids commented Jan 31, 2024

we have tables in the od schema which are not listed in tww_sys.dictionnary_od_table:

reach_text => ?
wastewater_structure_text => ?
catchment_area_text => ?
reach_progression_alternative => ?
_planning_zone => ?
_aquifier => ?
wastewater_structure_symbol => ?

import_manhole_quarantine => should be skipped
network_node => should be skipped
network_segment => should be skipped

@sjib can you add the missing tables or explain what to do?

@3nids 3nids requested a review from sjib January 31, 2024 10:29
@domi4484
Copy link
Contributor

domi4484 commented Feb 1, 2024

@sjib in tww_sys.dictionary_od_field the field name is often wrong for geometry fields. For example for reach_point is named situation and not situation3d_geometry. Or it is intended to be like that?

@sjib sjib mentioned this pull request Feb 1, 2024
2 tasks
@sjib
Copy link
Contributor

sjib commented Feb 1, 2024

@sjib in tww_sys.dictionary_od_field the field name is often wrong for geometry fields. For example for reach_point is named situation and not situation3d_geometry. Or it is intended to be like that?

@domi4484 Should be solved now in #110 with a95560d

  • I changed it in field_name
  • field_name_en keeps situation resp. progression, as this is the display name

@sjib
Copy link
Contributor

sjib commented Feb 1, 2024

we have tables in the od schema which are not listed in tww_sys.dictionnary_od_table:
_planning_zone => ? _aquifier => ?

@3nids Here I have to create two additional tww_dictionary_ files that corresponds to

  • 51_aquifier_2015.sql
  • 52_planning_zone_2015.sql

@sjib
Copy link
Contributor

sjib commented Feb 1, 2024

Extra issue added: #134

@3nids
Copy link
Contributor Author

3nids commented Feb 2, 2024

(once this is merged, I'll add a test for the attributes)

sjib added a commit that referenced this pull request Feb 7, 2024
- [x] not adddataowner and provider in dictionary table in _text - as not existing in datamodel
- [x] delete dataowner and provider in dictionary table in _text - as not existing in datamodel
- [x] rename tablename in dictionary field to re_* - else linking not working
- [x] check attributes geometry - see #119 (comment)
- [ ] check entries for extra_tables _* (currently _planning_zone and _aquifier) - see #119 (comment) - Moved to extra issue #134 and pull request (to be defined)
- [x] adding reach_progression_alternative to dictionary tables in tww_sys
- [x] adding wastwater_structure_text, reach_text, catchment_text to dictionary tables in tww_sys
3nids pushed a commit that referenced this pull request Feb 7, 2024
…lternative) (#151)

* various fixes

[x]  add DEFERRABLE INITIALLY DEFERRED also to re_table tww_od.re_building_group_disposal
[x] delete txt_symbol
[x] delete txt_text
[x] delete progression_alternative - replace by reach_progression_alternative
[x] fk_operating_company DEFERRABLE
[x] wx class shortcut adde for wastewater_structure_text
[x] rx class shortcut adde for reach_text
[x] cx class shortcut adde for catchment_area_text
[x] bx class shortcut adde for wastewater_structure_symbol
[x] reach_progression_alternative.fk_reach added

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fixes 09_tww_dictionaries

- [x] not adddataowner and provider in dictionary table in _text - as not existing in datamodel
- [x] delete dataowner and provider in dictionary table in _text - as not existing in datamodel
- [x] rename tablename in dictionary field to re_* - else linking not working
- [x] check attributes geometry - see #119 (comment)
- [ ] check entries for extra_tables _* (currently _planning_zone and _aquifier) - see #119 (comment) - Moved to extra issue #134 and pull request (to be defined)
- [x] adding reach_progression_alternative to dictionary tables in tww_sys
- [x] adding wastwater_structure_text, reach_text, catchment_text to dictionary tables in tww_sys

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@3nids 3nids closed this Feb 7, 2024
@3nids 3nids reopened this Feb 7, 2024
@ponceta ponceta closed this Apr 8, 2024
@ponceta ponceta reopened this Apr 8, 2024
@ponceta
Copy link
Member

ponceta commented Apr 8, 2024

Datamodel test should now only fail on import and network classes

@ponceta
Copy link
Member

ponceta commented Apr 8, 2024

E AssertionError: Lists differ: ['network_node', 'import_manhole_quarantine', 'network_segment'] != []
E
E First list contains 3 additional elements.
E First extra element 0:
E 'network_node'
E
E - ['network_node', 'import_manhole_quarantine', 'network_segment']
E + []

datamodel/test/test_sys.py:45: AssertionError

Fails successfully! :)

@ponceta ponceta closed this May 27, 2024
@ponceta ponceta reopened this May 27, 2024
@ponceta ponceta changed the title add test for twww_sys tables add test for tww_sys tables May 28, 2024
@sjib
Copy link
Contributor

sjib commented Dec 19, 2024

@ponceta When should we integrate this 2024.1?

@ponceta ponceta added this to the Future milestone Dec 20, 2024
@ponceta ponceta added the CI/CD continuous integration/deployment label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/CD continuous integration/deployment sustainability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants