Skip to content

Fix AJAX filter for nested relations - #19

Merged
vigo merged 6 commits into
mainfrom
codex/fix-multiple-relation-issue-in-dalfrelatedfieldajax
Oct 7, 2025
Merged

Fix AJAX filter for nested relations#19
vigo merged 6 commits into
mainfrom
codex/fix-multiple-relation-issue-in-dalfrelatedfieldajax

Conversation

@vigo

@vigo vigo commented Oct 6, 2025

Copy link
Copy Markdown
Owner

Summary

  • ensure DALFRelatedFieldAjax sends the source model metadata and field name for nested relations
  • add nested models, admin registrations, factories, and fixtures for exercising AJAX list filters through multi-hop relations
  • cover the nested AJAX filter with a regression test

Testing

  • pytest tests/testproject/testapp/tests.py

https://chatgpt.com/codex/tasks/task_e_68e3c00538a0832e88fc9a3b4af23d27

@codecov-commenter

codecov-commenter commented Oct 6, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (900f40d) to head (31e13c8).
⚠️ Report is 28 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #19   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         3           
  Lines           47        46    -1     
=========================================
- Hits            47        46    -1     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

vigo added 5 commits October 6, 2025 16:33
Django==5.2.7
pytest==8.4.2
pytest-cov==7.0.0
pytest-django==4.11.1
pytest-factoryboy==2.8.1
ruff==0.13.3
@vigo
vigo merged commit 057dce6 into main Oct 7, 2025
6 checks passed
@vigo
vigo deleted the codex/fix-multiple-relation-issue-in-dalfrelatedfieldajax branch October 7, 2025 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants