Repository navigation
Conversation
✅ Deploy Preview for antenna-preview canceled.
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 55 minutes. View limit details
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
- _case_from_map - verified_taxon_counts - TaxonRank - TaxonQuerySet - TaxonManager - TaxonParent - Taxon - TaxaListQuerySet - TaxaListManager - TaxaList - Tag Because main.models still has to re-export from models_future until migrations and other code stops referencing it: - Added imports in some methods, since module-level imports must be avoided to avoid circular imports. - Changed type hinting for some methods to strings (to be evauluated by the linter without a change in behavior) to avoid circular imports. Added unit tests for models_future.taxonomy. Some of these were driven by coverage needs. I didn't remove tests from ami.main, which means we have duplicate coverage. The tests were all blatted out by AI and I didn't work hard to understand them. There should be no functionality changes, including possible bugfixes.
e4819a3 to
87c836c
Compare
…, it gets and uses the default queryset. An empty queryset is falsy, so selecting that will cause the default queryset to be used. Fixed this by removing the None default (which the admin action, the only caller, doesn't use anyway), so the given queryset must be used.
63acf04 to
e9723af
Compare
- _case_from_map - verified_taxon_counts - TaxonRank - TaxonQuerySet - TaxonManager - TaxonParent - Taxon - TaxaListQuerySet - TaxaListManager - TaxaList - Tag Because main.models still has to re-export from models_future until migrations and other code stops referencing it: - Added imports in some methods, since module-level imports must be avoided to avoid circular imports. - Changed type hinting for some methods to strings (to be evauluated by the linter without a change in behavior) to avoid circular imports. Added unit tests for models_future.taxonomy. Some of these were driven by coverage needs. I didn't remove tests from ami.main, which means we have duplicate coverage. The tests were all blatted out by AI and I didn't work hard to understand them. There should be no functionality changes, including possible bugfixes.
0c23191 to
6c6dd45
Compare
…en removed in the move
…split-tests-storage-taxonomy-updatedisplaynames
4cc24a3 to
36db85e
Compare
✅ Deploy Preview for antenna-ssec canceled.
|
Summary
Remove unused and minorly problematic default to TaxonManager.update_display_names().
List of Changes
taxonomy.py
test_taxonomy.py
Detailed Description
If the queryset given to TaxonManager.update_display_names() is falsy, it gets and uses the default queryset. An empty queryset is falsy, so selecting that will cause the default queryset to be used. Fixed this by removing the None default (which the admin action, the only caller, doesn't use anyway), so the given queryset must be used.
How to Test the Changes
Ran through the action at http://localhost:8000/admin/main/taxon/
Ran the unit tests
Summary by CodeRabbit