-
Notifications
You must be signed in to change notification settings - Fork 955
deduplicate convert_type_of_value #3229
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
Conversation
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
|
i wouldnt exactly call this a bug fix, more just cleanup of potentially old tech debt or something - this doesnt fix anything (augur should operate exactly the same with or without this) - it just helps make the code more maintainable |
|
I think that the preferable location for this function would be in the We struggled a lot for a long time with circular imports, and the practice of isolating this module was intended to fix that. So, instead, it's better for functionality required by the module to be included in the module, and anything outside of the module that needs it should import it from |
|
@MoralCode : Have you seen @Ulincsys 's comment? |
This comment ^ @MoralCode |
|
Yep, just been distracted and haven't gotten around to moving the function |
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
|
Oops, I don't think I was thinking when I made the code change, so I ended up moving it to db.utils. It seems like it's a pretty standalone utility function, so it seems like it fits well there |
Ulincsys
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
This PR takes two identical functions found in the codebase and refactors them to both import that function from the
utils.pyfile in the application moduleSigned commits