melexis / sphinx-coverity-extension

Sphinx plugin to generate Coverity defects report or table in reStructuredText documentation. Coverity report is then personally styled while data integrity is guaranteed.
GNU General Public License v3.0
5 stars 2 forks source link

Provide ability to re-link the TRACEABILITY_ITEM_ID #62

Closed Letme closed 2 years ago

Letme commented 2 years ago

There are many projects sharing the Triage store, but so far deviations described in traceability have different TRACEABILITY_ITEM_ID. That means we need to provide capabilities to relink existing TRACEABILITY_ITEM_ID to TRACEABILITY_NEWITEM_ID. Similar to what Traceability extension has with item-relink directive (https://melexis.github.io/sphinx-traceability-extension/usage.html#changing-targets-or-removing-relationships), just that here the type is not important.

JasperCraeghs commented 2 years ago

Do you want to select item IDs by specifying a regular expression (more flexible) or just a simple string (easier and more performant)?

Letme commented 2 years ago

it needs to be source_string : target_string pair, where if we have a match for source_string, we need to replace it by target_string. Should be as simple as that, second option I would also like to consider is that we would make sure item-relink directive from Sphinx Traceability extension is adding the same source:target search&replace pairs into this coverity extension list. That would be cool.