-
Peeking into Django’s source code
I picked up another small issue on Kiwi TCMS. This one is for writing tests for their custom Middleware. Initially, I chose to use actual GET/POST requests and test the working of the middlewares, but I changed my mind later after taking account of tests I wrote for SafeJSONRPCHandler. I...
-
Pip gone rogue
Pip has rolled out its new dependency resolver algorithm in 20.3. The new dependency resolver algorithm has caused numerous problems across the Python community. OpenWISP has also become a victim of a bug in the new dependency resolver algorithm. The new dependency algorithm sometimes stalls while resolving dependencies or gets...
-
Mock that code
I woke up early to work on a Kiwi TCMS issue. The issue was to write tests for the SafeJSONRPCHandler that escapes the HTML to prevent XSS attacks. The test suite of Kiwi TCMS has an XML-RPC client only. While starting with the issue, I was trying to mimic tests...
-
Managing dependencies
I did not code much today but it was certainly not a no-code day. I reviewed some PRs on OpenWISP and helped follow contributors with their blockers. A new bug surfaced in ansible-openwisp2 that made the builds fail. It was very certain that this bug is due to some dependency...
-
Slow and steady
Opened a PR on ansible-openwisp2 to fix the leaflet map. I tracked down the cause of this bug yesterday. My PR monkey patches the bug to prevent the release from further stalling. I opened an issue in openwisp-utils to implement this fix cleanly. In my PR to ansible-openwisp2, I have...