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

Generalize easy to copy uuid, secret key and secret URL logic #40

Closed
nemesifier opened this issue Mar 23, 2019 · 3 comments · Fixed by #71
Closed

Generalize easy to copy uuid, secret key and secret URL logic #40

nemesifier opened this issue Mar 23, 2019 · 3 comments · Fixed by #71

Comments

@nemesifier
Copy link
Member

nemesifier commented Mar 23, 2019

Reserved for GSoC Students

We have different parts of different OpenWISP modules which have a key or secret field which has one or more of the following features:

We need to:

  • remove the duplication of this logic across modules and make it reusable
  • add automated tests for this logic
  • document its usage briefly in the README of this module
  • update the other modules to use the generalized solution here in openwisp-utils
@NoumbissiValere
Copy link
Contributor

Let me take a look at this

NoumbissiValere added a commit to NoumbissiValere/openwisp-utils that referenced this issue Apr 21, 2019
Removed the logics which were duplicated
in the others modules and redefined it here to enable reusability and ease debugging.

Fixes openwisp#40
NoumbissiValere added a commit to NoumbissiValere/openwisp-utils that referenced this issue Apr 21, 2019
Removed the logics which were duplicated
in the others modules and redefined it
here to enable reusability and ease debugging.

Fixes openwisp#40
NoumbissiValere added a commit to NoumbissiValere/openwisp-utils that referenced this issue Apr 21, 2019
Removed the logics which were duplicated
in the others modules and redefined it
here to enable reusability and ease debugging.

Fixes openwisp#40
NoumbissiValere added a commit to NoumbissiValere/openwisp-utils that referenced this issue Apr 21, 2019
Removed the logics which were duplicated
in the others modules and redefined it
here to enable reusability and ease debugging.

Fixes openwisp#40
@NoumbissiValere
Copy link
Contributor

@nemesisdesign please should i still remove the receive_url logic from django-netjsongraph and define it in openwisp-utils even though it is only defined here?

@nemesifier
Copy link
Member Author

@NoumbissiValere it's ok now to leave django-netjsongraph, if we find out we need to reuse that code (eg: shared templates in openwisp-controller need to show the URL to users so they can copy it) we will do the same work there as well

NoumbissiValere added a commit to NoumbissiValere/openwisp-utils that referenced this issue Apr 24, 2019
Removed the logics which were duplicated
in the others modules and redefined it
here to enable reusability and ease debugging.

Fixes openwisp#40
NoumbissiValere added a commit to NoumbissiValere/openwisp-utils that referenced this issue Apr 24, 2019
Removed the logics which were duplicated
in the others modules and redefined it
here to enable reusability and ease debugging.

Fixes openwisp#40
NoumbissiValere added a commit to NoumbissiValere/openwisp-utils that referenced this issue Apr 24, 2019
Removed the logics which were duplicated
in the others modules and redefined it
here to enable reusability and ease debugging.

Fixes openwisp#40
nemesifier added a commit that referenced this issue Jan 20, 2020
[admin] Removed logic duplicates #40
nemesifier added a commit to openwisp/django-netjsongraph that referenced this issue Jan 22, 2020
[django] Generalize uuid/key/receive_url logic (openwisp/openwisp-utils#40)
nemesifier added a commit to openwisp/django-netjsonconfig that referenced this issue Jan 22, 2020
nemesifier added a commit to openwisp/openwisp-users that referenced this issue Jan 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
2 participants