mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-04 13:58:11 +08:00
Do not save during annotations tests
This commit is contained in:
+1
-1
@@ -77,7 +77,7 @@ smoke-test:
|
|||||||
.PHONY: smoke-test-annotations
|
.PHONY: smoke-test-annotations
|
||||||
smoke-test-annotations:
|
smoke-test-annotations:
|
||||||
start_server_and_test \
|
start_server_and_test \
|
||||||
'CXG_OPTIONS="--experimental-annotations --experimental-annotations-file $(ANNOTATIONS)" $(MAKE) start-server' \
|
'AUTOSAVE_ENABLED=false CXG_OPTIONS="--experimental-annotations --experimental-annotations-file $(ANNOTATIONS)" $(MAKE) start-server' \
|
||||||
$(CXG_SERVER_PORT) \
|
$(CXG_SERVER_PORT) \
|
||||||
'$(MAKE) e2e-annotations'
|
'$(MAKE) e2e-annotations'
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ class Autosave extends React.Component {
|
|||||||
/* return true if we need to save, false if we don't */
|
/* return true if we need to save, false if we don't */
|
||||||
const { obsAnnotations, lastSavedObsAnnotations } = this.props;
|
const { obsAnnotations, lastSavedObsAnnotations } = this.props;
|
||||||
return (
|
return (
|
||||||
lastSavedObsAnnotations && obsAnnotations !== lastSavedObsAnnotations
|
globals.autosaveEnabled && lastSavedObsAnnotations && obsAnnotations !== lastSavedObsAnnotations
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
import { Colors } from "@blueprintjs/core";
|
import { Colors } from "@blueprintjs/core";
|
||||||
import { dispatchNetworkErrorMessageToUser } from "./util/actionHelpers";
|
import { dispatchNetworkErrorMessageToUser } from "./util/actionHelpers";
|
||||||
|
|
||||||
|
/* flags for testing */
|
||||||
|
export const autosaveEnabled = process.env.AUTOSAVE_ENABLED ? process.env.AUTOSAVE_ENABLED === "true" : true;
|
||||||
|
|
||||||
/* if a categorical metadata field has more options than this, truncate */
|
/* if a categorical metadata field has more options than this, truncate */
|
||||||
export const maxCategoricalOptionsToDisplay = 100;
|
export const maxCategoricalOptionsToDisplay = 100;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user