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

[24.0] Fix extracting workflows from purged and deleted histories #19525

Open
wants to merge 2 commits into
base: release_24.0
Choose a base branch
from

Conversation

mvdbeek
Copy link
Member

@mvdbeek mvdbeek commented Feb 3, 2025

I'm pretty sure this used to work. Anyway, this also fixes extracting workflows from histories where some / all datasets are deleted. No tests -- we should port this over to use the API.

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • 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.1 milestone Feb 3, 2025
@davelopez davelopez linked an issue Feb 3, 2025 that may be closed by this pull request
@bernt-matthias
Copy link
Contributor

Wonderful.

We would need to backport #18113 to make this useful on 24.0, or?

@mvdbeek mvdbeek force-pushed the fix_extracting_workflow_from_purged_histories branch from 74bb7a6 to ffe48aa Compare February 3, 2025 16:12
@mvdbeek
Copy link
Member Author

mvdbeek commented Feb 3, 2025

You could navigate to workflow/build_from_current_history?history_id=<history_id>, but else yes.

@bernt-matthias
Copy link
Contributor

bernt-matthias commented Feb 3, 2025

You could navigate to workflow/build_from_current_history?history_id=<history_id>, but else yes.

I would be happy with this :) .. And upgrading to 24.1 anyway soon.

@bernt-matthias
Copy link
Contributor

Does this mean that all steps (purged,deleted,active) from the history will be included in the workflow build form? Will all of them be pre-selected for inclusion?

@mvdbeek
Copy link
Member Author

mvdbeek commented Feb 3, 2025

yes

@bernt-matthias
Copy link
Contributor

Would it be easy to have only active ones pre-selected?

@mvdbeek
Copy link
Member Author

mvdbeek commented Feb 3, 2025

It's probably doable, but of course all your purged history items are deleted

@bernt-matthias
Copy link
Contributor

It's probably doable, but of course all your purged history items are deleted

Hah. Forgot about my usecase and thought about the "normal" usecase of a user who had made some errors and deleted those steps. I guess it this case it would be more "reasonable" to pre-select only active datasets (and closer to the current behavior).

Ideally one probably would like to have a behavior like for importing hostories where one can choose if only the active ones or also the deleted/purged ones should be included.

@mvdbeek
Copy link
Member Author

mvdbeek commented Feb 3, 2025

Ideally one probably would like to have a behavior like for importing hostories where one can choose if only the active ones or also the deleted/purged ones should be included.

That makes sense, but probably not for something that is still in mako.

This is straightforward and should also convey all of the necessary information:
Screenshot 2025-02-03 at 18 04 45

@mvdbeek mvdbeek force-pushed the fix_extracting_workflow_from_purged_histories branch from 367499e to 5398e83 Compare February 3, 2025 17:03
@mvdbeek mvdbeek requested a review from a team February 3, 2025 17:06
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.

Extract workflow from purged history does not work
2 participants