id vs id_complete and need_parts #307
Replies: 1 comment 3 replies
-
I agree that need_parts and nested needs have some common parts. For need_parts I like to have 2 IDs (main need and the part), as it makes filtering much easier. For nested Needs I'm somehow open. For me the goal of a need-definition was always, that it is not related to its location and can be easily copied and referenced without knowing any context of the documentation around the need. So I would stay with But I'm totally open for counter-arguments . |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I'm struggling to understand the distinction between id and id_complete and what the intention for them are.
From what I understand looking at the code id_complete is primarily targeted at need_parts, but the filter code at least blurs this distinction and for nodes makes id_complete=id. The code seems to assume that id_complete will be in the form "." and further more need_ref makes the assumption that the parentid will not contain dots,
My confusion comes in part due to two of the features that I have been working through:
From what I can see you already have to use id_complete to reference a needpart, the only time the distinction with the id is important is in tables or other places where the needpart is presented with its shorter i'
From some angles neep_parts pretty much look like any other nested need except with a streamlined declaration syntax and a slight distinction in filtering.
As a straw man I'd propose that id_complete isn't needed, instead the id of need_parts will be the complete id. Where a simplified id is wanted this can be calculated by taking the final segment after the last dot - this would work both with need parts and nested needs that inherit their parents name.
Beta Was this translation helpful? Give feedback.
All reactions