-
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
Create vw_tww_additional_wastewater_structure. #42
Conversation
Tackles teksi#38 additional ws types are handled separately to not blow up the main ws view. Also, no extra-cols are allowed
for more information, see https://pre-commit.ci
…/wastewater into create_additional_ws_views
for more information, see https://pre-commit.ci
CI question : |
@ponceta I added the docker logs
|
Thank you @3nids This would be (superclass views (superclass views that integrate all subclass attributes with prefixes to the attributes of the subclass) should be named vw_txx_superclass (example: vw_tww_maintenance_event). -> dev_guide_views) |
I chose to because TO is the prefix of the OID-Postfix (ch000000TO000001) |
@cymed you can also use |
@sjib can we change the shortcut_en of drainless_toilet from TO to DT? DT is not used and was not used in QGEP, |
@cymed no need to change the shortcut in the OID, it's only the keyword in the SQL code of the view (you use |
It is more user friendly to use the OID shortcut as alias |
This push - Alters the view name from vw_additional_wastewater_structure to vw_tww_additional_ws - renames the drainless_toilet alias - alters the import view to not depend on vw_tww_wastewater_structure during creation (allows re-calling create_views.py without dependency on existing views)
for more information, see https://pre-commit.ci
…/wastewater into create_additional_ws_views
As my other PR #36 also touches vw_tww_wastewater_structure I suggest I finish #36 first to not run into compatibility issues Edit: #36 needs adapation on pirogue if the select is to be done dynamically, prioritising this PR |
I will change from TO to DT in English, French and Italien and to TA in German as 'AT' is also a SQL Keyword |
Are there other SQL keyword that we should avoid?
|
even though that PR has the same % handling as vw_tww_wastewater_structure, this one throws an error |
you need to switch the double %% to simple % (next to a pirogue update) |
then why did da34826 not work? |
because you have other remaining double %% |
for more information, see https://pre-commit.ci
…/TEKSI-wastewater into create_additional_ws_views
@ponceta ready 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.
Let's go with this as it will soon be an issue for anyone wanting to use the new classes in TWW.
This could lead to a .qgs project adaptation and a documentation specific for these new entities.
Tackles #38
Additional ws types for drainless_toilet, wwtp_structure and small_treatment_plant are handled separately to not blow up the main ws view. Also, no extra-cols are allowed.