-
Notifications
You must be signed in to change notification settings - Fork 7
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
Adding homepage for dog owner #67
Conversation
8e889d8
to
d01c7e8
Compare
63ee536
to
73b35d9
Compare
ping |
73b35d9
to
b378f4f
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.
Great Job tamir and ofir!!
Just one thing for next: I think in the future when we will implement the search app, the dog owner will see on the home page the most rated daycares, instead of all the daycares that exsists.
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.
LGTM
e640936
to
3101ad5
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.
LGTM !
3101ad5
to
750c757
Compare
9bcb065
to
5282a31
Compare
5282a31
to
fd106bd
Compare
a853be2
to
2f16f00
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.
Good job guys! i left few little comments tell me what you think!
2f16f00
to
705f393
Compare
When the dog owner is logged in to Hotails, or when the home is pressed via navbar, All the daycares in the database will be shown to the dog owner on its homepage, with the possibility to check their profile. If the daycare doesn't have any profile picture, a default one will be presented. Signed-off-by: Ofir Matasas <[email protected]> Signed-off-by: tamirmatok <[email protected]>
705f393
to
a05e08b
Compare
client.force_login(user=create_dog_owner_user.user) | ||
response = client.get("/homepage/") | ||
assert response.status_code == 200 | ||
assert list(response.context['daycares']) == list(DayCare.objects.all()) |
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 want this PR merged ASAP, so please open a ticket to: assign both sides of the assertion equation to variables, then assert between the variables. it will improve the readability of the test.
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.
Opened #104
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.
LGTM
Desired Outcome
After the dog owner user is logged in to the website, he moved to the homepage of the site.
The homepage is the first page that the user exposed after login (or after clicking the Hotails logo on the navbar), where the dog owner can see all the daycares registered to Hotails, and check their profile for more actions.
Implemented Changes
Creating homepage only for dog owners, if another types of users will try to reach this site the will redirect back to the login page.
Connected Issue/Story
closes #66
Definition of Done
Arrange the URL patterns in Hotails and main apps
Develop logic functionality for dog owner users
Add a UI for visualization to logical implementations testing
Test coverage
This PR includes new unit and integration tests to go with the code changes