question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support contents in needextend

See original GitHub issue

needextend currently supports add/append/removal of needs_extra_options and needs_extra_links. How about allowing to extend the contents part?

.. needextend:: SW_REQ_001
   :+derives: SYS_REQ_001

   This is extended content

needextend contents could be configured as pre, post or overwrite.

This allows to import just the meta-information as needs from external tools and then add textual content in rST.

Is this feasible?

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
danwoscommented, Sep 6, 2022

Agree, a check would be good.

Currently, manipulations get also stored and needs are filterable based on them: https://sphinx-needs.readthedocs.io/en/latest/directives/needextend.html#monitoring-modifications

But this counter is not based on specific options or the content. Maybe a feature request to extend this mechanism would be helpful.

1reaction
danwoscommented, Sep 2, 2022

Maybe it is doable on doctree-level, if the needextend-content can only be used to add (pre or post) or replace need-content (as you have written). Then we could render the rst in the needextend-directive, when this directive gets read. And later we do some direct doctree-manipulations, where we add or replace the needextend-content-node to/with the need-content-node. After that, we delete the needextend-node from the doctree.

So yes, it sounds doable 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sphinx-Needs 1.1.0 documentation - needextend
needextend allows to modify existing needs. It doesn't provide any output, as the modifications get presented at the original location of the changing...
Read more >
SPVirtualServerState Enum (Microsoft.SharePoint.Administration ...
Learn more about the Microsoft.SharePoint.Administration.SPVirtualServerState in the Microsoft.SharePoint.Administration namespace.
Read more >
Plan Creo Parametric Support Strategy | Creo Parametric | PTC
The goal of go-live support is to have the short-term support team quickly address any issues that come up when end users begin...
Read more >
With American Rescue Plan Now Signed into Law, Senator ...
“This landmark legislation will issue another round of direct cash payments to families in need, extend critically needed pandemic ...
Read more >
Issues · useblocks/sphinx-needs - GitHub
needextend does not work with filter string ... l_foucs: content allignment not stable/left ... needs.json shall contain/support images and co.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found