Skip to content

Commit 250d9c5

Browse files
authored
configuration for the slicer metadata release (#227)
1 parent 13979b1 commit 250d9c5

7 files changed

Lines changed: 28 additions & 19 deletions

File tree

client/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dive-dsa",
3-
"version": "1.10.24",
3+
"version": "1.10.25",
44
"author": {
55
"name": "Kitware, Inc.",
66
"email": "Bryon.Lewis@kitware.com"
@@ -41,7 +41,7 @@
4141
"mousetrap": "^1.6.5",
4242
"semver": "^7.3.5",
4343
"vue": "^2.7.15",
44-
"vue-girder-slicer-cli-ui": "0.0.9",
44+
"vue-girder-slicer-cli-ui": "0.1.1",
4545
"vue-gtag": "^1.9.1",
4646
"vue-router": "^3.0.3",
4747
"vuetify": "^2.3.10",

client/yarn.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3225,7 +3225,7 @@ axe-core@^4.10.0:
32253225
resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.10.3.tgz#04145965ac7894faddbac30861e5d8f11bfd14fc"
32263226
integrity sha512-Xm7bpRXnDSX2YE2YFfBk2FnF0ep6tmG7xPh8iHee8MIcrgq762Nkce856dYtJYLkuIoYZvGfTs/PbZhideTcEg==
32273227

3228-
axios@*, axios@^1.5.0, axios@^1.6.7:
3228+
axios@*, axios@^1.6.7, axios@^1.8.2:
32293229
version "1.8.4"
32303230
resolved "https://registry.yarnpkg.com/axios/-/axios-1.8.4.tgz#78990bb4bc63d2cae072952d374835950a82f447"
32313231
integrity sha512-eBSYY4Y68NNlHbHBMdeDmKNtDgXWhQsJcGqzO3iLUM0GraQFSS9cVgPX5I9b3lbdFKyYoAEGAZF1DwhTaljNAw==
@@ -11003,17 +11003,17 @@ vue-eslint-parser@^9.0.1, vue-eslint-parser@^9.0.3, vue-eslint-parser@^9.3.1, vu
1100311003
lodash "^4.17.21"
1100411004
semver "^7.3.6"
1100511005

11006-
vue-girder-slicer-cli-ui@0.0.9:
11007-
version "0.0.9"
11008-
resolved "https://registry.yarnpkg.com/vue-girder-slicer-cli-ui/-/vue-girder-slicer-cli-ui-0.0.9.tgz#7725fbfb8f6b92f917b1e1fc264ad0e868ae47b1"
11009-
integrity sha512-IYaecdkcAHgnCvRBaDxLxUrAmYr5Ft70NPwUGLmYvlP95HHgTObuIEqke4b2WU4AIFabwhlP9LeU5KGaUEJW5A==
11006+
vue-girder-slicer-cli-ui@0.1.1:
11007+
version "0.1.1"
11008+
resolved "https://registry.yarnpkg.com/vue-girder-slicer-cli-ui/-/vue-girder-slicer-cli-ui-0.1.1.tgz#66b8a0d40fd07dda223cdf1b0c293fbb14f48819"
11009+
integrity sha512-qax2QHhxlfxVvccFaWuIOt1+M//dokqYRcNkT5VGPfo4Rb3QQ9YbskKeXTdH9r5VB6UOgcMbF7f8toErvzNKRQ==
1101011010
dependencies:
1101111011
"@jamescoyle/vue-icon" "^0.1.2"
1101211012
"@mdi/js" "^7.2.96"
1101311013
"@popperjs/core" "^2.11.8"
1101411014
"@vueuse/components" "^10.7.0"
1101511015
"@vueuse/core" "^10.7.0"
11016-
axios "^1.5.0"
11016+
axios "^1.8.2"
1101711017
jquery "^3.7.1"
1101811018
js-cookie "^3.0.5"
1101911019
lodash "^4.17.21"

dive-dsa-slicer/vue-girder-slicer-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"name": "Kitware, Inc.",
55
"email": "Bryon.Lewis@kitware.com"
66
},
7-
"version": "0.1.0",
7+
"version": "0.1.1",
88
"type": "module",
99
"files": [
1010
"dist",

docs/SlicerCLI.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ The system will automatically populate the file input with a reference to the vi
1313

1414
The system will also populate any folder output with the DIVE Dataset Folder if it has the ID/name **DIVEDirectory**
1515

16+
**girderToken** and **girderApiUrl** are automtically set as well. This can be uyseful if the system is utilize girder-client for communication with the main container.
17+
18+
The system will alos populate and text input for the field **DIVEMetadata** and **DIVEMetadataRoot** if the system is run in within a DIVEMetadata Context
19+
1620
#### Examples
1721

1822
There are examples located at [**DIVE-DSA-Slicer Repository**](https://github.com/DigitalSlideArchive/dive-dsa/tree/main/dive-dsa-slicer/example-docker-containers). These are simple examples that show the generation of fullframe tracks. The more important one is the LongRunning or GirderClient versions. They show how to automatically push the data back to the system and kick off the post process event to load the new tracks in to the Dataset.
Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
import JobStatus from '@girder/jobs/JobStatus';
1+
const events = girder.events;
22

3-
const jobPluginIsCancelable = JobStatus.isCancelable;
4-
JobStatus.isCancelable = function (job) {
5-
if (job.get('type').startsWith('Dive Metadata Slicer CLI Batch')) {
6-
return ![JobStatus.CANCELED, JobStatus.WORKER_CANCELING || 824,
7-
JobStatus.SUCCESS, JobStatus.ERROR].includes(job.get('status'));
8-
}
9-
return jobPluginIsCancelable(job);
10-
};
3+
// g:appload.before runs after all plugin static files have been loaded
4+
events.on('g:appload.before', () => {
5+
const JobStatus = girder.plugins.jobs.JobStatus;
6+
const jobPluginIsCancelable = JobStatus.isCancelable;
7+
JobStatus.isCancelable = function (job) {
8+
if (job.get('type').startsWith('Dive Metadata Slicer CLI Batch')) {
9+
return ![JobStatus.CANCELED, JobStatus.WORKER_CANCELING || 824,
10+
JobStatus.SUCCESS, JobStatus.ERROR].includes(job.get('status'));
11+
}
12+
return jobPluginIsCancelable(job);
13+
};
14+
});

server/dive_server/web_client/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ import './views/itemList';
33
import './views/folderList';
44
import './views/folderPage';
55
import './routes';
6+
import './JobStatus';
67

server/dive_server/web_client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
]
1515
},
1616
"dependencies": {
17-
"dive-dsa": "^1.10.3",
17+
"dive-dsa": "^1.10.25",
1818
"webpack": "^2.7.0",
1919
"copy-webpack-plugin": "^4.5.2"
2020
}

0 commit comments

Comments
 (0)