-
Notifications
You must be signed in to change notification settings - Fork 6
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 is_primary bool to function hierarchic vl #70
Conversation
@@ -53,6 +53,17 @@ SET order_fct_hierarchic= | |||
] | |||
,code); | |||
|
|||
-- this column is an extension to the VSA data model and facilitates filtering out primary features | |||
ALTER TABLE tww_vl.channel_function_hierarchic ADD COLUMN is_primary bool; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cymed With our naming convention it should be _is_primary - isn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or tww_is_primary (see #164)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cymed Would also be good to add the DEFAULT FALSE in the adaptions you made to tww_od.organisation see https://github.com/teksi/wastewater/pull/150/files ALTER TABLE tww_od.organisation ADD COLUMN _active bool; |
Plugin test error https://github.com/teksi/wastewater/actions/runs/7898133040/job/21554937421?pr=70 |
Tagging @sjib for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tww_is_primary instead of is_primary to be consistent with #164
Many functionalities such as SWMM or MIKE exports allow filtering elements of the primary wastewater network. Up to now, all those scripts hardcode a list of primary entries in tww_vl.channel_function_hierarchic, making it cumbersome for people that use vl extensions. To facilitate the exports (and make them quicker), I suggest adding a datamodel extensions in the vl table.