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 extension of existing needs

See original GitHub issue

Support the possibility to add/overwrite options of existing needs.

For example,

.. comp-sys::
   :id: COMP_MY_COMPONENT
.. needs-extend:: 
   :filter: id==COMP_MY_COMPONENT
   :derives: REQ_SYS_1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
danwoscommented, Jun 24, 2021

Thanks for this really helpful discussion and all the ideas. They helped a lot to finally come up with a final spec. As I needed to make some tests to prove, if some details are possible in sphinx, there is already some really rough documentation (on feature branch only) and a first implementation of the directive: image

As you can see, the idea from @Thomas-Swindells-t with the +-syntax got a revival, but on the option level.

So deleting a complete option (-) and adding additional input to an option (+) are supported. Modifying single values will not be supported in the initial version. Because I’m also not sure that there is a strong use case for this and that no simple workaround is possible.

Please let me know, what you think. Will finalize this in the next days for upcoming release 0.7.0

0reactions
danwoscommented, Jun 29, 2021

Right, checking this constraint must be done by the user and I think using needs_warnings is the right way.

We may think about a better modification monitoring. E.g. we could count which options got changed how often. So two different needextend on the same need would be okay, if they have modified different options. But I’m not sure, if this is a real or overthought use case…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Everything you need to know about... brand extension | Courier
Brand extension is when a business develops a new product or service in a different area or category than where it's previously been ......
Read more >
What Is Product Extension in Marketing?
Product extension is the strategy of placing an established product's brand name on a new product that is in the same category. Small...
Read more >
Product Line Extensions: Explainer + Examples (2022) - Shopify
This starter guide will walk you through examples and tips on creating a product line extension strategy, so you can build a more...
Read more >
What is Line Extension? - Video & Lesson Transcript | Study.com
Service extensions involve providing new services that are related to the company's existing products or services. For example, a company ...
Read more >
13 of the Most (& Least) Successful Brand Extensions to ...
An excellent example of a line extension is when soft drink companies introduce new flavors to their existing drink lineup. Other examples could ......
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