diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..73edff2 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,23 @@ +#### Front-end checks to do prior to merging pull request: +- [ ] Search + - [ ] Search by accession number + - [ ] Search by lineage + - [ ] Search by country + - [ ] Search by country (with date filter) +- [ ] Tree filtering +- [ ] Download Time-scaled tree (nwk) +- [ ] Download Time-scaled tree (csv) +- [ ] Download Beadplot (svg) +- [ ] Download Beadplot (nwk) +- [ ] Download mutation list (csv) +- [ ] Beadplot cutoff slider +- [ ] Expanding Beadplot +- [ ] Translated pages +- [ ] Changing the colour of the tree based on divergence, collection date, etc. +- [ ] View different displays (Non-Recombinants, Recombinants, etc.) +- [ ] Left/Right arrow key to move between beads +- [ ] Ensure Tooltips get rendered +- [ ] Hover over accession number in the "Samples" tab to ensure that the acknowledgement tooltips get generated +- [ ] Countries/Samples/Mutations tabs are populating the correct information +- [ ] Build front-end database without issues +- [ ] Port front-end change to `epicov` branch diff --git a/dbmanager.js b/dbmanager.js index 9b5bdfe..50c119d 100644 --- a/dbmanager.js +++ b/dbmanager.js @@ -89,19 +89,19 @@ class DBManager { } get_tips() { - return this.db_.collection($COLLECTION__TIPS).find().toArray() + return this.db_.collection($COLLECTION__TIPS).find({}, { projection: { _id: 0 } }).toArray() } get_df() { - return this.db_.collection($COLLECTION__DF_TREE).find().toArray(); + return this.db_.collection($COLLECTION__DF_TREE).find({}, { projection: { _id: 0 } }).toArray(); } get_xbb_df() { - return this.db_.collection($COLLECTION__XBB_TREE).find().toArray(); + return this.db_.collection($COLLECTION__XBB_TREE).find({}, { projection: { _id: 0 } }).toArray(); } get_regionMap() { - return this.db_.collection($COLLECTION__REGION_MAP).find().toArray().then((docs,err)=>{ + return this.db_.collection($COLLECTION__REGION_MAP).find({}, { projection: { _id: 0 } }).toArray().then((docs,err)=>{ if(err){ console.log(`dbmanager::get_regionMap error`,err); return ; @@ -214,7 +214,7 @@ class DBManager { } get_recombinantTips() { - return this.db_.collection($COLLECTION__RECOMBINANT_TIPS).find().toArray().then((docs,err)=>{ + return this.db_.collection($COLLECTION__RECOMBINANT_TIPS).find({}, { projection: { _id: 0 } }).toArray().then((docs,err)=>{ if(err){ console.log(`dbmanager::get_recombinantTips error`,err) return; diff --git a/index-es.html b/index-es.html index b7d7a64..23fe81e 100644 --- a/index-es.html +++ b/index-es.html @@ -145,8 +145,8 @@