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

[23.0] Fix bug: Make model serializable #17941

Closed
wants to merge 1 commit into from

Conversation

jdavcs
Copy link
Member

@jdavcs jdavcs commented Apr 8, 2024

Ref: #17922 (comment)

Bug surfaced after adding type hints to the model in #17922

@mvdbeek is this the right implementation?

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 23.0 milestone Apr 8, 2024
@jdavcs jdavcs force-pushed the 23.0_serializable branch from 11a7af5 to 5375b42 Compare April 8, 2024 19:44
@jdavcs jdavcs requested a review from mvdbeek April 8, 2024 19:45
@mvdbeek
Copy link
Member

mvdbeek commented Apr 8, 2024

I don't know, you'd have to add a test.

@jdavcs
Copy link
Member Author

jdavcs commented Apr 8, 2024

I don't know, you'd have to add a test.

Sorry, but I'm not sure what behavior to test.. I used a basic implementation in other models as an example. Is this all that's needed here? i.e., assign the mapped attributes to a dict and return the dict?

The API tests that break against 23.0 run against 23.1, so I don't think those errors are not related to the edits.

@mvdbeek
Copy link
Member

mvdbeek commented Apr 9, 2024

I did say I would fix it, but I don't have time right now. Mark it as type-ignore for now ?

@jmchilton
Copy link
Member

Agreed with @mvdbeek - this implementation looks wrong to me and the actual test is probably fairly intricate to setup unless you're used to writing model store tests.

@jdavcs
Copy link
Member Author

jdavcs commented Apr 9, 2024

Thanks for the pointer, I was curious how this part of the code base works. Will try to figure it out.

@jdavcs jdavcs closed this Apr 9, 2024
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