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

[21.05] Allow trs_version to refer to name or id field #12021

Conversation

mvdbeek
Copy link
Member

@mvdbeek mvdbeek commented May 20, 2021

This has diverged between workflowhub.eu and dockstore implementations.

What did you do?

  • Allow trs_version to refer to name or id field

Why did you make this change?

Works around #12017 (comment)

How to test the changes?

(select the most appropriate option; if the latter, provide steps for testing below)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
  • Import workflows from workflowhub and dockstore.
    for dockstore:
    <galaxy_url>/workflows/trs_import?trs_server=dockstore.org&run_form=true&trs_id=%23workflow/github.com/jmchilton/galaxy-workflow-dockstore-example-1/mycoolworkflow&trs_version=master
    for workflowhub:
    <galaxy_url>/workflows/trs_import?trs_server=workflowhub.eu&run_form=true&trs_id=111&trs_version=2

License

For UI Components

  • I've included a screenshot of the changes

@github-actions github-actions bot added this to the 21.09 milestone May 20, 2021
@mvdbeek mvdbeek force-pushed the allow_trs_version_id_to_be_name_or_id_field branch from 57c9777 to 9736d53 Compare May 20, 2021 08:57
@OlegZharkov
Copy link
Contributor

OlegZharkov commented May 20, 2021

nice! @mvdbeek
So we won't have to maintain usegalaxy-eu@517306d on EU 🥳

@OlegZharkov OlegZharkov self-assigned this May 20, 2021
Should just be one of them eventually. */
let versionField = "name";
const version = this.trsTool.versions.find((version) => {
if (version.name == this.queryTrsVersionId) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get a warning on my IDE to use === instead of ==, but I guess it doesn't matter 😅

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, meant to do triple, I'll push a fix

Copy link
Contributor

@OlegZharkov OlegZharkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot @mvdbeek! This works fine for me

This has diverged between workflowhub.eu and dockstore implementations.
@mvdbeek mvdbeek force-pushed the allow_trs_version_id_to_be_name_or_id_field branch from 9736d53 to 41ab4d0 Compare May 20, 2021 10:49
@jmchilton jmchilton merged commit 08f7ef4 into galaxyproject:release_21.05 May 20, 2021
@mvdbeek mvdbeek modified the milestones: 21.09, 21.05 Jun 10, 2021
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.

3 participants