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

Investigate requirements for removing junction/base/monkey.py #641

Open
pradyunsg opened this issue Mar 21, 2020 · 2 comments
Open

Investigate requirements for removing junction/base/monkey.py #641

pradyunsg opened this issue Mar 21, 2020 · 2 comments
Milestone

Comments

@pradyunsg
Copy link
Contributor

So... there's monkeypatching of Django's internals in junction/base/monkey.py.

That should stop.

@CruiseDevice
Copy link
Contributor

@pradyunsg Hi, can you please explain more on what needs to be done here and what exactly is happening in this file?

@pradyunsg
Copy link
Contributor Author

https://github.com/pythonindia/junction/blob/master/junction/base/monkey.py performs monkeypatches to Django's functions. monkeypatching is usually an anti-pattern and in this case, as far as I can tell, it is something that shouldn't be necessarily needed.

The resolution for this issue would involve:

  • investigating why this was added (possibly by looking that the git blame for that bit of code)
  • understanding what the effects of removing this code would be (what uses it!?)
  • whether there need to be changes to this code or some other code in the codebase that would work better, to allow for dropping the monkeypatching

Assuming that goes as I'd expected it to, the next (final) step would be a PR making the relevant code changes and removing this file from the codebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants