-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[24.0] Improved error messages for runtime sharing problems. #17794
Merged
jdavcs
merged 1 commit into
galaxyproject:release_24.0
from
jmchilton:helpful_job_errors
Mar 25, 2024
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 selected 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought this was for regex debugging, but did you actually want to include it here for posterity?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah - I thought it would be good for future austerity so we can keep ensuring this older message is caught and handled appropriately.