-
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
adapt maintenance event view #40
Conversation
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.
OK for me on the technical POV.
@sjib does this approach fits the requirements from VSA? (I think so)
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.
vw_maintenance.yaml should be renamed to vw_maintenance_event, as the supclass is called like this.
I suggest the following naming convention:
- subclass views that integrate the superclass attributes are named vw_subclass. Also the corresponding yaml should be named like this
- views of a superclass that integrate all subclass attributes with prefixes to the attributes of the subclass should be named vw_superclass - here vw_tww_maintenance_event . Also the corresponding yaml should be named like this
- Bigger views that include several tables should be named vw_tww_xxx - xxx beeing the focus class like vw_tww_reach or vw_tww_wastewater_structure.
- Can we integrate this in the Developers Guide when agreed on: https://github.com/teksi/Home/wiki/TEKSI-Developer-Guide#views
@ponceta @urskaufmann Is this in line with your thoughts? |
My proposal for naming convention and views : ViewsALL views are created in the txx_app schema. Naming convention :
Warning : |
@ponceta thanks for this suggestion
channel is a subclass of wastewater_structure. So we would need to change this example. What would be the difference of a superclass view and a BIG superclass view? |
I thought of vw_channel being a superclass of reaches but it is not. I've no diagram of the 2020 Model but it would be a nice thing to add.
Actually we don't have created views for superclass (we use the table directly : wastewater_structure, organisation, ... so if needed these views would be called vw_wastewater_structure, vw_organisation, ...) I'm not sure there is any advantage of using this kind of views. I think the vw_txx_superclass / vw_txx_focusclass are mainly views we use in modules to avoid complexity on the client side with multiple joins which can be tricky in terms of performance. The |
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.
Good from my side and good discussion for conventions that should be integrated in the Developers guide
I have now added this version to the developers guide with all conclusions: ViewsALL views are created in the txx_app schema. Naming convention :
|
@ponceta I've added a schemaspy generation in the CI. If you look in the artifacts of the create dumps workflow (e.g. https://github.com/teksi/wastewater/actions/runs/7112177922), you can download it. |
Add catchment labels to DSS export
fixes #33
Now 3 views are created: