-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
needextend shall support dynamic functions #970
Comments
Given that you can already use a filter to select multiple needs, e.g. .. needextend:: id.startswith("SYSFCT_") Rather than dynamic functions, do you think it would be more "consistent" to also allow for filtering link selections, e.g. .. needextend:: SYSFCT_Foo
:+implements: id.startswith("REQ_SYS_Foo_") what do you think? |
sure, would be straightforward. In the end, I would expect needextend-directive options to "behave" as identical as possible to need-directive options, but I'll take whatever you can implement quickly :D |
I'm not sure, will be tough to check if the given value for
|
@danwos, @chrisjsewell: I'll give this a try, but please before creating a new release, update the documentation on the
|
Ah oops thanks for the reminder! |
@chrisjsewell: I am having a hard time getting this feature to work. First try:
did not work, throw an error:
2nd try:
This works, but the extra requirement (REQ_SYS_MJS_EnvRep_TD_0010293) did not show up in the generated output. With a first try with spaces inside [[ ]], I also got this error once, but it wasn't reproducible:
What worked:
First of all: Cool that this feature is implemented now, thanks! For me, it is kind of un-intuitive that the And second, I'd assume that it would be possible to mix direct need references with dynamic function calls for need references, but it seems not to be the case. Is this intentional? Could you add this feature, too? |
observed behavior
Hi @danwos , when I try the following code, I get an error:
With the following dynamic function definition:
I get the following error:
expected behavior
Dynamic functions wrapped in [[]] shall work in needextend options just like in need directive options.
possible root cause
The code in needextend.py treats everything that is found in a link_name field like an ID (
sphinx-needs/sphinx_needs/directives/needextend.py
Line 175 in 11d6b1b
The text was updated successfully, but these errors were encountered: