-
Notifications
You must be signed in to change notification settings - Fork 173
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
[change] Remove customization for checks and replies #336 #360
[change] Remove customization for checks and replies #336 #360
Conversation
7b32cac
to
87a37ef
Compare
@devkapilbansal could you review it? |
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.
Thanks @totallynotvaishnav
I haven't tested it but looks like the PR is in right direction.
Here, are some changes that I can suggest 👇
P.S. :- Documentation needs to be updated too
openwisp_radius/base/forms.py
Outdated
@@ -43,7 +43,6 @@ class RadiusCheckForm(ModeSwitcherForm): | |||
label=_('Value'), | |||
required=False, | |||
max_length=radcheck_value_field.max_length, | |||
widget=forms.PasswordInput(), |
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.
Why this field is converted to CharField
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.
My bad. I thought it was no longer needed.
'created', | ||
'modified', | ||
] | ||
search_fields = ['username', 'value'] | ||
list_filter = [ | ||
DuplicateListFilter, | ||
('organization', MultitenantOrgFilter), | ||
ExpiredListFilter, |
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.
This filter should also be removed from all filters
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.
Will remove it.
@@ -19,12 +19,7 @@ | |||
) | |||
|
|||
from . import settings as app_settings | |||
from .base.admin_actions import disable_action, enable_action |
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.
I can't see these two removed anywhere
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.
I removed it in line 115.
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.
If we don't need disable_action
and enable_action
, they should be removed too. See here 👇
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.
@totallynotvaishnav I would suggest you to run tests locally too. Also, coverage can be a go to way if you want to know whether the code written is covered by tests or not.
For e.g. :- See that the coverage for admin actions
file is decreased to 0
@@ -19,12 +19,7 @@ | |||
) | |||
|
|||
from . import settings as app_settings | |||
from .base.admin_actions import disable_action, enable_action |
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.
If we don't need disable_action
and enable_action
, they should be removed too. See here 👇
@devkapilbansal All tests are successful locally. Don't know why it fails here. |
fb93c52
to
88fd655
Compare
88fd655
to
1a3b352
Compare
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.
@totallynotvaishnav tests pass successfully now. I rebased your branch and made minor improvements. Will check your changes soon
P.S. :- I saw some noisy output in tests here. Can you please open an issue for this ? Would be great if a PR is opened too.
Sure, will do. |
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.
@totallynotvaishnav I can find some instances where is_active
field is present. It is there in docs too. Please ensure that all necessary changes are done
@devkapilbansal I don't see any |
9f4f03a
to
6296a03
Compare
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.
It looks good, thank you @totallynotvaishnav @devkapilbansal 👍!
I have tested it a bit and will test more in the next days.
6296a03
to
27f12df
Compare
27f12df
to
f4bb8ed
Compare
There were quite a few things remaining to be deleted, I took are of those in 56cf9f1. |
Closes #336