From ea52a8bd8ce9a291594354df34cdea68ceffd3eb Mon Sep 17 00:00:00 2001 From: efarooqui Date: Wed, 7 Oct 2020 09:03:30 -0700 Subject: [PATCH 1/6] Removing export categories endpoint --- src/lib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.js b/src/lib.js index e275101..83aa55b 100644 --- a/src/lib.js +++ b/src/lib.js @@ -5,7 +5,7 @@ function prefixedTabs (prefix, cfg) { const prf = key => cfg[key] ? `${prefix}_` : '' return { [`${prf('events')}export_events`]: BP.deeprows, - [`${prf('categories')}export_categories`]: [BP.groups, BP.rows], + // [`${prf('categories')}export_categories`]: [BP.groups, BP.rows], [`${prf('associations')}export_associations`]: BP.deeprows, [`${prf('sources')}export_sources`]: BP.deepids, [`${prf('sites')}export_sites`]: BP.rows From e5288c25991d176a249c188d6c06d2819f4aea8d Mon Sep 17 00:00:00 2001 From: efarooqui Date: Tue, 13 Oct 2020 08:45:41 -0700 Subject: [PATCH 2/6] Removed categories from list and using test_export_events --- src/lib.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.js b/src/lib.js index 83aa55b..88c64e7 100644 --- a/src/lib.js +++ b/src/lib.js @@ -4,7 +4,8 @@ function prefixedTabs (prefix, cfg) { if (!cfg) cfg = {} const prf = key => cfg[key] ? `${prefix}_` : '' return { - [`${prf('events')}export_events`]: BP.deeprows, + // [`${prf('events')}export_events`]: BP.deeprows, + [`test_export_events`]: BP.deeprows, // [`${prf('categories')}export_categories`]: [BP.groups, BP.rows], [`${prf('associations')}export_associations`]: BP.deeprows, [`${prf('sources')}export_sources`]: BP.deepids, From 2e1d098d12db1913c4bdb56c3f12f296f11f0461 Mon Sep 17 00:00:00 2001 From: efarooqui Date: Wed, 14 Oct 2020 08:12:56 -0700 Subject: [PATCH 3/6] Test associations --- src/lib.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.js b/src/lib.js index 88c64e7..fbf8b13 100644 --- a/src/lib.js +++ b/src/lib.js @@ -7,7 +7,8 @@ function prefixedTabs (prefix, cfg) { // [`${prf('events')}export_events`]: BP.deeprows, [`test_export_events`]: BP.deeprows, // [`${prf('categories')}export_categories`]: [BP.groups, BP.rows], - [`${prf('associations')}export_associations`]: BP.deeprows, + // [`${prf('associations')}export_associations`]: BP.deeprows, + [`test_export_associations`]: BP.deeprows, [`${prf('sources')}export_sources`]: BP.deepids, [`${prf('sites')}export_sites`]: BP.rows } From 8492c5cbaa5c92902567a59ed2202d36be559c88 Mon Sep 17 00:00:00 2001 From: efarooqui Date: Thu, 15 Oct 2020 21:33:13 -0700 Subject: [PATCH 4/6] Removed comment regarding categories endpoint --- src/lib.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib.js b/src/lib.js index fbf8b13..684ac84 100644 --- a/src/lib.js +++ b/src/lib.js @@ -6,9 +6,7 @@ function prefixedTabs (prefix, cfg) { return { // [`${prf('events')}export_events`]: BP.deeprows, [`test_export_events`]: BP.deeprows, - // [`${prf('categories')}export_categories`]: [BP.groups, BP.rows], - // [`${prf('associations')}export_associations`]: BP.deeprows, - [`test_export_associations`]: BP.deeprows, + [`${prf('associations')}export_associations`]: BP.deeprows, [`${prf('sources')}export_sources`]: BP.deepids, [`${prf('sites')}export_sites`]: BP.rows } From 1c600bc2226f269911d16f3addbd34b8c53ce9d2 Mon Sep 17 00:00:00 2001 From: efarooqui Date: Mon, 19 Oct 2020 08:56:31 -0700 Subject: [PATCH 5/6] Removing unnecessary test_export_events endpoint --- src/lib.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib.js b/src/lib.js index 684ac84..ff76aed 100644 --- a/src/lib.js +++ b/src/lib.js @@ -4,8 +4,7 @@ function prefixedTabs (prefix, cfg) { if (!cfg) cfg = {} const prf = key => cfg[key] ? `${prefix}_` : '' return { - // [`${prf('events')}export_events`]: BP.deeprows, - [`test_export_events`]: BP.deeprows, + [`${prf('events')}export_events`]: BP.deeprows, [`${prf('associations')}export_associations`]: BP.deeprows, [`${prf('sources')}export_sources`]: BP.deepids, [`${prf('sites')}export_sites`]: BP.rows From 29182f8ec2e551fc7ca25fe321f236c3c4e6b7be Mon Sep 17 00:00:00 2001 From: efarooqui Date: Mon, 19 Oct 2020 09:02:03 -0700 Subject: [PATCH 6/6] Linting threw error stating that we use path module to join instead of + --- src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index ab969e9..1c2ac09 100755 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,5 @@ import http from 'http' +import path from 'path' import express from 'express' import initialize from './initialize' import middleware from './middleware' @@ -40,7 +41,7 @@ initialize(controller => { }) ) - app.use(express.static(__dirname + '/public')) + app.use(express.static(path.join(__dirname, 'public'))) app.server.listen(process.env.PORT || 4040, () => { console.log('===========================================')