Repository navigation
Remove TaxonManager.with_children(). This method is never called, and… - #1507
Conversation
✅ Deploy Preview for antenna-ssec canceled.
|
✅ Deploy Preview for antenna-preview canceled.
|
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing: 1
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?
17bce99 to
4c75062
Compare
ff13aa1 to
0d7c4ce
Compare
…, and the implentation is example code with a hardoded key which will be an error if used.
bdff644 to
add6f75
Compare
… 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.