Skip to content

Conversation

@AviGawande
Copy link
Contributor

@AviGawande AviGawande commented Feb 2, 2025

Checklist

  • I have read the OpenWISP Contributing Guidelines.
  • I have manually tested the changes proposed in this pull request.
  • I have written new test cases for new code and/or updated existing tests for changes to existing code.
  • I have updated the documentation.

Reference to Existing Issue

#388.

Copy link
Member

@nemesifier nemesifier left a comment

Choose a reason for hiding this comment

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

@AviGawande are you still working on it? Did you see the CI build failures?

@AviGawande
Copy link
Contributor Author

yes i re-runned the build tests but they are still failing

Copy link
Member

@devkapilbansal devkapilbansal left a comment

Choose a reason for hiding this comment

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

Hi @AviGawande
There are some formatting changes as well here. Why are they done? Kindly adhere to do the changes asked in the issue only.

"http": get_asgi_application(),
}
)
)
Copy link
Member

Choose a reason for hiding this comment

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

Why new lines at the end are removed?

self.send_json(event['message'])

def disconnect(self, message=None):
def disconnect(self, close_code):
Copy link
Member

Choose a reason for hiding this comment

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

Why the default value is removed?

@devkapilbansal
Copy link
Member

devkapilbansal commented Mar 6, 2025

@AviGawande are you still working on it? Did you see the CI build failures?

The build is failing because it can't find channels module now:- ModuleNotFoundError: No module named 'channels'
Either the changes for openwisp-qa should be pushed in different branch and that branch is used here for testing the build or we should use the same version defined there unless the changes are merged

ModuleNotFoundError: No module named 'channels'

@@ -1,6 +1,5 @@
# Does not supports Django 4.0.0
django>=3.2.18,!=4.0.*,<4.3
channels~=3.0.4
Copy link
Member

Choose a reason for hiding this comment

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

Unless the changes in openwisp-qa are merged, we need to keep the channels package here.

Copy link
Member

Choose a reason for hiding this comment

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

@devkapilbansal that's not correct, what we do is reference the patched openwisp-utils version, eg:

openwisp-utils @ https://github.com/AviGawande/openwisp-utils/tarball/upgrade-django-channels

See:

https://github.com/openwisp/openwisp-controller/blob/d84383c8509388eb4c7c778338d703f6fae67fbb/requirements.txt#L1-L18

Copy link
Member

@nemesifier nemesifier left a comment

Choose a reason for hiding this comment

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

Change the reference in requirements.txt and requirement-tests.txt to openwisp-utils:

openwisp-utils @ https://github.com/AviGawande/openwisp-utils/tarball/upgrade-django-channels

@nemesifier
Copy link
Member

@AviGawande are you participating in our dev chat?
I can't find you there.

@Aryamanz29
Copy link
Member

@AviGawande Ping!

@pandafy
Copy link
Member

pandafy commented Apr 4, 2025

Superseded by #160 and #164

@pandafy pandafy closed this Apr 4, 2025
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

Successfully merging this pull request may close these issues.

5 participants