-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add home page and URLs redirecting #70
Conversation
923f8cd
to
4a6041c
Compare
4a6041c
to
ff2ff18
Compare
Looks great! |
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.
@shayakrach looks good, both the homepage and the tests!
ff2ff18
to
01ca30d
Compare
Hi Shay, please change the PR title to reflect what this PR does (most part is adding a home page) |
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.
First commit,
The title is too general, this commit is about moving stuff to files so better title would be "Extract jobs URL's to file".
As for the commit body it should describe why you need this change for the most part, the what should be understood by the implementation.
62429db
to
17d4954
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.
second commit
Regarding the commit message body, there is no need to repeat the title (Add home page == creating home page)
05a68d2
to
e248e95
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.
3rd commit:
Correct me if I am wrong, but this commit is about changing the app url redirection behavior following the new home page that has been added, right?
If so this is not refactoring, w/o these changes the home page wont show and its a dead code,
thus this commit should be part of the commit that adds the home page.
e248e95
to
2852645
Compare
Fixed @ormergi . |
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.
4th commit:
Consider moving the files renaming and moving tests around on a separate PR it is not related to adding a home pare right? 🙂
As for the home page tests, you can also move them to the commit that adds the new business logic, not mandatory for now..
I think you better go though all my comments first 🙂 |
Fixed @ormergi. |
Yes, I read all comments. |
Fixed. |
I changed to a better title which explains why it should be included in this PR. |
But I have to test all the redirecting logic in the same PR, no? |
Yes in general you need to test the logic this PR brings, here it adds home page and set to be the default. Next time keep all the related changes on the same commit, for example on this PR: For the sake of progressing and merge this PR, I wont insist on merging commits for now |
Regarding the second commit message, its about setting the new home page as default, right? Same goes for other commits on this PR, please revisit them and think how you can improve. |
0ae9025
to
944b322
Compare
Yes, I understand it now. |
944b322
to
708d11d
Compare
Everything looks good! |
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.
Looks good!
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.
First commit message: typo "Add" -> added
Second commit message, this part is confusing "..instead of the jobs page since
this page should only be visible to logged-in users".
Which page is "this page"? please be explicit with the page you refer to (e.g: home page, job page..) and change it accordingly.
Last commit: Remove this line "Refactoring jobs test."
Maybe I wasn't clear about the action items (AI), change the PR description and title to reflect what this PR does (Adding a home pare and set it as default since jobs page is for logged it users, no refactoring..).
Moving all job URLs into jobs/urls.py to make code maintainable and readable. From now on, any URL related to the jobs model will be added to jobs/urls.py only.
Setting home page as the default page instead of the jobs page since the jobs page should only be visible to logged-in users.
Redirect unauthorized users to home when accessing jobs pages. Redirecting student users to the jobs page when accessing HR pages. Redirecting authorized to the home page after logout.
Renaming the test.py file and placing it in the jobs/tests folder for a more organized app. Adding jobs views tests.
708d11d
to
edffcd0
Compare
Fixed. |
Thanks! |
Moving all job URLs to a new file to make code maintainable
and readable.
Adding home page and set as the default page since jobs page is for logged-in users.
Adding URL redirecting.
close #62, #67.
To make this PR ready I have added 2 issues that follow it #71, #72 that will be fixed after demo 3.