Repository navigation
Conversation
✅ Deploy Preview for antenna-ssec canceled.
|
✅ 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 56 minutes. View limit details
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
|
||
| logging.info(f"Updated parents for {len(bulk_update_data)} taxa") | ||
|
|
||
| def with_children(self): |
There was a problem hiding this comment.
Funny I think this was a note to myself, because we do need to query all children for some missing features, and I will not remember how to do this:
taxa = Taxon.objects.filter(parents_json__contains=[{"id": taxon.id}])
qs = qs.annotate(children=models.Subquery(taxa.values("id")))
Maybe that can go in a docstring somewhere else.
There was a problem hiding this comment.
add it to the issue that adds the missing features?
- _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.
… the implentation is example code with a hardoded key which will be an error if used.
17bce99 to
4c75062
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.
…olnickLab/antenna into kra/model-split-tests-storage-taxonomy
… the implentation is example code with a hardoded key which will be an error if used.
… github.com:RolnickLab/antenna into kra/model-split-tests-storage-taxonomy-withchildren
… the implentation is example code with a hardcoded key which will be an error if used.
Summary by CodeRabbit
with_children()method for taxon queries.