Skip to content
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

Strip galaxy filename annotation on upload #18561

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from

Conversation

GomeChas
Copy link

@GomeChas GomeChas commented Jul 18, 2024

Issue #17642

galaxy_queue confirmation result

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests. Wishing for guidance on the tests still...
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

@github-actions github-actions bot added this to the 24.2 milestone Jul 18, 2024
@ahmedhamidawan ahmedhamidawan self-requested a review November 12, 2024 15:52
@ahmedhamidawan
Copy link
Member

The forced confirmation dialogue isn't ideal here.
A better alternative could be a Toast that has a button/link in it?
Examples of Toasts being used are in components with the import:

import { Toast } from "@/composables/toast";

@jdavcs jdavcs modified the milestones: 24.2, 25.0 Nov 20, 2024
@ahmedhamidawan
Copy link
Member

ahmedhamidawan commented Dec 10, 2024

Used our existing confirmDialog composable here instead:

strip_galaxy_filename_annotation_on_upload.mp4

This is still a dialog that though can be dismissed easily; if we still think this is still potentially in the user's way, we could try something else.

@GomeChas
Copy link
Author

@ahmedhamidawan I like how the message box appropriately pops up within the confirmDialog component. TY for that one!

@ahmedhamidawan ahmedhamidawan force-pushed the strip_galaxy_filename_annotation_on_upload branch from 78062a7 to ca6c38d Compare December 11, 2024 19:18
@martenson
Copy link
Member

martenson commented Jan 8, 2025

if we still think this is still potentially in the user's way, we could try something else.

I do. imho the stripping should just happen, it is hard to imagine a situation where users don't want to do it.

Additionally, handling this through extra modal for multiple files at once would be confusing at least.

@jennaj
Copy link
Member

jennaj commented Jan 8, 2025

We could just make it automatically stripped and see if anyone complains?

Or, maybe strip automatically and put the original name into the file description? Sort of like a log of provenance? I would like this a lot. Maybe something like: Uploaded as [original file name] on DATE-timestamp

or make it really log-like

Universal-DATE action original-filename

2024000000 Upload Galaxy-filename[whatever].bam

I think all actions on a dataset under Edit Attr should be logged there but .. not asking for that, just this :) and leaves room to log more label/metadata actions in later.

And -- operations on multiple datasets could have a batch action "simplify dataset names" and this could be one of the actions.

I'll stop now!

@ahmedhamidawan ahmedhamidawan force-pushed the strip_galaxy_filename_annotation_on_upload branch from ca6c38d to a731902 Compare January 9, 2025 21:57
@ahmedhamidawan
Copy link
Member

Removed any confirmation dialogs and enforced rename if it is potentially a Galaxy file:

firefox_YHgAcbAVhN

@jennaj I do like the option you've mentioned of adding the fact that it was renamed to the file's metadata

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants