|
48 | 48 | import org.labkey.api.security.permissions.AdminPermission; |
49 | 49 | import org.labkey.api.security.permissions.ApplicationAdminPermission; |
50 | 50 | import org.labkey.api.settings.AdminConsole; |
| 51 | +import org.labkey.api.settings.OptionalFeatureFlag; |
51 | 52 | import org.labkey.api.settings.OptionalFeatureService; |
52 | 53 | import org.labkey.api.targetedms.TargetedMSService; |
53 | 54 | import org.labkey.api.usageMetrics.UsageMetricsService; |
@@ -217,11 +218,6 @@ public TargetedMSModule() |
217 | 218 | MAX_PRECURSORS_PROPERTY.setDescription("If a document has more than a specified number of precursors AND more than the separate transition/replicate chromatogram limit, Panorama will skip storing them in the database to save space and import time"); |
218 | 219 | MAX_PRECURSORS_PROPERTY.setShowDescriptionInline(true); |
219 | 220 | addModuleProperty(MAX_PRECURSORS_PROPERTY); |
220 | | - |
221 | | - AdminConsole.addOptionalFeatureFlag(new AdminConsole.OptionalFeatureFlag(USE_TEMP_DIR_FOR_SKYD_IMPORT, |
222 | | - "Stage SKYD files to a temporary local file for import purposes", |
223 | | - "When using a non-local file system, the latency for random access requests can be significantly slower than first copying to local storage", |
224 | | - false, false, OptionalFeatureService.FeatureType.Optional)); |
225 | 221 | } |
226 | 222 |
|
227 | 223 | @Override |
@@ -606,6 +602,15 @@ protected void init() |
606 | 602 | { |
607 | 603 | folderRegistry.addFactories(new QCFolderWriterFactory(), new QCFolderImporter.Factory()); |
608 | 604 | } |
| 605 | + |
| 606 | + OptionalFeatureService.get().addFeatureFlag( |
| 607 | + new OptionalFeatureFlag( |
| 608 | + USE_TEMP_DIR_FOR_SKYD_IMPORT, |
| 609 | + "Stage SKYD files to a temporary local file for import purposes", |
| 610 | + "When using a non-local file system, the latency for random access requests can be significantly slower than first copying to local storage", |
| 611 | + false, false, OptionalFeatureService.FeatureType.Optional |
| 612 | + ) |
| 613 | + ); |
609 | 614 | } |
610 | 615 |
|
611 | 616 | @Override |
|
0 commit comments