Skip to content

Commit 5df6161

Browse files
authored
Other user mask access (#336)
* swap access type to Read for RLE Masks * fix writing configuration when not a user * update ubuntu base image for python 3.11 support * increment version
1 parent 011c8ba commit 5df6161

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

client/dive-common/components/Viewer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ export default defineComponent({
663663
let { meta, configMeta } = initializeConfig(config);
664664
// Sets a configuration if it isn't initialized and reloads it
665665
if (!configurationManager.configuration.value) {
666-
configurationManager.saveConfiguration(datasetId.value, configMeta.configuration);
666+
configurationManager.saveConfiguration(datasetId.value, configMeta.configuration, false);
667667
config = await loadMetadata(datasetId.value);
668668
const initResults = initializeConfig(config);
669669
meta = initResults.meta;

client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dive-dsa",
3-
"version": "1.11.21",
3+
"version": "1.11.22",
44
"author": {
55
"name": "Kitware, Inc.",
66
"email": "[email protected]"

client/src/ConfigurationManager.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,11 @@ export default class ConfigurationManager {
225225
this.activeTimelineConfigIndex = ref(-1); // Start with no selection
226226
}
227227

228-
async saveConfiguration(id: string, config?: Configuration) {
228+
async saveConfiguration(id: string, config?: Configuration, serverSave = true) {
229229
const updateConfig = { ...this.configuration.value, ...config };
230-
this._saveConfiguration(id, updateConfig);
230+
if (serverSave) {
231+
await this._saveConfiguration(id, updateConfig);
232+
}
231233
}
232234

233235
setHierarchy(data: DiveConfiguration['hierarchy']) {

docker/girder_worker_gpu.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# == SERVER BUILD STAGE ==
33
# ========================
44

5-
FROM nvidia/cuda:12.6.0-devel-ubuntu20.04 AS server-builder
5+
FROM nvidia/cuda:12.6.0-devel-ubuntu22.04 AS server-builder
66

77
# ----------------------------
88
# Environment Configuration

server/dive_server/views_annotation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def delete_mask(self, folder, trackId, frameId):
155155
@access.user
156156
@autoDescribeRoute(
157157
Description("Get RLE mask annotations").modelParam(
158-
"folderId", **DatasetModelParam, level=AccessType.WRITE
158+
"folderId", **DatasetModelParam, level=AccessType.READ
159159
)
160160
)
161161
def get_rle_mask(self, folder):

0 commit comments

Comments
 (0)