Feat/missing relation requirements#2926
Conversation
|
I still have to implement missing file conditions. |
|
Hey @claudiiolima thanks a lot for starting this! @mettta and I discussed and created this ticket recently, and it is very close to what you are doing in your PR: #2937. One thing that we were planning to do was to re-use the engine of Validations: https://strictdoc.readthedocs.io/en/stable/stable/docs/strictdoc_01_user_guide.html#18.1-Custom-validations. Give us some time to get through the epic #2964 and some other open issues raised by several users. I hope I can get to reviewing your PR in detail within the next few days. |
…m to validation_index.
…sing-relation-requirements
|
@stanislaw Thanks for the initial review! I've made some changes since then, including leveraging issues from |
|
There is still an uncovered case: the relationship between a source file and a requirement has not been implemented yet. |
|
Does the change cover only PARENT/CHILD relation or also just [LINK:] to UID or ANCHOR? It would be great if that could also cover it. |
For now I only have worked at PARENT/CHILD/FILE relations. But LINK and ANCHOR could be added too. |
|
FYI: Reviewing and integrating this is on my list for the next few days. |
…laxed mode - Add unit tests to validate query methods correctly report unresolved inline links - Add unit tests to ensure resolved inline links are not flagged as unresolved
…sing-relation-requirements
a2caa00 to
de7bf15
Compare



Description
This PR adds support for running StrictDoc on subprojects that intentionally do not contain all cross-project relations.
Our project is split into hardware, mechanical, and firmware repositories. At system-repo level, all requirement relations resolve correctly. At subproject level, some parent/child links point to requirements that exist only in another repository. Today, this blocks useful workflows such as:
Problem
StrictDoc currently raises an exception when a referenced relation is missing, which stops export/server flows and breaks subproject-level documentation builds.
Solution
Introduce a new relaxed mode that allows builds to continue when requirement relations are missing.
In this mode, StrictDoc:
CLI / Config
Added relation-scoped option:
Compatibility:
User-visible behavior
When relaxed mode is enabled:
Notes
This change is designed for multi-repo/subproject workflows where some upstream/downstream requirement links are expected to be unavailable in the current checkout.