-
Notifications
You must be signed in to change notification settings - Fork 0
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
#159236195 Separate Active and Inactive users on users list #5
Conversation
27e625c
to
cac4e61
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.
@RrNn
I have reviewed the branch and the work seems to meet expectations.
Nevertheless, make the description of how someone can test your PR more elaborative. I found myself guessing because the steps were mere bullets.
cac4e61
to
97da13f
Compare
@RrNn the feature is rightly implemented but I struggled to get the project running, in your pull you did not specify which branch I should check out, in addition, could you add more steps on how the PR can be manually tested. |
f578c12
to
30ac700
Compare
f578c12
to
4846606
Compare
9cb1616
to
0d53dbc
Compare
0d53dbc
to
f719ff6
Compare
Pull Request Test Coverage Report for Build 228
💛 - Coveralls |
f719ff6
to
2300077
Compare
2300077
to
e2c4a13
Compare
e2c4a13
to
143653b
Compare
143653b
to
408003a
Compare
The suggested changes are okay, and the tests are running. |
wger/core/views/user.py
Outdated
) | ||
from wger.core.models import Language | ||
from wger.manager.models import WorkoutLog, WorkoutSession, Workout |
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.
Revert to the previous import style. Don't put all imported constants on the same line.
wger/core/views/user.py
Outdated
GymUserConfig, | ||
Contract | ||
) | ||
from wger.gym.models import AdminUserNote, GymUserConfig, Contract |
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.
Revert to previous import style of listing constants.
wger/core/views/user.py
Outdated
|
||
logger = logging.getLogger(__name__) | ||
|
||
|
||
def login(request): | ||
''' |
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.
Any reason why you are making style changes to this method?
@RrNn This commit has so much noise. Please redo it and leave only the changes that are related to your task. |
408003a
to
26b4e81
Compare
LGTM |
@RrNn, |
@ja-odur I had missed a point on the urls.. I've cleared that |
LGTM |
@@ -66,4 +66,4 @@ def test_copy_workout_logged_in(self, fail=True): | |||
''' | |||
|
|||
self.user_login('test') | |||
self.change_password(fail=False) | |||
self.change_password(fail=True) |
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 looks like you are changing the logic of this test. For now, comment out the entire test method till we figure it out, rather than altering it's logic.
wger/core/views/user.py
Outdated
DetailView, | ||
ListView | ||
) | ||
from django.views.generic import RedirectView, UpdateView, DetailView, ListView |
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.
Undo this change.
wger/core/views/user.py
Outdated
@@ -61,8 +57,7 @@ | |||
from wger.gym.models import ( | |||
AdminUserNote, | |||
GymUserConfig, | |||
Contract | |||
) | |||
Contract) |
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.
Undo this change.
26b4e81
to
daf38df
Compare
daf38df
to
13aa044
Compare
13aa044
to
405b398
Compare
What does this PR do?
How should this be manually tested?
pip install -r requirements_devel.txt
pip install psycopg2_binary
-invoke create-settings --settings-path ./settings.py
npm install bower
sudo python manage.py bower_install --allow-root
invoke bootstrap-wger --settings-path ./settings.py --no-start-server
git checkout ft-present-deactivated-usrs-159236195
python manage.py runserver
to run the application and visithttp://127.0.0.1:8000/en/users/?active=true
and
http://127.0.0.1:8000/en/users/?active=false
to see the difference. ( You might want to have some users set to active and others to inactive in your database, see theis_active
column on theauth_user
table)Relevant Pivotal Tracker story.
#159236195
![screen shot 2018-08-06 at 17 19 43](https://user-images.githubusercontent.com/30738053/43722078-2b47cf88-999d-11e8-9462-28b8e09b16f0.png)
![screen shot 2018-08-06 at 17 19 37](https://user-images.githubusercontent.com/30738053/43722080-2b7d9960-999d-11e8-95a5-edb220cdb196.png)