Skip to content
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

👌 Add this_doc function for needextend filters #1393

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

chrisjsewell
Copy link
Member

@chrisjsewell chrisjsewell commented Jan 29, 2025

This allows for filtering of needs only in the same document as the needextend itself.

This allows for e.g.

.. needextend:: this_doc(current_need) and status is None
   :status: open

cc @arwedus

This allows for filtering of needs only in the same document as the `needextend` itself.
Copy link

codecov bot commented Jan 29, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.24%. Comparing base (4e10030) to head (e973c45).
Report is 108 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1393      +/-   ##
==========================================
+ Coverage   86.87%   88.24%   +1.36%     
==========================================
  Files          56       60       +4     
  Lines        6532     7147     +615     
==========================================
+ Hits         5675     6307     +632     
+ Misses        857      840      -17     
Flag Coverage Δ
pytests 88.24% <100.00%> (+1.36%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ubmarco
Copy link
Member

ubmarco commented Feb 4, 2025

Test case would be nice to have.

@chrisjsewell chrisjsewell changed the title 👌 Add current_docname variable for needextend filters 👌 Add this_doc function for needextend filters Feb 11, 2025
@chrisjsewell chrisjsewell requested a review from ubmarco February 11, 2025 11:39
@chrisjsewell
Copy link
Member Author

Test case would be nice to have.

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants