Extend Taxonomy2 /list results
The /list results of TaxonomyController
return a filtered page of Taxonomy2
. For admin purposes in the UI, please include the count of Accession
records with each Taxonomy2
record.
This doesn't need to be a super-fast operation, it is admin-only.
Update the controller to also fetch the count for each Taxonomy2
before it is returned:
private static class Taxonomy2Info {
@JsonUnwrapped
public Taxonomy2 taxonomy;
public long accessionCount;
}