needextend does not work depending on file order
See original GitHub issueIf the need
and needextension
are in the same file, the order between them does not seem to matter and both of the following works.
.. need:: MY_NEED_ID
.. needextend:: MY_NEED_ID
:status: my-status
or
.. needextend:: MY_NEED_ID
:status: my-status
.. need:: MY_NEED_ID
If they are split into different files (that is, need
in one and needextend
in the other), the file order (based on filename) seems to matter. The needextend
does not do any extension, if filenames are changed so that they are alphabetically sorted differently.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Configuration - Sphinx-Needs 1.1.0 documentation
When no need ID is given by the user, and needs_id_from_title is set to True, then a need ID will be calculated based...
Read more >I Need to Extend My Personal Protection Order
An ex parte motion means there will not be a court hearing. The judge decides whether to grant or deny your motion based...
Read more >Magento order products by SKU - sorting - Stack Overflow
Because sku is table column, you don't need extend setCollection() method. Share.
Read more >Error : no client CA cert available for apiextension-server
Hi, I installed Linkerd2 (stable-2.6.0) in my K8S v1.16.2 Cluster and i got the following error on “linkerd-tap”, “tap” container : "no client...
Read more >1883 – [PropertiesView] property view sorting (1G956Q4) - Bugs
Why don't we just display them in the order they are given by the ... could provide a patch to fix this problem,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ohh sh**, you are right. I have extended my test cases and can confirm this.
The problem is the sphinx event system, which triggers the events per page. So a need on page_1 gets created in docutils node-tree before needextend of page_2 gets executed.
So a solution may be to remove
needextend
from any events and let the need-creation code take a look into the already fully collected needextend information and execute the modification then per need. This sounds doable.Thanks for reporting and testing it so deeply. 👍 I’m on it.
@danwos Works now as expected. Thanks for the quick fix.