From b031decd8d3ee2000cf32b5ef486d026bb3b1b7e Mon Sep 17 00:00:00 2001 From: Colin Date: Fri, 14 Oct 2022 00:39:35 -0600 Subject: [PATCH] Restore display of derived_features --- plugins/gff3/src/Gff3Adapter/Gff3Adapter.ts | 2 +- .../src/Gff3Adapter/__snapshots__/Gff3Adapter.test.ts.snap | 4 ++++ plugins/gff3/src/Gff3TabixAdapter/Gff3TabixAdapter.ts | 3 ++- .../__snapshots__/Gff3TabixAdapter.test.ts.snap | 4 ++++ products/jbrowse-desktop/craco.config.js | 1 + 5 files changed, 12 insertions(+), 2 deletions(-) diff --git a/plugins/gff3/src/Gff3Adapter/Gff3Adapter.ts b/plugins/gff3/src/Gff3Adapter/Gff3Adapter.ts index b35bb7eb6a..cf8d263745 100644 --- a/plugins/gff3/src/Gff3Adapter/Gff3Adapter.ts +++ b/plugins/gff3/src/Gff3Adapter/Gff3Adapter.ts @@ -158,7 +158,7 @@ export default class extends BaseFeatureDataAdapter { delete f.child_features delete f.data - delete f.derived_features + // delete f.derived_features delete f.attributes delete f.seq_id return f diff --git a/plugins/gff3/src/Gff3Adapter/__snapshots__/Gff3Adapter.test.ts.snap b/plugins/gff3/src/Gff3Adapter/__snapshots__/Gff3Adapter.test.ts.snap index d2e143697b..649eee250d 100644 --- a/plugins/gff3/src/Gff3Adapter/__snapshots__/Gff3Adapter.test.ts.snap +++ b/plugins/gff3/src/Gff3Adapter/__snapshots__/Gff3Adapter.test.ts.snap @@ -3,6 +3,7 @@ exports[`adapter can fetch features from volvox.gff3 test getfeatures on gff plain text adapter 1`] = ` Array [ Object { + "derived_features": Array [], "end": 6079, "name": "ctgB", "phase": 0, @@ -14,6 +15,7 @@ Array [ "uniqueId": "test-offset-187", }, Object { + "derived_features": Array [], "end": 1984, "name": "f07", "note": "This is an example", @@ -26,6 +28,7 @@ Array [ "uniqueId": "test-offset-188", }, Object { + "derived_features": Array [], "end": 6130, "name": "f06", "note": "This is another example", @@ -38,6 +41,7 @@ Array [ "uniqueId": "test-offset-189", }, Object { + "derived_features": Array [], "end": 5968, "name": "f05", "note": "ああ、この機能は、世界中を旅しています!", diff --git a/plugins/gff3/src/Gff3TabixAdapter/Gff3TabixAdapter.ts b/plugins/gff3/src/Gff3TabixAdapter/Gff3TabixAdapter.ts index 597ab1dc96..cc8a5b162b 100644 --- a/plugins/gff3/src/Gff3TabixAdapter/Gff3TabixAdapter.ts +++ b/plugins/gff3/src/Gff3TabixAdapter/Gff3TabixAdapter.ts @@ -247,10 +247,11 @@ export default class extends BaseFeatureDataAdapter { delete f.child_features delete f.data - delete f.derived_features + // delete f.derived_features delete f._linehash delete f.attributes delete f.seq_id + return f } diff --git a/plugins/gff3/src/Gff3TabixAdapter/__snapshots__/Gff3TabixAdapter.test.ts.snap b/plugins/gff3/src/Gff3TabixAdapter/__snapshots__/Gff3TabixAdapter.test.ts.snap index f9e7a69945..4024ebd14b 100644 --- a/plugins/gff3/src/Gff3TabixAdapter/__snapshots__/Gff3TabixAdapter.test.ts.snap +++ b/plugins/gff3/src/Gff3TabixAdapter/__snapshots__/Gff3TabixAdapter.test.ts.snap @@ -3,6 +3,7 @@ exports[`adapter can fetch features from volvox.gff3 test getfeatures on gff plain text adapter 1`] = ` Array [ Object { + "derived_features": Array [], "end": 6079, "name": "ctgB", "phase": 0, @@ -14,6 +15,7 @@ Array [ "uniqueId": "test-offset-794327", }, Object { + "derived_features": Array [], "end": 1984, "name": "f07", "note": "This is an example", @@ -26,6 +28,7 @@ Array [ "uniqueId": "test-offset-794370", }, Object { + "derived_features": Array [], "end": 6130, "name": "f06", "note": "This is another example", @@ -38,6 +41,7 @@ Array [ "uniqueId": "test-offset-794439", }, Object { + "derived_features": Array [], "end": 5968, "name": "f05", "note": "ああ、この機能は、世界中を旅しています!", diff --git a/products/jbrowse-desktop/craco.config.js b/products/jbrowse-desktop/craco.config.js index fa0260a5ac..19cc6f05cd 100644 --- a/products/jbrowse-desktop/craco.config.js +++ b/products/jbrowse-desktop/craco.config.js @@ -53,6 +53,7 @@ module.exports = { // worker chunks xref // https://github.com/webpack/webpack/issues/13791#issuecomment-897579223 config.output.publicPath = 'auto' + config.cache = false return config }, },