-
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
Follow up on object store selection PR. #15654
Merged
jmchilton
merged 29 commits into
galaxyproject:dev
from
jmchilton:object_store_ui_followup
Mar 3, 2023
+5,278
−489
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
e2530b4
private objectstores & dataset.sharable
jmchilton 50ffad2
Rename test_selection to be more specific.
jmchilton 8e0a01e
get_quota in SQL
jmchilton f7a4992
Implement quota tracking options per ObjectStore.
jmchilton d1a2eab
Fix unique constraint add/remove in quota source labels...
jmchilton c7f200c
Rebuild client typescript schema.
jmchilton dfd4fd1
unit test fix
jmchilton 6d91292
Lint fixes...
jmchilton 4432497
Drop nice_total_disk_usage from usage APIs.
jmchilton 4785834
Improved error message in api_asserts.
jmchilton 017c612
Small hacks... are these needed?
jmchilton 46b6d85
implement preferred object store id
jmchilton 32d12d6
Fix for subworkflows...
jmchilton 1c6f9d0
nested workflow tests for this intermediate/output objectstore selection
jmchilton 0e1bc0d
fix object store workflow selection with collections...
jmchilton d04d79a
More work on object store selection of collections.
jmchilton 45179db
Fix dynamic collection outputs to respect job's specified object store
jmchilton 17baf67
Fix object store selection for workflows with dynamic output collecti…
jmchilton 03cfc77
test case for object store selection with doubly nested workflow output
jmchilton c80daac
Rebuild client schema for object store APIs
jmchilton 2cdcf15
Cleanup object store selection client.
jmchilton 76c0f98
Pydantic the new object store API.
jmchilton 5462b7a
Convert SelectObjectStore to fetcher pattern.
jmchilton dabdb95
Migrate new user quota usage APIs to FastAPI.
jmchilton d1b7594
pydantic the new user quota usage APIs
jmchilton d92d606
Rework object store selection jest tests for fetcher pattern.
jmchilton fcd616d
Migrate SelectObjectStore to composition API.
jmchilton c40672a
Only show objectstore selection in the GUI if actual selection makes …
jmchilton 9964d4d
More consistent icon for object store selection.
jmchilton 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
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
49 changes: 49 additions & 0 deletions
49
client/src/components/History/CurrentHistory/PreferredStorePopover.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,49 @@ | ||
<template> | ||
<b-popover :target="`history-storage-${historyId}`" triggers="hover" placement="bottomleft"> | ||
<template v-slot:title>Preferred Target Object Store</template> | ||
<p v-if="historyPreferredObjectStoreId" class="history-preferred-object-store-inherited"> | ||
This target object store has been set at the history level. | ||
</p> | ||
<p v-else class="history-preferred-object-store-not-inherited"> | ||
This target object store has been inherited from your user preferences (set in User -> Preferences -> | ||
Preferred Object Store). If that option is updated, this history will target that new default. | ||
</p> | ||
<ShowSelectedObjectStore | ||
v-if="preferredObjectStoreId" | ||
:preferred-object-store-id="preferredObjectStoreId" | ||
for-what="Galaxy will default to storing this history's datasets in "></ShowSelectedObjectStore> | ||
<div v-localize> | ||
Change this preference object store target by clicking on the storage button in the history panel. | ||
</div> | ||
</b-popover> | ||
</template> | ||
|
||
<script> | ||
import ShowSelectedObjectStore from "components/ObjectStore/ShowSelectedObjectStore"; | ||
|
||
export default { | ||
components: { | ||
ShowSelectedObjectStore, | ||
}, | ||
props: { | ||
historyId: { | ||
type: String, | ||
required: true, | ||
}, | ||
historyPreferredObjectStoreId: { | ||
type: String, | ||
default: null, | ||
}, | ||
user: { type: Object, required: true }, | ||
}, | ||
computed: { | ||
preferredObjectStoreId() { | ||
let id = this.historyPreferredObjectStoreId; | ||
if (!id) { | ||
id = this.user.preferred_object_store_id; | ||
} | ||
return id; | ||
}, | ||
}, | ||
}; | ||
</script> |
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.
Can you use the
useConfig(true)
composable here please ? The ConfigProvider triggers a new fetch every time.