forked from galaxyproject/galaxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved error messages for private object stores.
- Loading branch information
Showing
4 changed files
with
87 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
client/src/components/History/Content/Dataset/DatasetMiscInfo.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<script setup lang="ts"> | ||
import { computed, ref, watch } from "vue"; | ||
interface Props { | ||
miscInfo: string; | ||
} | ||
const showErrorHelp = ref(false); | ||
const sharingError = ref(false); | ||
// old sharable error: Attempted to create shared output datasets in objectstore with sharing disabled | ||
// new sharable error: Job attempted to create sharable output datasets in a storage location with sharing disabled | ||
const sharingErrorRex: RegExp = /with sharing disabled/g; | ||
const knownErrors = [{ regex: sharingErrorRex, modalRef: sharingError }]; | ||
const props = defineProps<Props>(); | ||
const fixable = computed(() => { | ||
return true; | ||
}); | ||
watch( | ||
props, | ||
() => { | ||
for (const knownError of knownErrors) { | ||
const regex = knownError.regex; | ||
if (props.miscInfo.match(regex)) { | ||
knownError.modalRef.value = true; | ||
} | ||
} | ||
}, | ||
{ immediate: true } | ||
); | ||
function showHelp() { | ||
showErrorHelp.value = true; | ||
} | ||
</script> | ||
|
||
<template> | ||
<div class="info"> | ||
<b-modal v-if="sharingError" v-model="showErrorHelp" title="Dataset Sharing Misconfigured" ok-only> | ||
<p> | ||
This error message indicates that your history is setup to allow sharing but your job was run in a | ||
configuration to target a storage location that explicitly disables sharing. | ||
</p> | ||
<p> | ||
To fix this configure your history so that new datasets are private or target a different storage | ||
location. | ||
</p> | ||
<p> | ||
To re-configure your history, click the history menu and go to the "Set Permissions" option in the | ||
dropdown. This should result in a toggle that allows you to configure the history so that new datasets | ||
are created as private datasets. | ||
</p> | ||
<p> | ||
There are many ways to instead target different storage for your job. This can be select in the tool or | ||
workflow form right before you execute your job or a different default for your history or user can be | ||
chosen that allows for sharing. | ||
</p> | ||
</b-modal> | ||
<span class="value">{{ miscInfo }} <a v-if="fixable" href="#" @click="showHelp">How do I fix this?</a></span> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters