biothings / myvariant.info

MyVariant.info: A BioThings API for human variant annotations
http://myvariant.info
Other
87 stars 32 forks source link

hub-generated release note from an incremental release is not complete #147

Open erikyao opened 2 years ago

erikyao commented 2 years ago

Related Issue: https://github.com/biothings/myvariant.info/issues/103

Fix to https://github.com/biothings/myvariant.info/issues/103 is to count the documents in post-index steps and write the stats into ES mapping metadata as well as into the build docs in MongoDB.

However that fix works only for full releases where ES indexing take places (and thus a post-index operation will be performed). In an incremental release, diff results (i.e. patches) are generated from two MongoDB collections, but we cannot calculate the ES stats from the diffs (e.g. an updated doc in MongoDB might be filtered out while indexing).

A possible workaround is to calculate the ES stats after the diffs are applied to the involved indices.