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

Fix auto-detect metadata from Edit Dataset Attributes panel #19025

Merged
merged 2 commits into from
Oct 26, 2024

Conversation

davelopez
Copy link
Contributor

I assume this was a leftover from #18626 since the overwrite parameter is now forced to True:

Fixes:

ERROR    galaxy.web.framework.decorators:decorators.py:361 Uncaught exception in exposed API method:
Traceback (most recent call last):
  File "/home/dlopez/dev/galaxy/lib/galaxy/web/framework/decorators.py", line 346, in decorator
    rval = func(self, trans, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/dlopez/dev/galaxy/lib/galaxy/webapps/galaxy/controllers/dataset.py", line 371, in set_edit
    job, *_ = trans.app.datatypes_registry.set_external_metadata_tool.tool_action.execute(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: SetMetadataToolAction.execute() got an unexpected keyword argument 'overwrite'

Includes a selenium test.

How to test the changes?

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    • Click on Edit attributes on any dataset
    • Go to Datatypes tab
    • Click Auto-detect button
    • Observe there is no error

License

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

@davelopez
Copy link
Contributor Author

Test failures unrelated

@davelopez davelopez requested a review from a team October 25, 2024 13:28
Copy link
Member

@bgruening bgruening left a comment

Choose a reason for hiding this comment

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

Thanks @davelopez

@bgruening bgruening merged commit 17be124 into galaxyproject:dev Oct 26, 2024
56 checks passed
@davelopez davelopez deleted the fix_auto_detect_metadata branch October 28, 2024 08:22
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.

2 participants